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:

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 :)


Leave a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>