practice task
Check Pending Package Updates
A Debian or Ubuntu server may be missing important updates. You need to list pending upgrades without installing anything.
Independent study support only. No affiliation, endorsement, exam dumps, or guaranteed exam results.
Try first
apt list --upgradable
Goal
Refresh package metadata intentionally and inspect upgradable packages before deciding on maintenance.
Expected output
A package list showing installed versions and candidate versions. On systems without pending updates, apt should report no upgradable packages.
Teaches
Inventory comes before change. Listing upgrades is read-only, while installing them belongs in a planned maintenance step.
Common mistake
Running apt upgrade during investigation without checking what will change or whether the server has a maintenance window.
command set
Commands to know
sudo apt updateapt list --upgradableapt-cache policy PACKAGE
Related lessons
Watch this command run
Example output from a temporary Linux lab
List Upgradable APT Packages
Review the related command card and compare your expected output with the command replay.
Watch command runCheck an APT Package Candidate
Review the related command card and compare your expected output with the command replay.
Watch command runnext practice
Check Memory Pressure Before Restarting
A server is slow and someone wants to restart the app. You need to see whether RAM, swap, or a specific process is the likely cause.