[CentOS-docs] HowTos/MigrationGuide adding RHEL-7 -> CentOS-7 migration.

Mon Feb 26 10:53:43 UTC 2018
Matěj Cepl <mcepl at cepl.eu>


could I get a permission to add to HowTos/MigrationGuide a guide for
conversion of RHEL 7 to CentOS 7? For personal reasons, I had to switch
my machines from RHEL to CentOS, and I think it would be helpful to have
it there. If it is OK to have migration guides for lower versions of
RHEL/CentOS, why not 7?

OK, here we go:

    mkdir TMP
    cd TMP
    wget $URLBASE/centos-indexhtml-7-9.el7.noarch.rpm \
        $URLBASE/centos-release-7-4.1708.el7.centos.x86_64.rpm \
        $URLBASE/yum-3.4.3-154.el7.centos.noarch.rpm \
    subscription-manager remove --all
    yum remove rhnlib abrt-plugin-bugzilla redhat-release-notes\* \
    rpm -e --nodeps redhat-release-workstation redhat-indexhtml
    for dir in /usr/share/redhat-release\;\* ; do rm -fv $dir ; done
    rmdir /usr/share/redhat-release
    rpm -Uvh *
    yum clean all && rm -rf /var/cache/yum
    yum upgrade
    yum upgrade
    yum distro-sync
    package-cleanup --orphans
    cd .. && rm -rf TMP

I am not sure, what’s the deal with /usr/share/redhat-release\*
files/symlinks, but they stood in a way, so I had to remove them.

Also, the redhat-releae\* package could be -workstation, -server,
-computernode, or -client.

Any comments?


https://matej.ceplovi.cz/blog/, Jabber: mcepl at ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8

"Push to test." (click) "Release to detonate..."
 -- from a bugzilla quip list

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.centos.org/pipermail/centos-docs/attachments/20180226/7d6c8721/attachment-0003.sig>