Patch Triage

Sort waiting apt, dnf, yum or zypper updates into security, reboot and restart
Paste the list of waiting updates from apt, dnf, yum or zypper to see at a glance which are security fixes, which need a reboot, and which leave running services on old code until they restart. Then copy the commands to install just the security updates and check what still needs restarting.
RUNS ENTIRELY IN YOUR BROWSER · NOTHING IS SENT ANYWHERE

1. Get the list

2. Paste what it printed

The commands on each system

SystemWaiting updatesSecurity onlyReboot needed?Services to restart
Ubuntu / Debianapt list --upgradableapt list --upgradable | grep -- -securitycat /var/run/reboot-required.pkgssudo needrestart -r l
RHEL 8+ / Rocky / Alma / Fedoradnf check-updatednf updateinfo list --securitysudo dnf needs-restarting -rsudo dnf needs-restarting -s
RHEL 7 / CentOS 7 / Amazon Linux 2yum check-updateyum updateinfo list securitysudo needs-restarting -rsudo needs-restarting -s
SUSE / openSUSEzypper list-updateszypper list-patches --category securitysudo zypper needs-rebootingsudo zypper ps -s

Patching rules worth knowing

Which updates matter, and what to do after them

Paste the list of waiting updates from Ubuntu, Debian, RHEL, Rocky, Alma, Fedora, Amazon Linux or SUSE. Patch Triage sorts it into security updates (with their severity and advisory when the output has them), updates that only take effect after a reboot, such as the kernel and glibc, and libraries like OpenSSL that leave running services on the old code until they restart. Then it gives the commands to install just the security updates and check what still needs restarting.

Common questions

How do I list only the security updates on Ubuntu or Debian?

apt list --upgradable | grep -- -security shows the updates that come from the security repository. To install only those on Ubuntu, run sudo unattended-upgrade -v, which installs security updates by default, or name the packages with sudo apt-get install --only-upgrade. Paste the full list here to get that command written for you.

How do I install only security updates with dnf or yum?

sudo dnf upgrade --security, or sudo yum update --security on RHEL 7. It relies on the advisory data that RHEL, Rocky, Alma, Oracle Linux, Fedora and Amazon Linux publish; CentOS 7’s own repositories never had it, so there it finds nothing. dnf updateinfo list --security shows what it would install.

How do I know if a Linux server needs a reboot after updates?

On Ubuntu, the file /var/run/reboot-required exists, and /var/run/reboot-required.pkgs says which packages asked for it. On RHEL-family systems, sudo dnf needs-restarting -r says whether a reboot is needed and why. On SUSE, run sudo zypper needs-rebooting. On Debian, sudo needrestart checks the running kernel.

Which services need restarting after an update?

Any program started before the update still uses the old copy of the libraries that changed. sudo needrestart -r l on Debian and Ubuntu, sudo dnf needs-restarting -s on RHEL-family systems and sudo zypper ps -s on SUSE list the services that are still running old code.

Do I need to reboot after an OpenSSL update?

No, but every service that uses it, such as web, mail, VPN, database and SSH servers, keeps the old version until it restarts. Restart those services, or reboot to do it all at once. A kernel, microcode or glibc update is different: a reboot is the simple way to finish.

Related tools: Package Manager Translator · Error Message Decoder · Systemd Generator · All tools A–Z