Upgrade CentOS 5.6 to CentOS 5.9

linux-penguinWhile in the process of updating a development virtual machine of CentOS 5.6, it became clear that the updates would not update CentOS 5.6 to it’s final release of CentOS 5.9. The traditional yum update approach produced the status of No Packages marked for Update. However, a couple of additional commands produced the desired result of CentOS 5.9.

The traditional and usually satisfactory approach is the following command:

yum update

Another way to do update is first clean all, second update glibc, yum, rpm and python packages and then update other packages like following:

yum clean all
yum update glibc* yum* rpm* python*
yum update

To verify the release, the following command produced CentOS release 5.9 (Final)

cat /etc/redhat-release
yumupfix-2

Alternatively, try this command.

lsb_release -d
yumupfix-1

If the lsb_release command is not available, use yum to install.

yum install redhat-lsb

Source(s)
http://www.if-not-true-then-false.com/2010/upgrade-centos/