I’ve yet to get on the container bandwagon and use a bunch of virts on my home server to partition out various use cases. But, it also means a bunch of instances that need management. One of the things that I want to automate is having the available updates installed. For Ubuntu, the easiest way that I’ve found is to do the following:
sudo apt install unattended-upgrades
And then set the configuration of /etc/apt/apt.conf.d/20auto-upgrades to be:
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";
APT::Periodic::Download-Upgradeable-Packages "1";
APT::Periodic::AutocleanInterval "7";