Skip to content

Instantly share code, notes, and snippets.

@akilbekov
Last active June 4, 2020 08:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akilbekov/a37b9c7f1ea7fa22c6501cfc4d9fd3ad to your computer and use it in GitHub Desktop.
Save akilbekov/a37b9c7f1ea7fa22c6501cfc4d9fd3ad to your computer and use it in GitHub Desktop.
RHEL 7.7 to CentOS 7.7
URLBASE=http://vault.centos.org/7.7.1908/os/x86_64/Packages/
cd /tmp
mkdir TMP
cd TMP
wget $URLBASE/centos-indexhtml-7-9.el7.centos.noarch.rpm \
$URLBASE/centos-release-7-7.1908.0.el7.centos.x86_64.rpm \
$URLBASE/yum-3.4.3-163.el7.centos.noarch.rpm \
$URLBASE/yum-plugin-fastestmirror-1.1.31-52.el7.noarch.rpm
subscription-manager remove --all
yum remove rhnlib abrt-plugin-bugzilla redhat-release-notes\* subscription-manager\*
rpm -e --nodeps redhat-release redhat-release-server redhat-indexhtml
rm -rf /usr/share/redhat-release*
rm -rf /usr/share/doc/redhat-release*
rpm -Uvh --replacefiles *.rpm
yum clean all && rm -rf /var/cache/yum
yum makecache fast
yum upgrade
yum distro-sync
package-cleanup --orphans
cd .. && rm -rf TMP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment