Changes between Initial Version and Version 1 of ConvertRedHatEnterpriseLinuxToCentOS


Ignore:
Timestamp:
05/09/09 05:08:50 (11 years ago)
Author:
iva
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ConvertRedHatEnterpriseLinuxToCentOS

    v1 v1  
     1== Convert Red Hat Enterprise Linux (RHEL) System To CentOS == 
     2 
     3To convert a server from Red Hat Enterprise Linux to CentOS one needs to: 
     4 
     51. Replace the ''comps'' package; 
     62. Update the ''initscripts'' package; 
     73. Replace the ''redhat-release'' package with ''centos-release''; 
     84. Update the ''rpmdb-redhat'' package; 
     95. Install the ''Yellowdog Updater Modified (YUM)''. 
     10 
     11Practical examples follow. (Keep in mind that these upgrades were all performed in spring of 2009, so newer versions of the packages mentioned may be available by now.) 
     12 
     13 
     14=== RHEL 3 to CentOS 3 === 
     15 
     16{{{ 
     17# cat /etc/redhat-release 
     18Red Hat Enterprise Linux ES release 3 (Taroon Update 5) 
     19# 
     20# url=http://mirror.centos.org/centos/3.9/os/i386/RedHat/RPMS 
     21# 
     22# rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-3 
     23# 
     24# rpm -e comps-3ES-0.20070529 
     25# rpm -i $url/comps-3.9centos.0-0.20070617.i386.rpm 
     26# 
     27# rpm -q initscripts 
     28initscripts-7.31.22.EL-2 
     29# rpm -F $url/initscripts-7.31.31.EL-1.centos.1.i386.rpm 
     30# 
     31# rpm -e redhat-release-3ES-13.5.1 
     32# rpm -i $url/centos-release-3-9.1.i386.rpm 
     33# 
     34# rpm -q rpmdb-redhat 
     35rpmdb-redhat-3-0.20070529 
     36# rpm -F $url/rpmdb-redhat-3.9-0.20070703.i386.rpm 
     37# 
     38# rpm -i $url/yum-2.0.8-2.centos3.noarch.rpm 
     39# rpm -i $url/centos-yumconf-1-11.noarch.rpm 
     40# rpm -i $url/centos-yumcache-3.9-0.20070703.noarch.rpm 
     41# 
     42# cat /etc/redhat-release 
     43CentOS release 3.9 (Final) 
     44# 
     45}}} 
     46 
     47=== RHEL 4 to CentOS 4 === 
     48 
     49{{{ 
     50# cat /etc/redhat-release 
     51Red Hat Enterprise Linux ES release 4 (Nahant Update 7) 
     52# 
     53# url=ftp://linux-repo/pub/centos/4/os/i386 
     54# 
     55# rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-4 
     56# 
     57# rpm -e comps-4WS-0.20080711 
     58# rpm -i $url/disc1/CentOS/RPMS/comps-extras-10.1-1.noarch.rpm 
     59# rpm -i $url/disc1/CentOS/RPMS/comps-4.7CENTOS-0.20080805.i386.rpm 
     60# 
     61# rpm -q initscripts 
     62initscripts-7.93.33-1.el4 
     63# rpm -U --force $url/disc1/CentOS/RPMS/initscripts-7.93.33-1.centos4.i386.rpm 
     64# 
     65# rpm -e --nodeps redhat-release-4WS-8.0.el4_7.1 
     66# rpm -i $url/disc1/CentOS/RPMS/centos-release-4-7.i386.rpm 
     67# 
     68# rpm -e rpmdb-redhat-4-0.20080711 
     69# rpm -i $url/disc1/CentOS/RPMS/rpmdb-CentOS-4.7-0.20080805.i386.rpm 
     70# 
     71# rpm -i $url/disc1/CentOS/RPMS/sqlite-3.3.6-2.i386.rpm 
     72# rpm -i $url/disc1/CentOS/RPMS/python-elementtree-1.2.6-5.el4.centos.i386.rpm 
     73# rpm -i $url/disc1/CentOS/RPMS/python-sqlite-1.1.7-1.2.1.i386.rpm 
     74# rpm -i $url/disc1/CentOS/RPMS/python-urlgrabber-2.9.8-2.noarch.rpm 
     75# rpm -i $url/disc1/CentOS/RPMS/yum-2.4.3-4.el4.centos.noarch.rpm \ 
     76    $url/disc1/CentOS/RPMS/yum-metadata-parser-1.0-8.el4.centos.i386.rpm 
     77# 
     78# cat /etc/redhat-release 
     79CentOS release 4.7 (Final) 
     80# 
     81}}} 
     82 
     83=== RHEL 5 to CentOS 5 === 
     84 
     85{{{ 
     86# cat /etc/redhat-release 
     87Red Hat Enterprise Linux Server release 5.1 (Tikanga) 
     88# 
     89# url=http://mirror.centos.org/centos/5/os/i386/CentOS 
     90# 
     91# rpm -e rhel-instnum rhn-check rhn-client-tools rhnlib rhnsd rhn-setup yum-rhn-plugin 
     92# rpm -e yum-updatesd 
     93# 
     94# rpm -e redhat-release-notes-5Server-9 
     95# rpm -e --nodeps redhat-release-5Server-5.1.0.2 
     96# 
     97# rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 
     98# 
     99# rpm -i $url/centos-release-5-2.el5.centos.i386.rpm $url/centos-release-notes-5.2-2.i386.rpm 
     100# 
     101# rpm -F $url/initscripts-8.45.19.EL-1.el5.centos.1.i386.rpm 
     102# 
     103# rpm -i $url/python-iniparse-0.2.3-4.el5.noarch.rpm 
     104# rpm -F $url/yum-3.2.8-9.el5.centos.1.noarch.rpm $url/yum-metadata-parser-1.1.2-2.el5.i386.rpm 
     105# rpm -i $url/yum-fastestmirror-1.1.10-9.el5.centos.noarch.rpm 
     106# rpm -i $url/gamin-python-0.1.7-8.el5.i386.rpm 
     107# rpm -i $url/yum-updatesd-0.9-2.el5.noarch.rpm 
     108# 
     109# cat /etc/redhat-release 
     110CentOS release 5.3 (Final) 
     111# 
     112}}}