Created
August 10, 2014 18:53
-
-
Save dcode/5642af68166ac8bb471a to your computer and use it in GitHub Desktop.
# Convert RHEL7 to CentOS7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Convert RHEL7 to CentOS7 | |
mkdir TMP | |
yum remove rhnlib abrt-plugin-bugzilla redhat-release-notes* | |
rpm -e --nodeps redhat-release* redhat-indexhtml | |
rm -rf /usr/share/doc/redhat-release* | |
cd TMP | |
curl -O http://mirror.centos.org/centos/7/os/x86_64/Packages/centos-release-7-0.1406.el7.centos.2.3.x86_64.rpm -O http://mirror.centos.org/centos/7/os/x86_64/Packages/centos-indexhtml-7-9.el7.centos.noarch.rpm -O http://mirror.centos.org/centos/7/os/x86_64/Packages/yum-3.4.3-118.el7.centos.noarch.rpm -O http://mirror.centos.org/centos/7/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-24.el7.noarch.rpm | |
rpm -Uvh *.rpm | |
cd .. | |
rm -rf TMP | |
yum clean all | |
yum upgrade |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to use this.