Keep Linux servers patched with automatic security updates

8 steps · about 1 h 52 min · Beginner

  1. See how Debian publishes security fixes (doc, Debian, 10 min)

    Shows where advisories come from and why prompt patching matters.

  2. Use apt to update and upgrade properly (doc, Ubuntu Server docs, 15 min)

    Builds the manual workflow you will automate.

  3. Enable automatic updates on Ubuntu (doc, Ubuntu Server docs, 15 min)

    Turns on unattended-upgrades with the supplied settings.

  4. Tune unattended-upgrades on Debian (doc, Debian Wiki, 20 min)

    Covers origins, blocklists, mail and automatic reboot.

  5. Compare with dnf-automatic on RHEL-family (doc, DNF docs, 12 min)

    Gives the equivalent for Fedora, Rocky and Alma servers.

  6. Read Ubuntu security notices (reference, Ubuntu, 10 min)

    Lets you check which CVEs a package update fixes.

  7. Reduce reboots with kernel livepatch (doc, Ubuntu, 10 min)

    Explains how kernel fixes land without a restart.

  8. Verify services after patching with systemctl (reference, man7.org, 20 min)

    Lets you confirm units are healthy and restart those that need it.