Back to practice tasks

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

  1. sudo apt update
  2. apt list --upgradable
  3. apt-cache policy PACKAGE

Watch this command run

Example output from a temporary Linux lab

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.