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
how to list all hard disks in linux from command line
Viewed 3129 times since Mon, Jan 28, 2019
haproxy linux
Viewed 2284 times since Sun, Dec 6, 2020
OEL 7 – How to disable IPv6 on Oracle Linux 7 – Follow Up
Viewed 9266 times since Wed, Jul 25, 2018
Index » Community Contributions » System encryption using LUKS and GPG encrypted keys for arch linux
Viewed 2854 times since Fri, Jul 13, 2018
LVM: Reduce SWAP size by removing a Logical Volume
Viewed 1847 times since Sat, Jun 2, 2018
How To: Create Self-Signed Certificate – OpenSSL
Viewed 2777 times since Mon, Feb 18, 2019
10 Linux cryptsetup Examples for LUKS Key Management (How to Add, Remove, Change, Reset LUKS encryption Key)
Viewed 4921 times since Tue, Jul 31, 2018
Manage SSH Key File With Passphrase
Viewed 2102 times since Tue, Mar 5, 2019
How to run command or code in parallel in bash shell under Linux or Unix
Viewed 2965 times since Tue, Aug 6, 2019
Method 2 – Use shell scripts How to install yum cron on a CentOS/RHEL 6.x/7.x
Viewed 3946 times since Tue, Dec 4, 2018