The following steps will convert a RHEL7 Linux server to CentOS7.
yum -y remove rhnlib redhat-support-tool redhat-support-lib-python
rpm -e --nodeps redhat-release-server
rpm -e --nodeps redhat-logos
rpm -e --nodeps yum
rpm -e redhat-indexhtml-7-13.el7. noarch
rpm -qa | egrep -i "rhn|redhat"
rm -rf /usr/share/doc/redhat-release/ /usr/share/redhat-release/
mkdir tmp && cd tmp
curl -O http://mirror.centos.org/ centos/7/os/x86_64/Packages/ centos-release-7-9.2009.0.el7. centos.x86_64.rpm
curl -O http://mirror.centos.org/ centos/7/os/x86_64/Packages/ centos-logos-70.0.6-3.el7. centos.noarch.rpm
rpm --import RPM-GPG-KEY-CentOS-7
rpm -Uvh *.rpm
yum clean all
yum -y erase python-qpid-proton
yum -y upgrade
grub2-mkconfig -o /boot/grub2/grub.cfg
rm -rf /etc/yum.repos.d/redhat.repo
sync && init 6
That's it, after the restart your system is running CentOS7.
Comments
Post a Comment