Difference between revisions of "Convert RH/OL To CentOS"

From The Linux Source
Jump to: navigation, search
(Created page with "= Converting RedHat/Oracle Systems to CentOS\n\nNotes: only tested on RedHat 6, currently adding RedHat 5 steps.\n'cat /etc/redhat-release' shows RedHat or Oracle before thes...")
(No difference)

Revision as of 12:59, 14 June 2017

= Converting RedHat/Oracle Systems to CentOS\n\nNotes: only tested on RedHat 6, currently adding RedHat 5 steps.\n'cat /etc/redhat-release' shows RedHat or Oracle before these steps\n\n1. browse to the centos repo to get the link for the latest centos-release package, right-click/copy link/url\n{panel}\n[1]\n[2]\n[3]\n{panel}\n\n2. wget the package/url (may need to specify a proxy) (or use 'curl --proxy sc9-proxy.example.net:3128 -O [4]')\n{panel}\nENT 5\n# wget [5] [6]\nENT 6\n# wget [7]\nENT 7\n# wget [8]\n{panel}\n\n3. install centos-release (plus release notes dependency for RedHat 5) and remove redhat-release\nNote: 'cat /etc/redhat-release' shows CentOS after this step\n{panel}\nRedHat 5\n# rpm -i --force centos-release-5-11.el5.centos.x86_64.rpm centos-release-notes-5.11-0.x86_64.rpm\n# rpm -e redhat-release-5Server redhat-release-notes-5Server\nRedHat 6\n# rpm -i --force centos-release-6-8.el6.centos.12.3.x86_64.rpm\n# rpm -e redhat-release-server\nRedHat 7\n# rpm -e --nodeps redhat-release-server\n# rm -rf /usr/share/redhat-release /usr/share/doc/redhat-release /etc/system-release-cpe.rpmsave /etc/os-release.rpmsave\n# rpm -i --force centos-release-7-2.1511.el7.centos.2.10.x86_64.rpm\n{panel}\n\n4. system can now be subscribed to CentOS spacewalk channel with --force option, or add CentOS-Base.repo to /etc/yum.repos.d/CentOS-Base.repo\n\n5. remove additional RedHat packages and replace with corresponding CentOS packages\n{panel}\nRedHat 5\n# yum update redhat-logos\n# rpm -e redhat-support-tool redhat-support-lib-python Deployment_Guide-en-US htmlview redhat-menus\n\nNOTE : order is important for RPM dependencies\n\nRedHat 6\n# rpm -e --nodeps redhat-indexhtml\n# yum install centos-indexhtml\n# yum update redhat-logos\n# rpm -e redhat-support-tool redhat-support-lib-python redhat-access-insights\nIF you see a yum message about lynx-2.x.x-xx.el6.x86_64 has missing requires of redhat-indexhtml\n# yum reinstall lynx\nRedHat 7\n# rpm -e --nodeps redhat-indexhtml redhat-logos\n# yum install centos-indexhtml centos-logos\n# yum update abrt\n# rpm -e redhat-support-tool redhat-support-lib-python redhat-access-insights