Debian/Ubuntu package manager
high risk
apt install -s <pkg>Simulateapt-mark showholdCheck held packagesHigh-level package tool: update, install, remove, upgrade, autoremove.
| Flag | Meaning |
|---|---|
update | Refresh the package index |
install | Install |
remove | Remove packages (keep config) |
purge | Remove packages and config⚠ Deletes configuration. |
autoremove | Remove unused dependencies⚠ May remove things you still need. |
-s | -s⚠ Simulate |
--dry-run --dry-run | Simulate |
apt list --upgradableWhat can be upgraded? · explain & risk-check →apt install -s nginxSimulate · explain & risk-check →Reference text is hand-written and may be incomplete — check man apt for your version. Test destructive commands on a non-production system first.