Interview Prep/Linux/Patching, Automation & Golden Images

How do you configure automatic security updates?

BeginnerProductionPatching, Automation & Golden Images
Answer

Ubuntu/Debian: unattended-upgrades.

sudo apt install unattended-upgrades
sudo dpkg-reconfigure -plow unattended-upgrades
# /etc/apt/apt.conf.d/50unattended-upgrades: Allowed-Origins, Automatic-Reboot "false"

RHEL: dnf-automatic with upgrade_type = security and apply_updates = yes in /etc/dnf/automatic.conf, then systemctl enable --now dnf-automatic.timer. On critical hosts we auto-download but apply in a maintenance window.

All Linux questions Roadmap: Linux

More on Patching, Automation & Golden Images