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:

/usr/share/doc/cron-apt/README.gz

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:

MAILON=”error”

MAILTO=”email@domain.com”

Now, edit your crontab and add automatic update everyday:

crontab -e

Add this line to your crontab to run job daily:

@daily /usr/sbin/cron-apt

Save file and enjoy your auto-updating-everyday Ubuntu :)

DD