Unattended upgrades in Ubuntu
Andrew Bolster
Senior R&D Manager (Data Science) at Black Duck Software and Treasurer @ Bsides Belfast and NI OpenGovernment Network
_Never having to think about updates again _ is a good thing in my head, so here’s how to set up Unattended Upgrades under Ubuntu for fun and profit.
$ sudo apt-get install unattended-upgrades
$sudo vim /etc/apt/apt.conf.d/50unattended-upgrades
Uncomment the line // "${distro_id}:${distro_codename}-updates";
$ sudo vim /etc/apt/apt.conf.d/10periodic
Make it look like this
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "1";
APT::Periodic::AutocleanInterval "7";
APT::Periodic::Unattended-Upgrade "1";