How to Migrate from RHEL 8 to CentOS 8

Live migration of a RedHat Enteprise Linux 8.0 to Centos 8.0

RHEL 8 to CentOS 8 migration guide.

If you tried a RHEL 8 Beta or you have a Developer’s License of RedHat Enterprise Linux 8 and you want / need to migrate to CentOS 8 for any reason (licensing, cost, hobby, fun) without loosing any data you can do it like this:

 

Importing CentOS 8 Keys

First of all you need to download, rename and import the CentOS 8 key or yum will fail like this:

Run this commands:

 

Change Repositories from Redhat’s to CentOS

Disable the subscription manager repo of Redhat:

 
Move redhat.repo somewhere else:
 

 

Create or Download CentOS repos:

You need:

CentOS-AppStream.repo CentOS-Base.repo CentOS-Extras.repo CentOS-PowerTools.repo inside /etc/yum.repos.d/

You can create them copying them from here:

 

 

 

 

Now you have no redhat repos and only CentOS 8 repos in your system. Clean yum:

And try an update:

 

It should reinstall every package from the CentOS 8 Repositories.

 

If it does not, try to create a rpmlist of all installed packages and xargs it to reinstall manually:

 

 

 

 

If you succeed you should see yum loading only CentOS Repos when issuing a yum install / reinstall like this:

 

 

You can also uninstall subscription manager now:

 

 

Don’t forger to grub2-mkconfig !

On RHEL the path is:

grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg

You need to use /centos/ like this:

 

 

0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
Using Kerberos security with Server for NFS
Viewed 11180 times since Wed, Jun 27, 2018
How to create a Systemd service in Linux
Viewed 3933 times since Mon, Dec 7, 2020
Testing TLS/SSL encryption
Viewed 14192 times since Thu, Jan 16, 2020
Stunnel Setup
Viewed 19082 times since Fri, Sep 28, 2018
Linux PAM configuration that allows or deny login via the sshd server
Viewed 2646 times since Wed, Oct 3, 2018
6 rsync Examples to Exclude Multiple Files and Directories using exclude-from
Viewed 6572 times since Wed, Oct 31, 2018
OEL 7 – How to disable IPv6 on Oracle Linux 7
Viewed 21967 times since Fri, Aug 3, 2018
OpenSSL: Check SSL Certificate Expiration Date and More
Viewed 8056 times since Mon, Feb 18, 2019
Linux get the list of FC HBA’s and WWPN
Viewed 4500 times since Tue, May 22, 2018
linux ssh How to Hide the OpenSSH Version Details when Telnet to Port 22
Viewed 7106 times since Wed, Apr 22, 2020