Convert Centos Linux To RHEL Cheat Sheet Red Hat Developer
Convert Centos Linux To RHEL Cheat Sheet Red Hat Developer
Cheat sheet
Convert2RHEL simplifies the process by converting existing CentOS systems to RHEL, ensuring compatibility and a
seamless transition. Because CentOS Linux was derived from RHEL sources, users migrating to RHEL can continue
to use many of the same techniques and elements with minimal training, while also gaining more features, tools,
support, and value.
This cheat sheet outlines the steps to convert a CentOS Linux instance to RHEL using the Convert2RHEL tool.
1. Validate CentOS
Check whether you have a valid CentOS release version:
cat /etc/centos-release
Output:
sudo su -
yum update -y
Output:
curl -o /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
https://www.redhat.com/security/data/fd431d51.txt
Copy the SSL certificates from Red Hat Subscription Management, which will allow us to pull packages over a
secure channel:
curl -o /etc/yum.repos.d/convert2rhel.repo
https://ftp.redhat.com/redhat/convert2rhel/7/convert2rhel.repo
To verify Convert2RHEL for CentOS 7 is configured for usage run, enter the following:
Output:
repolist: 7
developers.redhat.com redhat-developer @rhdevelopers
5. Install convert2rhel
Install the convert2rhel utility:
Output:
Installed:
convert2rhel.noarch 0:1.1-1.el7
Dependency Installed:
efibootmgr.x86_64 0:17-2.el7 pexpect.noarch 0:2.3-11.el7
Complete!
6. Convert to RHEL
Find the organization_id by running this command:
subscription-manager orgs
Use the name of the organization_id in the next step. Begin the conversion by running the following command:
Output:
Backing up centos-indexhtml-7-9.el7.centos.noarch.
Successfully downloaded the centos-indexhtml-7-9.el7.centos.noarch package.
Backing up centos-logos-70.0.6-3.el7.centos.noarch.
Successfully downloaded the centos-logos-70.0.6-3.el7.centos.noarch package.
Backing up libreport-centos-2.1.11-53.el7.centos.x86_64.
Successfully downloaded the libreport-centos-2.1.11-53.el7.centos.x86_64
package.
developers.redhat.com redhat-developer @rhdevelopers
Backing up libreport-plugin-mantisbt-2.1.11-53.el7.centos.x86_64.
Successfully downloaded the
libreport-plugin-mantisbt-2.1.11-53.el7.centos.x86_64 package.
Removing package: centos-indexhtml-7-9.el7.centos.noarch
Removing package: centos-logos-70.0.6-3.el7.centos.noarch
Removing package: libreport-centos-2.1.11-53.el7.centos.x86_64
Removing package: libreport-plugin-mantisbt-2.1.11-53.el7.centos.x86_64
…
7. Reboot
After the conversion is complete, reboot the system:
reboot
cat /etc/redhat-release
Output: