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.
More on Patching, Automation & Golden Images
What does a good Linux patching strategy look like?BeginnerIn-place patching vs immutable image replacement: which do you prefer?IntermediateHow do you know whether a server needs a reboot after patching?BeginnerWhat is kernel live patching?IntermediateHow do you roll kernel updates across a 200-node fleet safely?AdvancedWhat is a golden image?Beginner