How to change the email interval for apticron?

I have a VPS running Ubuntu 12.04 Server. Apticron sends out daily emails when there are updates available. I want to change this to weekly.

I looked at the configuration options in /etc/apticron/apticron.conf, but that does not list an option to set a different interval for sending the reminder emails. I also can’t see a relevant cronjob to modify.

Can I change the apticron email interval?

Asked By: arjan


In order to change this, you must:

  1. Delete the daily cronjob (if it exists)

  2. Edit /etc/cron.d/apticron settings,


     30 * * * * root if test -x /usr/sbin/apticron; then /usr/sbin/apticron --cron; else true; fi


     30 11 * * 0 root if test -x /usr/sbin/apticron; then /usr/sbin/apticron --cron; else true; fi

This has a good walkthrough, and this explains cron options well.

Answered By: jake madison
Categories: Answers Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.