Sideways Migration from RH to Centos

From Nuclear Physics Group Documentation Pages
Jump to navigationJump to search

Steps for a sideways migration from RH to Centos. Details will depend on the distributions. See https://www.pickysysadmin.ca/2014/07/15/how-to-convert-rhel-6-x-to-centos-6-x or https://www.pickysysadmin.ca/2014/04/27/how-to-convert-rhel-5-x-to-centos-5-x

Also note: https://wiki.centos.org/HowTos/MigrationGuide

cd /etc
cp  yum.conf  yum_rh5_dead.conf
rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/centos-release-notes-5.11-0.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/centos-release-5-11.el5.centos.x86_64.rpm 
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-3.2.22-40.el5.centos.noarch.rpm
rpm -Uhv http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-merge-conf-1.1.16-21.el5.centos.noarch.rpm
rpm -e --nodeps yum-updatesd-0.9-6.el5_10.noarch
rpm -Uhv http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-updatesd-0.9-6.el5_10.noarch.rpm
rpm -e --nodeps rhn-client-tools rhn-setup rhn-check rhnsd redhat-logos redhat-release-notes rhel-instnum
rpm -e --nodeps yum-rhn-plugin
rpm -e --allmatches myproxy-server-6.1.16-1.el5+gt6 myproxy-server-6.1.16-1.el5+gt6 myproxy-libs-6.1.16-1.el5+gt6 myproxy-admin-6.1.16-1.el5+gt6 myproxy-admin-6.1.16-1.el5+gt6 myproxy-6.1.16-1.el5+gt6 myproxy-libs-6.1.16-1.el5+gt6
yum upgrade