| System | Waiting updates | Security only | Reboot needed? | Services to restart |
|---|---|---|---|---|
| Ubuntu / Debian | apt list --upgradable | apt list --upgradable | grep -- -security | cat /var/run/reboot-required.pkgs | sudo needrestart -r l |
| RHEL 8+ / Rocky / Alma / Fedora | dnf check-update | dnf updateinfo list --security | sudo dnf needs-restarting -r | sudo dnf needs-restarting -s |
| RHEL 7 / CentOS 7 / Amazon Linux 2 | yum check-update | yum updateinfo list security | sudo needs-restarting -r | sudo needs-restarting -s |
| SUSE / openSUSE | zypper list-updates | zypper list-patches --category security | sudo zypper needs-rebooting | sudo zypper ps -s |
needs-restarting -s.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.
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.
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.
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.
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.
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
Most tools run entirely in your browser. Tools marked 📡 contact outside services, as listed in the Privacy Policy. Review commands before you run them; see the Terms.