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
YUM CRON Enabling automatic updates in Centos 7 and RHEL 7
Viewed 12031 times since Fri, Oct 26, 2018
LVM basic
Viewed 2308 times since Sat, Jun 2, 2018
LVM: Reduce an existing Logical Volume / Filesystem
Viewed 3653 times since Sat, Jun 2, 2018
Use inotify-tools on CentOS 7 or RHEL 7 to watch files and directories for events
Viewed 14185 times since Fri, Jul 27, 2018
Manage Linux Password Expiration and Aging Using chage
Viewed 4749 times since Tue, Sep 11, 2018
systemd Auto-restart a crashed service in systemd
Viewed 3354 times since Fri, Jan 17, 2020
Red Hat 8 How to Set Up Automatic Updates for CentOS 8
Viewed 3894 times since Fri, Sep 25, 2020
How to find the largest files and directories in Linux?
Viewed 3421 times since Sun, May 20, 2018
Telnet – Send GET/HEAD HTTP Request
Viewed 3461 times since Mon, Feb 18, 2019
Check a Website Availability from the Linux Command Line
Viewed 6757 times since Mon, Feb 18, 2019