Patching Linux servers: distribution guides
Every Linux distribution has its own release schedule, package manager and advisory feed. The table below gives the one command that installs pending security fixes on each, which releases still get fixes as of November 2026, and where the vendor announces new vulnerabilities.
Quick reference
Run the commands as root or with sudo. On a release that is out of support, the command still runs but installs nothing new, because no fixes are being published. Check the release first.
| Distribution | Supported releases | Package manager | Install security updates | Advisories |
|---|---|---|---|---|
| Debian | 13 “trixie”; 12 “bookworm” (LTS until June 30, 2028) | apt | sudo apt update && sudo apt upgrade | debian.org/security |
| Ubuntu | 26.04, 24.04 and 22.04 LTS; 26.10 interim; older LTS releases with Ubuntu Pro | apt | sudo apt update && sudo apt upgrade | ubuntu.com/security/notices |
| Red Hat Enterprise Linux | 10 (latest minor 10.2), 9 (9.8), 8 (8.10) | dnf | sudo dnf upgrade --security | Red Hat Customer Portal |
| CentOS Stream | 10 (until May 31, 2030), 9 (until May 31, 2027) | dnf | sudo dnf upgrade | See the CentOS guide |
| Fedora Linux | 44 (released April 28, 2026) and 43; 45 is scheduled for November 3, 2026 | dnf | sudo dnf upgrade --refresh | See the Fedora guide |
| SUSE Linux Enterprise Server | 16, 15 SP7 | zypper | sudo zypper patch --category security | SUSE update advisories |
| Amazon Linux | Amazon Linux 2023 (until June 2029); Amazon Linux 2 ended June 30, 2026 | dnf | sudo dnf check-release-update, then sudo dnf upgrade --releasever=latest | Amazon Linux Security Center |
| Arch Linux | Rolling release (only the current state of the repositories is supported) | pacman | sudo pacman -Syu | security.archlinux.org |
| Alpine Linux | 3.24, 3.23, 3.22 (3.21 ended November 1, 2026) | apk | apk update && apk upgrade (as root) | security.alpinelinux.org |
Two releases just went out of support. Debian 11 “bullseye” left Debian LTS on August 31, 2026, and Amazon Linux 2 reached end of support on June 30, 2026. If you still run either, read the end-of-life section of the matching guide and Is my OS supported?.
The same five steps everywhere
- Know the release. Run
cat /etc/os-releaseand compare it with the table above. - Install the fixes. Use the command in the table, or a security-only variant where the distribution offers one.
- Restart what loaded the old code. A patched library does nothing for a process that still has the old copy in memory. See Restarts and reboots.
- Boot the new kernel. Kernel fixes need a reboot unless you use live patching. See Kernel updates and Kernel live patching.
- Automate the routine. Let the system install security updates daily and keep manual work for urgent cases. See Automatic updates.
For a single urgent vulnerability, start with Emergency patching and Check installed versions, and follow the vendor feeds listed in Security advisories.
Distribution guides
- DebianPatch Debian 13 trixie and Debian 12 LTS: security repository, apt commands, unattended-upgrades, debsecan, needrestart, DSA/DLA feeds and leaving EOL releases.
- UbuntuPatch Ubuntu 26.04, 24.04 and 22.04 LTS: apt, unattended-upgrades, Ubuntu Pro ESM (free on 5 machines), pro fix for a CVE, Livepatch, USNs and release upgrades.
- RHEL, Alma, Rocky, OraclePatch RHEL, AlmaLinux, Rocky and Oracle Linux fast: dnf security-only updates, RHSA/ALSA/RLSA/ELSA advisories, dnf-automatic, reboots, kpatch, Ksplice and EOL dates.
- CentOSCentOS Linux 7 and 8 get no more updates. EOL dates, CentOS Stream 9 and 10 lifecycle, how to patch Stream, and how to move to RHEL, AlmaLinux or Rocky Linux.
- FedoraPatch Fedora servers: dnf upgrade --refresh, security advisories, dnf-automatic, reboot checks, the 13-month support window and dnf system-upgrade to a new release.
- SUSE and openSUSEPatch SLES 16, SLES 15 and openSUSE fast: zypper patch --category security, zypper ps, needs-rebooting, live patching, LTSS and end-of-life dates as of November 2026.
- Amazon LinuxPatch Amazon Linux 2023 fast: versioned repositories and --releasever=latest, security-only updates, ALAS advisories, live patching, and AL2 end of support (2026-06-30).
- Arch LinuxKeep an Arch Linux server patched: full pacman -Syu upgrades, no partial upgrades, arch-audit and the security tracker, keyring fixes, and rebooting after kernel updates.
- Alpine LinuxPatch Alpine Linux servers and container images: apk update and apk upgrade, supported release branches and end-of-support dates, secdb, and rebuilding images.
- Distributions and versionsEvery maintained Linux distribution release with its latest version and end of security support, plus BSD, Unix and appliance systems. Updated daily.
Sources
- Debian Releases, Debian Project
- Debian Long Term Support, Debian Wiki
- Ubuntu release cycle, Canonical
- Red Hat Enterprise Linux release dates, Red Hat
- Installing security updates (RHEL 9), Red Hat
- Download CentOS, CentOS Project
- Download Fedora Server, Fedora Project
- Product Support Lifecycle, SUSE
- zypper(8) manual page, openSUSE
- Amazon Linux 2023 FAQs, Amazon Web Services
- Amazon Linux 2 FAQs, Amazon Web Services
- pacman(8) manual page, Arch Linux
- Alpine Linux releases, Alpine Linux
- Working with apk, Alpine Linux User Handbook