How to automatically update your Ubuntu/Debian every day?
If you were ever tired of everyday manual update of your debian packages, we can recommend a very simple way to do it automatically every period you want.
There are several ways to do that, I’ll show you simplest one to do that.
There is a nice debian package in repo, which do all magic for you. Just simply install it:
sudo apt-get install cron-apt
Configuration file you can find in /etc/cron-apt .
Informations about writing config file are inside file:
The most common option for us will be sending mail after every upgrade error. To do that, add following lines to /etc/cron-apt/config:
Now, edit your crontab and add automatic update everyday:
Add this line to your crontab to run job daily:
Save file and enjoy your auto-updating-everyday Ubuntu