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.
check your answer
Answer key
What should your command prove?
A package list showing installed versions and candidate versions. On systems without pending updates, apt should report no upgradable packages.
How to explain it
Inventory comes before change. Listing upgrades is read-only, while installing them belongs in a planned maintenance step.
What to avoid
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
answer check
Compare expected output
Open these command examples to compare your answer against realistic output.
next 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.