Review an APT Upgrade Plan Before Applying It
Simulate Kali package changes, identify removals and record a go-or-stop decision before running real maintenance.
Difficulty Beginner
Prerequisites
Use Kali and a working terminal. Start with your disposable practice VM or a restorable workstation backup. Check the configured Kali repositories and allow enough free storage to download and unpack updates. Do not perform package maintenance during a critical job.
Refresh the package metadata
df -h / /var
sudo apt update
apt-get -s full-upgrade > apt-plan.txt
grep -E '^(Inst|Remv|Conf) ' apt-plan.txt
The update refreshes repository metadata. Simulation generates a plan without applying package changes. The Inst, Remv and Conf lines describe installations, removals and configuration. Read the opening and final summary too.
Review the result
Check whether the plan would remove the current desktop environment, an active kernel package or a metapackage you intend to retain. Use apt-cache policy PACKAGE after replacing PACKAGE with an exact name from the plan. An unexplained package removal warrants stopping and checking the repository state or vendor notices. A cached plan can change after package-list or configuration changes, so compare the real command's confirmation with your approved plan before proceeding.
Troubleshooting and practice
If the refresh reports broken signatures or a release mismatch, resolve it using Kali's published guidance. Do not disable verification or introduce unrelated repositories. Compare apt-get -s upgrade with apt-get -s full-upgrade on the same metadata and note the different dependency decisions. Keep the practice in simulation unless you have a valid backup and intend to apply the reviewed changes.