Skip to content

Instantly share code, notes, and snippets.

@dcode
Created August 10, 2014 18:53
Show Gist options
  • Save dcode/5642af68166ac8bb471a to your computer and use it in GitHub Desktop.
Save dcode/5642af68166ac8bb471a to your computer and use it in GitHub Desktop.
# Convert RHEL7 to CentOS7
# 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
@abhinav-maturi-by
Copy link

I am trying to use this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment