Monday, 4 June 2012

Update CentOS

Update CentOS

There are basically two ways of updating a CentOS machine.. first is by using the GUI and the second, via command line. I am going to explain out both the ways below:

Using GUI:

When starting up CentOS, a service is automatically run in the background that checks to see if there are any available updates.  Be patient as it may take a few minutes to run.  If there are available updates for your system, an open box will appear in the upper right corner near the clock and a message box will open up with the Updates Available title.

Click the View Updates... button.

The Package Updater will open.
Click Apply updates.

CentOS will now resolve all dependencies and then download and install all updates.  You may be prompted to accept some downloads.
If an update requires a reboot, you will be prompted to do so.
Click Reboot now.
CentOS is now ready to use.

Updating Your System with command line (yum)

Use the update option to upgrade all of your CentOS system software to the latest version with one operation.
To perform a full system update, type this command: 

su -c 'yum update'
At the prompt, enter the root password.

To Automatically Updating Your System

The yum package supplied with CentOS includes scripts to perform full system updates every day. To activate automatic daily updates, enter this command:

su -c '/sbin/chkconfig --level 345 yum on; /sbin/service yum start' 
At the prompt, enter the password for the root account.

[Note]NOTE: How Daily Updates are Run
There is no separate yum service that runs on your system. The command given above enables the control script /etc/rc.d/init.d/yum. This control script activates the script /etc/cron.daily/yum.cron, which causes the cron service to perform the system update automatically. 

Further Reading:

  1. Install and Configure the Yum Priorities plug-in
  2. Install and Configure the EPEL Repository
  3. Install and Configure the Remi Repository
  4. Installing and Configuring LAMP on CentOS

No comments :

Post a Comment

Note: only a member of this blog may post a comment.