Automatic updates (unattended-upgrades)
Automatically apply security patches without manual intervention.
What this tutorial does
The tutorial "Automatic updates (unattended-upgrades)" helps you achieve this goal:
Automatically apply security patches without manual intervention.
Debian/Ubuntu
-
Install the package: apt install -y unattended-upgrades apt-listchanges - Configure: dpkg-reconfigure --priority=low unattended-upgrades
- Answer "Yes" to enable automatic updates.
-
Edit /etc/apt/apt.conf.d/50unattended-upgrades if necessary: - Uncomment: Unattended-Upgrade::Remove-Unused-Dependencies "true";
- Uncomment: Unattended-Upgrade::Automatic-Reboot "false"; (do not restart automatically)
-
Check status: systemctl status unattended-upgrades - Dry test: unattended-upgrade --dry-run --debug