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
[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 # Put your mail address email_to = firstname.lastname@example.org # who send the notifications email_from = email@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
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
# 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.
# /etc/init.d/yum-updatesd restart # chkconfig yum-updatesd on
Hi, This is the automatic update system on Yehiweb.com. There are 12 package updates available. Please run the system updater. Packages available for update: mutt initscripts gnutls gnupg talk nss_db at gd avahi gettext samba rsh Thank You, Your Computer
How to use Registry Editor to navigate to any Registry key with a single click
You might get tired of manually navigating to various registry keys if you find yourself fiddling with Registry Editor and…