Why do you want to do this?
Well, this is for those who don’t need support, but happen to have the install cds for RHEL and do need updates.
Centos pretty much is the same as Redhat except that they are compiled on different machines and possible are compiled with different compilers. You can get more information at http://www.centos.org.
I think the way the versioning works is like this:
Redhat 3 update 7: CentOS 3.7
Redhat 4 update 2: CentOS 4.2
Redhat 4 update 3: CentOS 4.3
You get the drift.
Here’s the list of RPMs you’ll need. I just run wget for each of them.
After grabbing them all, I just install all of them:
Make sure you don’t have other rpms in the directory and run:
rpm –force -ivh *.rpm
Reason for the force is because it conflicts with redhat-release-4ES-5.4. I don’t care too much about that.
Now, you’re on CentOS. To upgrade packages now, just run:
Another thing that’s cool about this is that you don’t have to bother resolving dependencies cause YUM does it for you. To install a package for example, gcc, just run:
yum install gcc
up2date does the same, but you’ll need Redhat’s subscription.