Package updates are waiting
- Check
updates.pending- Severity
- medium
- Runs
- on the server, in the daily run of the agent
- Looks at
- Number of upgradable packages, security ones where the package manager tells
What the check looks at
The agent asks the package manager how many installed packages have a newer version in the configured repositories, and how many of those are security updates where the package manager can tell (dnf through security advisories; on Debian and Ubuntu, packages from the security repository).
Why it matters
A waiting update is a fix that is published but not installed. When security updates pile up, automatic updates are off or failing, or packages are held back. Non-security updates matter too: they carry bug fixes, and a long backlog makes the next upgrade bigger and harder to test.
How to fix it
Debian and Ubuntu
sudo apt update
apt list --upgradable
sudo apt upgrade
apt list --upgradable shows the repository of each package (for example bookworm-security or
noble-security). Packages that apt upgrade keeps back need new dependencies; install them with
sudo apt install <package> after a look at what it pulls in. apt-mark showhold lists packages held on
purpose.
RHEL, Rocky Linux and AlmaLinux
sudo dnf check-update --security
sudo dnf updateinfo list --security
sudo dnf upgrade --security # only security updates
sudo dnf upgrade # everything
dnf check-update exits with code 100 when updates are available.
Alpine
sudo apk update
apk version -l '<'
sudo apk upgrade
After a kernel, glibc or OpenSSL update, check whether services need a restart or the server a reboot; the reboot guide shows how.
How to check the fix
Run the listing command again (apt list --upgradable, dnf check-update, apk version -l '<'). It should
show nothing, or only packages you hold back on purpose. The next report of the agent updates the count.
When a warning is fine
Right after the distribution published updates and before your next update run, a few pending updates are normal; they should be gone the next day if automatic updates are on. Held packages with a reason (a database major version you upgrade by hand) are fine as long as the reason is written down and security fixes for them still arrive through another way.
Sources
- apt(8) —
list --upgradable,upgrade - dnf(8): check-update — exit code 100;
updateinfo,--security - Alpine user handbook: apk