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:
[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@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
Hi,
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:
device-mapper-multipath
kpartx
Thank You,
Your Computer
Featured Articles:
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- My 10 UNIX Command Line Mistakes
- 10 Greatest Open Source Software Of 2009
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- Top 20 OpenSSH Server Best Security Practices
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Linux Video Editor Software
- Email FAQ to a friend
- Download PDF version
- Printable version
- Comment RSS feed
- Last Updated: 02/28/09




{ 5 comments… read them below or add one }
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?
Thanks,
Hector
Install yum-updatesd
HTH
Shouldn’t that be
`yum install yum-updatesd`
I had to install it on Fedora 9.
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
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