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

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 11 comments so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersncdu pydf
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
11 comments… add one
  • Hector L Perez Feb 6, 2009 @ 14:21

    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 Feb 6, 2009 @ 16:11

    Install yum-updatesd

    yum remove yum-updatesd


  • Kathryn Feb 7, 2009 @ 3:52

    Shouldn’t that be

    `yum install yum-updatesd`

    I had to install it on Fedora 9.

  • sandeep Feb 10, 2009 @ 6:49

    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 Feb 10, 2009 @ 6:52

    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 Jul 29, 2010 @ 6:59

    Very interesting .. thanks you

  • Hemorex Dec 8, 2010 @ 13:48

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

  • SAFAD Mar 8, 2011 @ 19:22

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

  • SMARTB.IT Feb 7, 2012 @ 16:50

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

  • jo Apr 22, 2012 @ 13:31

    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 Jan 18, 2016 @ 15:29

    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 Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum