Before upgrading CentOS 5.5 to 5.6 it cannot be stressed enough how important it is to make a backup of your system before you do this. 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.
Clean All Packages
The following command will get a list of packages that are going to be updated.
Lets begin upgrading CentOS 5.5 to 5.6
Finally reboot the server for Kernel changes to take effect
Verify that CentOS 5.6 is working:
Or you can use the lsb_release command:
# cat /etc/redhat-release
CentOS release 5.6 (Final)
# lsb_release -a
LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: CentOS
Description: CentOS release 5.6 (Final)