Cron-apt: Automatic Security Updates Installation
Introduction
My goal is to install security updates automatically. Obviously this kind of approach is not really recommended, but on a Debian stable system where only security updates are installed, we minimize the risks.
So I started looking for a tool to do this kind of thing and found cron-apt.
Installation
Simply:
|
|
Configuration
Now that it’s installed, let’s create a file that will contain only the Debian security repositories:
|
|
Then let’s edit the cron-apt configuration file to use aptitude, send update status emails, and specify that we only want security updates:
|
|
Then we just need to modify the default actions to perform. By default, it only downloads packages without installing them (because of the -d option on the dist-upgrade line). That’s why we are going to modify this file accordingly:
|
|
Finally, if you want to change the update time, check this file and adapt it according to your needs:
|
|
Last updated 18 May 2014, 11:34 CEST.