Mar 11

RHEL / Fedora / CentOS has yum-updatesd, which provides notification of updates which are available to be applied to your system. This notification can be done either via syslog, email or over dbus. Configuration is done via the /etc/yum/yum-updatesd.conf file.

Open /etc/yum/yum-updatesd.conf file, enter:
# vi /etc/yum/yum-updatesd.conf

 
Setup variables as follows:
emit_via = email
# who to send the email to:
email_to = admin@domain.com
# who send the notifications
email_from = yumupdate@domain.com

 Here is complete working config file:

[main]
# how often to check for new updates (in seconds)
run_interval = 3600
# how often to allow checking on request (in seconds)
updaterefresh = 600
 
# how to send notifications (valid: dbus, email, syslog)
emit_via = email
# who to send the email
email_to = admin@domain.com 
# who send the notifications
email_from = yumupdate@domain.com
# should we listen via dbus to give out update information/check for new updates
dbus_listener = yes
# automatically install updates
do_update = no
# automatically download updates
do_download = yes
# automatically download deps of updates
do_download_deps = yes

Save and close the file. Restart notification yum-updatesd service:
# /etc/rc.d/init.d/yum-updatesd restart

written by MG \\ tags: ,


One Response to “How to Configure Yum Update to send Notification Via Email”

  1. 1. Michael Trojanek Says:

    yum-updatesd has been discontinued in favor of yum-cron. However, if you do not want to have another service running in the background you can easily get update notifications with a small bash script run by cron.

    I wrote a blog post about it: http://www.relativkreativ.at/articles/simple-update-notifications-for-your-centos-redhat-server

Leave a Reply

*