Configuring automated security updates
Install Unattended upgrades package:
apt update
apt install -y unattended-upgrades
Edit file
50unattended-upgrades
:
vi /etc/apt/apt.conf.d/50unattended-upgrades
Uncomment the following line and save the file:
"origin=Debian,codename=${distro_codename},label=Debian";
"origin=Debian,codename=${distro_codename},label=Debian-Security";
"origin=Debian,codename=${distro_codename}-security,label=Debian-Security";
Test the configuratio:
unattended-upgrades --dry-run --debug
Enable the service and set to start on boot
systemctl start unattended-upgrades
systemctl enable unattended-upgrades
Last updated
Was this helpful?