Patching guides for Linux and Unix servers

Updated November 2026

These guides show you how to get security fixes onto Linux and Unix servers quickly and safely, and how to confirm the fix is really in place. Each one gives the exact commands for the main package managers: APT, DNF, Zypper, APK and FreeBSD pkg.

Where to start

If a critical vulnerability was just announced and you need to act now, start with the emergency patching playbook. It walks you through the first hours: deciding how urgent the issue is for you, finding the affected hosts, patching, restarting and checking your work.

If you only need to answer “are we affected?”, go to checking installed versions against an advisory. It explains why a distribution package can be fixed through a backport even when its version number looks older than the upstream release that fixed the bug. That is the most common source of false alarms from scanners and audits.

How the guides fit together

Patching a server has four parts, and most incidents go wrong at one of them:

  1. Know what you run. Which operating system release, which packages and which versions. See Check installed versions and whether your OS release still gets fixes.
  2. Install the fix. Manually in an emergency, and automatically the rest of the time. See Automatic updates.
  3. Load the fix. A patched library on disk does nothing until the programs using it restart. Kernel fixes need a reboot or a live patch. See Restarts and reboots, Kernel updates and Kernel live patching.
  4. Check for damage. If the hole was open while attackers were using it, look for signs of compromise. See Signs of compromise.

Per-system pages

The guides here cover tasks that apply to every system. For release-specific details, such as support dates, where the vendor publishes advisories and how its update tools behave, see the Linux distribution pages and the Unix and BSD pages. Current high-profile issues are listed under Vulnerabilities.

Commands on this site. Commands that change the system are shown with sudo. On systems without sudo, run them as root. Commands that restart a service or reboot the machine are marked. Check the vendor’s own advisory for the exact package and version that fixes your issue.

All patching guides