Home Command line utilities Apticron – Get Email Alerts For Pending Package Updates

Apticron – Get Email Alerts For Pending Package Updates

By sk
Published: Updated: 7K views

As we all know, in Debian and Ubuntu desktop operating systems, Software updater tool will notify you whenever a new update is available. If a new update is available, a pop-up window will appear and display the latest available package updates. So, we can simply click the update button to install the pending package updates. But in Ubuntu Server, it's different. There won't be any pop-ups. The package updates will only be shown at the time of login. Take a look at the below screenshot.


As you in the above screenshot, there are no pending updates. If there is pending package and security updates, you will see a message something like below:

0 packages can be updated.
0 updates are security updates.

After you clear this screen, you can't view the pending updates. What are you going to do? No worries! Here comes Apticron in help.

Apticron is a simple, yet useful script which sends daily emails about pending package updates such as security updates, properly handling packages on hold both by dselect and aptitude. In this handy tutorial, we are going to see how to get email notifications for pending package updates using Apticron in Ubuntu 16.04 LTS server.

Configure Apticron to get Email alerts for pending package updates

Apticron is available in the default repositories of Debian and Ubuntu based systems. To install it on any DEB based systems, just run:

$ sudo apt install apticron

Once installed, edit Apticron config file /etc/apticron/apticron.conf in any editor of your choice:

$ sudo nano /etc/apticron/apticron.conf

Find the following line and enter your valid email address:

# set EMAIL to a space separated list of addresses which will be notified of
# impending updates

Configure Apticron to get Email alerts

You can specify multiple email addresses with space separated. After entering the Email ID, save and close the file.

Aptcron will send you an email whenever a new update is available. Once the you get the email, SSH or log in to your Ubuntu server, and start installing the updates.

Refer the man pages for more details about Apticron.

$ man apticron

Thanks for stopping by!

Help us to help you:

Have a Good day!!

You May Also Like

Leave a Comment

* By using this form you agree with the storage and handling of your data by this website.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

This website uses cookies to improve your experience. By using this site, we will assume that you're OK with it. Accept Read More