How To: Upgrade CentOS Linux 5.3 to v5.4

by on October 22, 2009 · 10 comments· LAST UPDATED October 27, 2009

in , ,

How do I upgrade CentOS Linux from version 5.3 to latest version 5.4 over the Internet?

CentOS Linux v5.4 has been released and available via mirrors for immediate update. The new version includes the kernel-based virtual machine (KVM) virtualization, next generation of developer features and tools including GCC 4.4, a new malloc(). Also included clustered, high-availability filesystem to support Microsoft Windows storage needs on CentOS Linux.

Fig.01: CentOS running GNOME Desktop (credit wikipedia)

Fig.01: CentOS running GNOME Desktop (credit wikipedia)

Step # 1: Make A Backup

It cannot be stressed enough how important it is to make a backup of your system before you do this. Most of the actions listed in this post are written with the assumption that they will be executed by the root user running the bash or any other modern shell. Use the following tools to backup data to other server:

Step # 2: Update All Packages

Type the following command to get a list of packages that are going to be updated, enter:
# yum list updates
To upgrade your box, enter:
# yum update

Reboot the server:
# reboot

Verify everything is working:
# uname -a
# netstat -tulpn
# tail -f /var/log/messages
# tail -f /path/to/log/file
# cat /etc/redhat-release

Sample outputs:

CentOS release 5.4 (Final)

Or you can use the lsb_release command:
# lsb_release -a
Sample outputs:

LSB Version:	:core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID:	CentOS
Description:	CentOS release 5.4 (Final)
Release:	5.4
Codename:	Final

To view log of all updated package, enter:

tail -f /var/log/yum.log
less /var/log/yum.log
grep -i bind /var/log/yum.log
Tweet itFacebook itG+ itDownload PDF versionFound an error/typo on this page?

{ 10 comments… read them below or add one }

1 yoander (sedlav) October 22, 2009 at 2:07 pm

Hey vivek, where did you get the info related with centos 5.4 release? In the project official site this new no appear.


2 nixCraft October 22, 2009 at 2:20 pm

Go here. Web pages are not updated immediately ;) also centos update notifiers sent me an email when updates are available.


3 Mihai Secasiu October 22, 2009 at 2:33 pm

I don’t think the packages are available in the yum repository yet. Maybe you can download the DVD iso, mount then and then configure yum to look for updates there.


4 Guy October 22, 2009 at 10:36 pm

@Mihai – The packages have been available for over 12 hours. Already downloaded to our local repository and updated our entire dev/test environment (85 or so CentOS servers).

Thanks Vivek!



5 Paul Stewart October 23, 2009 at 10:54 am

We have all the updates up on our mirror if you can’t find them –


6 afokkema October 24, 2009 at 8:54 am

Sometimes yum update doesn’t find any updates. If this is the case you can run the following command:

yum clean all

and then run the yum update command.


7 Leszek October 25, 2009 at 10:38 am

How about upgrading CentOS with cPanel installed ? Do I need to do it or will cPanel do it for me ? Or maybe it won’t ?


8 ashish October 25, 2009 at 2:02 pm

hello sir
how to configure vnc server in linux


9 Bret April 29, 2011 at 5:17 am

Hey Vikas,

As of now Centos 5.6 is released and I have got 5.3 installed.

My question is how to upgrade to Centos 5.5 which is what our requirement is?



10 Shib July 1, 2013 at 10:35 am

Did u ever find the answer to this?


Leave a Comment

Tagged as: , , , , , , , , , , , , , , , , ,

Previous Faq:

Next Faq: