What is CentOS?
: CentOS is essentially a rebuild of the RHEL source code. I've been using this OS for a couple weeks now with no issues running cpanel.
More info on CentOS can be found on the web site:
Here are the steps i took to update a Redhat 9 box running on a minimal install ( no X, etc ) as suitable for a server to CentOS 3.1 ( which is a fork of RedHat Enterprise Linux v3 )..
I took a fresh install of redhat 9, slapped it on a test box then updated it with up2date. I then installed yum for redhat 9 which can be found here:
Now, you might want to rebuild the rpm database, just incase, thats up to you:
# rpm -vv --rebuilddb
I then modified /etc/yum.conf to look like this:
exclude=httpd* mysql* php* perl*
installonlypkgs=kernel kernel-smp kernel-hugemem kernel-enterprise kernel-debug kernel-unsupported kernel-smp-unsupported kernel-hugemem-unsupported
name=CentOS-$releasever - Base
name=CentOS-$releasever - Updates
#packages used/produced in the build but not released
name=CentOS-$releasever - Addons
#additional packages that may be useful
name=CentOS-$releasever - Extras
Change "http://mirror.pacific.net.au" to a mirror near you, a list can be found here:
After that you need to import the GPG key for the centos RPMs. Issue the following command:
# rpm --import http://mirror.centos.org/centos/3.1/i386/RPM-GPG-KEY-CentOS-3
Nows the time you want to check you have made appropriate backups, etc ( i hope you all test this out before rolling production servers! ).
Next step is to run the following command:
# yum upgrade
This will download the rpm headers and determine what needs to be done, play carefull attention of course here and in all parts if this process for errors. Yum will then ask you if you are sure you want to go ahead, if no errors are present, press "y" then "enter".
This process will take a while, depending on your connection and the gear your installing it on of course. Go brew a fresh pot of coffee, order a pizza, grab a movie or GET BACK TO WORK YOU!!!!
After thats done, check for errors, make sure the new kernel is installed by issueing:
# rpm -qa|grep kernel
You should be presented with a kernel versioned like this: 2.4.21-15.EL.c0 as well as your other kernels previously installed. Check your boot loader to make sure the new kernel is default.
# yum update
Just to ensure you have everything you need.
Now your set to reboot ( hopefully ):
shutdown -rf now
This worked like a charm for me, hope you all can make use of this somehow