If you look after several servers, you do not log in to each of them every day to check for updates. apticron does that for you: it checks daily whether package updates are available and sends an e-mail with the list of packages and – if you wish – the changes from the changelogs. Nothing is installed in the process; the decision stays with the admin.
Installation
sudo apt install apticron apt-listchanges
For the mails to arrive, the server must be able to send mail. The easiest way is through an existing SMTP account with msmtp – the setup is described in the article on unattended-upgrades.
Configuration
Your own settings belong in /etc/apticron/apticron.conf. If the file does not exist yet, copy the template:
sudo cp /usr/lib/apticron/apticron.conf /etc/apticron/apticron.conf
sudo nano /etc/apticron/apticron.conf
The most important settings:
# Recipients (several separated by spaces)
EMAIL="admin@example.org"
# Only send a mail if the list of updates has changed since the last mail
DIFF_ONLY="1"
# Also send a mail when there are NO pending updates ("1" = yes)
NOTIFY_NO_UPDATES="0"
With DIFF_ONLY="1" you do not get the same mail every day for as long as you have not installed the updates yet.
Testing
sudo apticron
If updates are pending, a mail should arrive shortly afterwards. The daily run is set up automatically during installation – as a cron job or a systemd timer, depending on the version.
Combining apticron and unattended-upgrades
A proven combination for servers: unattended-upgrades installs security updates automatically, apticron reports all the other updates you want to decide on yourself. This keeps the system secure without larger changes happening unplanned.
After installing updates, needrestart (sudo apt install needrestart) shows which services have to be restarted so that they actually use the updated libraries.
Originally published in 2011 for Ubuntu 10.04, completely revised in November 2026.