Keep Linux servers patched with automatic security updates
8 steps · about 1 h 52 min · Beginner
- See how Debian publishes security fixes (doc, Debian, 10 min)
Shows where advisories come from and why prompt patching matters.
- Use apt to update and upgrade properly (doc, Ubuntu Server docs, 15 min)
Builds the manual workflow you will automate.
- Enable automatic updates on Ubuntu (doc, Ubuntu Server docs, 15 min)
Turns on unattended-upgrades with the supplied settings.
- Tune unattended-upgrades on Debian (doc, Debian Wiki, 20 min)
Covers origins, blocklists, mail and automatic reboot.
- Compare with dnf-automatic on RHEL-family (doc, DNF docs, 12 min)
Gives the equivalent for Fedora, Rocky and Alma servers.
- Read Ubuntu security notices (reference, Ubuntu, 10 min)
Lets you check which CVEs a package update fixes.
- Reduce reboots with kernel livepatch (doc, Ubuntu, 10 min)
Explains how kernel fixes land without a restart.
- Verify services after patching with systemctl (reference, man7.org, 20 min)
Lets you confirm units are healthy and restart those that need it.