≡ Menu

Red hat / CentOS / Fedora Send Yum Package Update Notification Via Email

I know how to send package update email notification under Debian / Ubuntu Linux. How do I send Automatic Email Notification under RHEL v4/5, CentOS, Red Hat and Fedora Linux, when security & package updates available? How do I force yum to send an email when upgrades available?

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@example.com
# who send the notifications
email_from = adm@staff.example.com

Here is complete working config file:

# 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@example.com
# who send the notifications
email_from = adm@staff.example.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 = no
# automatically download deps of updates
do_download_deps = no

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

Sample email sent by yum notification

This is the automatic update system on node02.nixcraft.co.in.

There are 2 package updates available. Please run the system updater.

Packages available for update:


Thank You,
Your Computer
Share this tutorial on:

Your support makes a big difference:
I have a small favor to ask. More people are reading the nixCraft. Many of you block advertising which is your right, and advertising revenues are not sufficient to cover my operating costs. So you can see why I need to ask for your help. The nixCraft, takes a lot of my time and hard work to produce. If you use nixCraft, who likes it, helps me with donations:
Become a Supporter →    Make a contribution via Paypal/Bitcoin →   

Don't Miss Any Linux and Unix Tips

Get nixCraft in your inbox. It's free:

{ 11 comments… add one }
  • Hector L Perez February 6, 2009, 2:21 pm

    Great article. However, after conducting a “find / | grep yum-updatesd” I got zero hits on a RHEL 5.2 box.

    Where is the file? Is there another file to perform the same task?



  • nixCraft February 6, 2009, 4:11 pm

    Install yum-updatesd

    yum remove yum-updatesd


  • Kathryn February 7, 2009, 3:52 am

    Shouldn’t that be

    `yum install yum-updatesd`

    I had to install it on Fedora 9.

  • sandeep February 10, 2009, 6:49 am

    Hi, I have problem i am using fedora 10 but unfortunatlly everything on that is comeing big i mean it is using high resolution (800X600), when i check it it is not identifing my monitor, well this is a little problem. It is hanging after start, i dont know why after that when i manually restart then it start otherwise it not showing any thing… tell me what i do to rectify it also tell me how i check the error logs related to this

  • sandeep February 10, 2009, 6:52 am

    One thing more how i check which updates are installed on my FC10 and is it asking me before it download or it autometically download the sites. what to do to stop automatic update

  • Adam July 29, 2010, 6:59 am

    Very interesting .. thanks you

  • Hemorex December 8, 2010, 1:48 pm

    really, I do not know what to say. But thanks so much.

  • SAFAD March 8, 2011, 7:22 pm

    Does it send emails even when i have no mail server installed ?

  • SMARTB.IT February 7, 2012, 4:50 pm

    8SAFAD: No but you can set smtp_server = [YOURSMTPSERVER:YOURPORT]
    Details :

  • jo April 22, 2012, 1:31 pm

    I could send emails without email server being installed only if you setup the system to use an external email server.

    Btw, linux by default is coming with email server setup only to serve localhost, so there is nothing to worry about.

  • Franz January 18, 2016, 3:29 pm

    I have installed the CentOS 7 minimal version, now the yum-updatesd package is not installed.
    I also can not install it with “yum install yum-updatesd”.

    How can I get the package now ?

Leave a Comment

You can use these HTML tags and attributes: <strong> <em> <pre> <code> <a href="" title="">

   Tagged with: , , , , , , , , , , , , , , , ,