Cron-apt – How to be notified when new updates are available

Well, I really can’t sleep when I know that my servers are out of date, specially when have some critical secure update. I have a couple of servers and it’s not cool to access then everyday to check if there are new updates.

The cool thing here is to use cron-apt to give us a little help. It can notify me or even update my server automatically (I don’t recommend that, it’s very important to know what is being updated before do that, specially when have some update the can conflict with your system). In the configuration below I show my cook book to configure the cron-apt to notify my email when new updates are available:

In: /etc/cron-apt/config

MAILTO="[email protected]"
OPTIONS="-q -q --no-act upgrade"


In: /etc/crontab (it will be ran once a week)

40 4 * * 6 root test -x /usr/sbin/cron-apt /usr/sbin/cron-apt



Enjoy it!


Leave a Reply

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