Set up automatic updates on Ubuntu

sudo apt install unattended-upgrades

sudo vim /etc/apt/apt.conf.d/50unattended-upgrades

sudo vim /etc/apt/apt.conf.d/20auto-upgrades

APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";
APT::Periodic::AutocleanInterval "7";
 You can see if the auto-upgrades work by launching a dry run:
sudo unattended-upgrades --dry-run --debug

Comments

Popular posts from this blog

Check MySQL query history from command line