Ubuntu automated security updates
Automated security updates is a great way to ensure your system automatically installs all security updates.
Step 1: package installation
Install the unattended-upgrades
package:
Step 2: configure automatic updates
Edit the configuration file with your favourite text editor:
There will be alot of other information, but the lines you want to uncomment are:
That tells Ubuntu to automatically perform security updates. Your file will look similar to this after making the changes,
Step3 - Enabling Unattended Automatic Updates
To enable automatic updated, you need to ensure that the apt configuration file /etc/apt/apt.conf.d/20auto-upgrades
contains at least the following two lines. It's usually included by default.
The above configuration updates the package list, and installs available updates every day.
For bonus points and a cleaner machine, add this to to anove file to clean your download cache every 7 days.
Bonus step - You can test whether it works by doing a dry run.
Your output will look similar to this.
Last updated