Converting from a Linux distribution to RHEL using the Convert2RHEL utility Red Hat Enterprise Linux 8 Instructions for a conversion from Alma Linux, CentOS Linux, Oracle Linux, or Rocky Linux to Red Hat Enterprise Linux 7, 8, and 9 using the Convert2RHEL utility Red Hat Customer Content Services

Commands:
sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* sed -i 's|#baseurl=http://mirror.centos.org|baseurl=https://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
curl -o /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release https://security.access.redhat.com/data/fd431d51.txt
curl -o /etc/yum.repos.d/convert2rhel.repo https://cdn-public.redhat.com/content/public/repofiles/convert2rhel-for-rhel-7-x86_64.repo
curl -o /etc/yum.repos.d/convert2rhel.repo https://cdn-public.redhat.com/content/public/repofiles/convert2rhel-for-rhel-8-x86_64.repo
curl -o /etc/yum.repos.d/convert2rhel.repo https://cdn-public.redhat.com/content/public/repofiles/convert2rhel-for-rhel-9-x86_64.repo
yum -y install convert2rhel
[subscription_manager] org = <organization_ID> activation_key = <activation_key>
convert2rhel analyze
========== Warning (Review and fix if needed) ========== (WARNING) PACKAGE_UPDATES::PACKAGE_NOT_UP_TO_DATE_MESSAGE - Outdated packages detected Description: Please refer to the diagnosis for further information Diagnosis: The system has 4 package(s) not updated based on the enabled system repositories. List of packages to update: openssh-server openssh openssh-clients. Not updating the packages may cause the conversion to fail. Consider updating the packages before proceeding with the conversion. Remediation: [No further information given]
convert2rhel
The tool allows rollback of any action until this point. By continuing, all further changes on the system will need to be reverted manually by the user, if necessary.
reboot
yum remove -y convert2rhel
rm -f /etc/convert2rhel.ini.rpmsave rm -f /etc/yum.repos.d/convert2rhel.repo
yum list extras --disablerepo="*" --enablerepo= <RHEL_RepoID>
curl -o /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release https://security.access.redhat.com/data/fd431d51.txt
curl -o /etc/yum.repos.d/client-tools.repo https://cdn-public.redhat.com/content/public/repofiles/client-tools-for-rhel-7-server.repo
yum -y install subscription-manager subscription-manager-rhsm-certificates rhc rhc-worker-script insights-client
rhc connect --activation-key <activation_key> --organization <organization_ID>
yum list extras --disablerepo=" " --enablerepo= <RHEL_RepoID> *
The tool allows rollback of any action until this point. By continuing all further changes on the system will need to be reverted manually by the user, if necessary.
yum check dependencies
rhc disconnect
sed -ie 's%error%trace%' /etc/rhc/config.toml
insights-client --register rhc connect -a <activation_key> -o <organization_ID>
journalctl -u rhcd less /var/log/insights-client/insights-client.log
systemctl stop rhcd
sed -ie 's%error%trace%' /etc/rhc/config.toml
systemctl start rhcd
journalctl -u rhcd
less /var/log/rhc-worker-script/rhc-worker-script.log
curl -o /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release https://security.access.redhat.com/data/fd431d51.txt
curl -o /etc/yum.repos.d/client-tools.repo https://cdn-public.redhat.com/content/public/repofiles/client-tools-for-rhel-7-server.repo
curl -o /etc/yum.repos.d/client-tools.repo https://cdn-public.redhat.com/content/public/repofiles/client-tools-for-rhel-8.repo
curl -o /etc/yum.repos.d/client-tools.repo https://ftp.redhat.com/redhat/client-tools/client-tools-for-rhel-9.repo
sed -i 's%\USDreleasever% <release_version> %' /etc/yum.repos.d/client-tools.repo
yum -y install subscription-manager subscription-manager-rhsm-certificates
subscription-manager register --org <organization_id> --activationkey <activation_key>
convert2rhel
yum install -y shim-x64
sosreport