Most software has flaws that are found after release. Updates fix known ones. Delay leaves a known weakness open, so plan how updates happen and check that they did.
See what is waiting
On Debian and Ubuntu:
$ sudo apt update
$ apt list --upgradable
openssl/stable-security 3.0.x amd64 [upgradable from: 3.0.w]The version numbers are placeholders. apt update refreshes the package lists; it installs nothing.
On RHEL, dnf check-update lists available updates (Fedora releases with DNF 5 document it as dnf check-upgrade). On both, dnf updateinfo list --security shows security advisories where the repository publishes that data.
Install
$ sudo apt upgradeor
$ sudo dnf upgrade --security--security depends on the advisory data, so a repository without it may show nothing even when fixes exist. Read the proposed changes before confirming. Take a backup or snapshot of important systems, and test on a similar machine first.
Restart what needs it
A running process keeps using the old library in memory after the file on disk changes. Restart affected services, and reboot for a new kernel.
$ uname -r
6.8.0-45-genericThis shows the kernel running now, which may be older than the installed one. On many Debian and Ubuntu systems the file /var/run/reboot-required appears when a reboot is wanted. On Fedora and RHEL, dnf needs-restarting -r reports this when the plugin is available. The needrestart tool can list services to restart.
Automate and verify
Debian and Ubuntu offer the unattended-upgrades package. Fedora and RHEL offer dnf-automatic, with package names differing on newer Fedora releases. Check what your configuration actually installs, and whether it reboots.
Automation can fail silently: a full disk, a held package, a broken repository. Review logs, such as /var/log/unattended-upgrades/. Remember software installed outside the package manager and releases that have reached end of life, which no longer get fixes.
Try it
On a test system, refresh the lists and view pending updates without installing. Note the running kernel with uname -r. The packages lab lets you practise package commands.
Check your understanding
Security Updates
All 4 sections · no timer
Unlimited retries
Questions from every section are combined into one assessment. Answer them all correctly to complete the article.
Your completion saves in this browser. Sign in to sync it to your account.