Technology Insights

How to Configure yum-updatesd to Notify By Email

On most new CentOS server installs yum-updatesd is installed by default and by default it sends notifications to the dbus. You do however have the option to configure it to send updates via email or to syslog. If you do decide to have updates sent via email then you will need to add a couple more configuration options to /etc/yum/yum-updatesd.conf which are email_to and email_from. Listed at the bottom of this post is the default configuration file followed by a yum-updatesd.conf file that will send email notifications of new files.

Another thing to watch out for is yum-updatesd locking your ability to update files via yum. While it is checking to see if there are new packages available it puts a lock on using yum so if you run into this problem you either want to remove yum-updatesd or set its configuration to not check once every hour. I changes my default to 10800 seconds or 3 hours.