≡ Menu

How to update to the latest version of CentOS?

The yum command can be used to upgrade the CentOS version to the latest version. Note that yum works with all RPM based distributions like Fedora, Red Hat And CentOS.

Simply type the following command on the shell prompt (as root):

yum update

This will update all packages including the operating system to its latest versions. It will apply all security patches and update everything that needs to be updated.

[root@server ~]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.metrocast.net
 * extras: mirror.ash.fastserv.com
 * rpmforge: mirror.lug.udel.edu
 * updates: yum.singlehop.com
base                                                     | 3.7 kB     00:00
extras                                                   | 3.5 kB     00:00
rpmforge                                                 | 1.9 kB     00:00
updates                                                  | 3.4 kB     00:00
updates/primary_db                                       | 4.2 MB     00:00
vz-base                                                  |  951 B     00:00
vz-updates                                               |  951 B     00:00
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package chkconfig.i686 0: will be updated
---> Package chkconfig.i686 0: will be an update
---> Package httping.i686 0:2.0-1.el6.rf will be updated
---> Package httping.i686 0:2.3.3-1.el6.rf will be an update
--> Processing Dependency: libfftw3.so.3 for package: httping-2.3.3-1.el6.rf.i686
---> Package iputils.i686 0:20071127-17.el6_4 will be updated
---> Package iputils.i686 0:20071127-17.el6_4.2 will be an update
---> Package ntsysv.i686 0: will be updated
---> Package ntsysv.i686 0: will be an update
---> Package setup.noarch 0:2.8.14-20.el6 will be updated
---> Package setup.noarch 0:2.8.14-20.el6_4.1 will be an update
---> Package xinetd.i686 2:2.3.14-38.el6 will be updated
---> Package xinetd.i686 2:2.3.14-39.el6_4 will be an update

Thats it! Now you have updated your entire operating system and the packages to the latest version with all necessary security patches! You should reboot your system after doing this using the reboot command as root.

{ 0 comments… add one }

Leave a Comment