UCSD Main WebsiteUCSD Jacobs SchoolDepartment of Computer Science and Engineering
About CSECSE PeopleFacultyGraduate EducationUndergraduate EducationDepartment AdministrationContact CSE
spacer gif
spacer gif
CSE People
spacer gifspacer gif
spacer gif
plus signspacer gifAcademic Affairs
spacer gif
spacer gifspacer gifFaculty/Staff Intranet
spacer gif
plus signspacer gifFinancial Affairs
spacer gif
plus signspacer gifHuman Resources
spacer gif
minus signspacer gifComputing Support
spacer gifspacer gifServices
spacer gifspacer gifResources for TAs & Instructors
spacer gifspacer gifFacilities
spacer gifspacer gifRequest Help
spacer gifspacer gifOther Resources
spacer gifspacer gifWindows Resources
spacer gifspacer gifComputing Policy
spacer gif
plus signspacer gifFacilities
spacer gif
spacer gifspacer gifComputing FAQ
spacer gif
spacer gif
spacer gif
Search
spacer gifspacer gifspacer gif
 
 
Google
spacer gifspacer gif
spacer gif
spacer gif
spacer gif
spacer gif
spacer gifspacer gif
Home»Department Administration»Computing Support»Other resources»Converting from RHEL to CentOS»Converting RHEL 5 to CentOS 5
spacer gif
Converting RHEL 5 to CentOS 5
spacer gif
spacer gifspacer gifspacer gif
spacer gif

Converting your RHEL 5.x system to CentOS 5.x is relatively easy, and will save you the pain of having to rebuild a system from the ground up with a fresh install of CentOS.

Updates and Conversions
Currently, RHEL is at release 5.2, while CentOS is at release 5.1. If you have not yet updated to RHEL 5.2, do not do so before converting! If you have already updated to RHEL 5.2, it is strongly suggested you wait until CentOS 5.2 is released before doing the conversion.

Downloading Required Packages
To begin, you will need to download the following packages. It's best to create a temporary directory for the packages, and download them to that temporary directory.

Depending on which architecture your system is running, you will need to download packages from a different directory on the CentOS mirror:

i386 (32-bit)
ftp://mirror.ucsd.edu/centos/5/os/i386/CentOS/
x86_64 (64-bit)
ftp://mirror.ucsd.edu/centos/5/os/x86_64/CentOS/
ia64 (Itanium)
ftp://mirror.ucsd.edu/centos/5/os/ia64/CentOS/

From this directory, you will want to select these RPM packages:

  • centos-release
  • python-elementtree
  • python-sqlite
  • python-urlgrabber
  • sqlite
  • yum
  • yum-metadata-parser

Removing RHEL Packages
Next, you have to remove some specific packages from Red Hat. As root, run the following commands on your system:

  • rpm -e --nodeps redhat-release-notes redhat-release
  • rpm -e yum-rhn-plugin
  • service rhnsd stop
  • rpm -e rhn-client-tools rhn-setup-gnome rhnlib rhn-setup rhnsd rhn-check

Installing CentOS GPG Key
Now, we have to import the CentOS 5 RPM GPG key, which is used to sign all the packages provided by CentOS 5.

Installing CentOS Packages
Change into the temporary directory you created for the packages you downloaded above (cd) and run the following as root:

  • rpm -Uvh *.rpm

If you receive any warnings about a package already being installed, or a newer version of a package already installed, simply delete the downloaded package of the same name from your temporary directory, and re-run the above command. The conversion will still work.

Updating With CentOS Package
Once you've upgraded the necessary packages from the set that you downloaded manually, you can let yum take over and finish the job for you. Run the following two command as root:

  • yum clean all
  • yum -y update

The "yum -y update" may or may not download anything, so do not be alarmed if it doesn't do anything. That simply means your system's packages are up to date with the latest available versions provided by CentOS.

Reboot
While not strictly necessary unless new kernel packages are installed, it's strongly recommended that you now reboot your system to fully activate all the system changes.

You have now successfully completed your conversion from Red Hat Enterprise Linux 5.x to CentOS 5.x.

spacer gif
spacer gif
spacer gifback to top ^
spacer gif
spacer gif
spacer gif
spacer gif
9500 Gilman Drive, La Jolla, CA 92093-0404
spacer gif
About CSE | CSE People | Faculty & Research | Graduate Education | Undergraduate Education
Department Administration | Contact CSE | Help | Search | Site map | Home
webmaster@cs.ucsd.edu
Official web page of the University of California, San Diego
Copyright © 2003 Regents of the University of California. All rights reserved.
spacer gif