Trending News


How to Keep CentOS, RHEL, and Fedora Systems Up to Date

How to Keep CentOS, RHEL, and Fedora Systems Up to Date 

As server administrators, we must constantly keep our applications up to date with the most latest packages. It is impossible to go to the server every day to look for new packages. We may use the yum-updated app to receive email alerts or configure this service to update any packages automatically as they become available.

Table of Contents

Systems Up to Date

Yum-updatesd can be set up in a few simple steps, as seen below. You will also need to update the new packages from top yum repositories.

Step 1: Install or update the yum-updated package

This package is installed by default during system installation. As a result, you can simply update this package before configuring it.

					# yum update yum-updatesd

Step 2: Set up yum-updatesd

Change the configuration file to fit your requirements. Use your preferred editor to edit the file; for example, I use vim.

					# vim /etc/yum/yum-updatesd.conf
# 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

# Put your mail address
email_to =

# who send the notifications
email_from =

# 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

Details of the configuration:

run_interval: The number of seconds it takes to recheck for new updates.

updaterefresh: The number of seconds between update information refreshes must be kept to a minimum.

emit_via: There are a few different ways to send out an update notification. ’email,’ ‘dbus,’ and ‘syslog’ are all valid options.

do_update: ‘yes’ to auto-update packages, ‘no’ to not auto-update packages (‘no’ is preferred).

do_download: ‘yes’ to download packets automatically, ‘no’ to avoid downloading updates (‘no’ is preferred).

do_download_deps: Yes’ for auto-downloading package dependencies, no’ for not downloading dependencies (preferable ‘no’ ).

email_to: Email addresses to which an update message can be sent.

email_from: Update notifications will be sent from this email address.

Step 3: Disable auto-update for certain packages

We may not need to auto-update a few packages before we have a more clear purpose, such as PHP and MySQL. To do so, edit the yum.conf file in /etc/yum.conf.

					# vi /etc/yum.conf


And, under the [main] section, add the following line.

					 exclude=php* kernel* mysql* httpd*


Step 4: Restart the yum-updatesd service.

To restart the yum-updatesd service and have it start automatically when the device boots up, type the following command.
					# /etc/init.d/yum-updatesd restart
# chkconfig yum-updatesd on
You will get an email similar to the one below in your inbox.
This is the automatic update system on

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

Packages available for update:


Thank You,
Your Computer
Share on facebook
Share on twitter
Share on linkedin
Share on pinterest
Share on reddit
Share on vk
Share on tumblr
Share on skype
Share on whatsapp
Share on stumbleupon

Related posts

Leave a Reply

Required fields are marked *