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
Open SSL Encrypt & Decrypt Files With Password Using OpenSSL
Viewed 8663 times since Mon, Feb 18, 2019
HowTo: Kill TCP Connections in CLOSE_WAIT State
Viewed 16225 times since Thu, Feb 14, 2019
RHCS6: Quorum disk and heuristics
Viewed 4549 times since Sun, Jun 3, 2018
How To Run Multiple SSH Command On Remote Machine And Exit Safely
Viewed 4566 times since Tue, Aug 6, 2019
How To: Linux Hard Disk Encryption With LUKS [ cryptsetup Command ]
Viewed 7495 times since Fri, Jul 13, 2018
RHEL: Display swap/RAM size
Viewed 3489 times since Sat, Jun 2, 2018
Setting up encrypted tunnel using stunnel
Viewed 2700 times since Fri, Sep 28, 2018
RHEL7: Create and configure LUKS-encrypted partitions and logical volumes to prompt for password and mount a decrypted file system at boot.
Viewed 13096 times since Mon, Aug 6, 2018
Increase A VMware Disk Size (VMDK) Formatted As Linux LVM without rebooting
Viewed 15659 times since Wed, May 30, 2018
HowTo: Create CSR using OpenSSL Without Prompt (Non-Interactive)
Viewed 14325 times since Mon, Feb 18, 2019