Ubuntu - Enable auto update Oct 3, 2019

Ubuntu Update

Overview

Update is used to keep your Ubuntu server and several programs installed on it updated. Updates often include feature enhancements and security updates to protect your server from malware and malicious attacks

Requirements

  • Ubuntu Server 18.04

How To

Edit the configure file:

nano /etc/apt/apt.conf.d/50unattended-upgrades

Uncomment the following line:

"${distro_id}:${distro_codename}-updates";

Uncomemnt the follwing line and change the value to true:

  • Unattended-Upgrade::Remove-Unused-Kernel-Packages "true";
  • Unattended-Upgrade::Remove-Unused-Dependencies "true";
  • Unattended-Upgrade::Automatic-Reboot "true";
  • Unattended-Upgrade::Automatic-Reboot-Time "02:00";

Congratulations, now you have an auto update enabled for your server!

 

Advertisement

Latest Updates