Keeping your VPS updated is one of the most important security tasks. On Ubuntu and Debian, you can enable automatic installation of security updates with unattended-upgrades.
This guide is intended for GARMTECH VPS customers who manage their own Linux server.
sudo apt update
sudo apt install unattended-upgrades
On some systems you may also want:
sudo apt install apt-listchanges
Ubuntu/Debian provide a simple configuration wizard:
sudo dpkg-reconfigure --priority=low unattended-upgrades
Choose Yes when asked to enable unattended upgrades.
Main config file:
/etc/apt/apt.conf.d/50unattended-upgrades
Auto-update schedule file:
/etc/apt/apt.conf.d/20auto-upgrades
Common options you may adjust in 50unattended-upgrades:
sudo unattended-upgrade --dry-run --debug
Unattended-upgrades logs are usually here:
/var/log/unattended-upgrades/
To view the latest log entries:
sudo tail -n 100 /var/log/unattended-upgrades/unattended-upgrades.log