Unattended Upgrades - Linux auto updates

November 6, 2020 11:55


sudo apt install unattended-upgrades apt-listchanges


In /etc/apt/apt.conf.d/50unattended-upgrades uncomment:

//Unattended-Upgrade::Mail "root";

…to allow a regulary report about the updates. Also may change the Unattended-Upgrade::Allowed-Origins array to include a "*:*"; - this will allow automatic updates for all packages!

Test with (check for the matching string messages!!!): sudo unattended-upgrade --debug --dry-run

Btw, you may want to use instead origin=Debian,codename=${distro_codename} for more specific updates…