Linux

How To Upgrade To RHEL 8 From RHEL 7

Upgrade To RHEL 8 From RHEL 7

Insight: How To Upgrade To RHEL 8 From RHEL 7

If you are here and reading this post then we assume that you already have installed RHEL 7 and looking for upgrading your system. Meanwhile, let’s check out the basic requirements for upgrading to RHEL 8:

  • RHEL 7.6 installed
  • The Server variant
  • The Intel 64 architecture
  • At least 100MB of free space available on the boot partition
  • FIPS mode disabled
  • Minimum hardware requirements for RHEL 8.
  • The system registered to the Red Hat Content Delivery Network or Red Hat Satellite 6.x using the Red Hat Subscription Manager

I hope you have RHEL 7.6 installed in your system otherwise you need to upgrade your RHEL to RHEL 7.6. Run the following command to upgrade your system to RHEL 7.6 with the following command:

yum update

How To Upgrade To RHEL 8 From RHEL 7

You have to make sure that your RHEL 7 is successfully registered using the Red Hat Subscription Manager. And also make sure that your RHEL 7 has the Red Hat Enterprise Linux Server subscription attached. Otherwise, Run the following commands to automatically assign the subscription.

subscription-manager attach --auto
subscription-manager list --installed

In next step, you need to set the RHEL 7.6 as a beginning point for the upgrade. Run the following command to set the beginning point.

subscription-manager release --set 7.6

Run the following command to remove the lock by running the following command. This process is necessary if you have used yum-plugin-versionlock plug-in to lock packages.

yum versionlock clear

Now, Update all software packages to the latest version and reboot the system.

READ THIS ALSO  How To Install Ansible On Linux Distributions
yum update
reboot

After restarting the system, You need to enable the Extras repository for software package dependencies.

subscription-manager repos --enable rhel-7-server-extras-rpms

It’s time to install the Leapp utility.

yum install leapp

You also need to download additional data files required by the Leapp utility.

cd /etc/leapp/files/ 
wget https://access.redhat.com/sites/default/files/attachments/leapp-data3.tar.gz
tar -xf leapp-data3.tar.gz 
rm leapp-data3.tar.gz

Now, It’s time to upgrade your RHEL 7.6 to RHEL 8. Start upgrade process using the following command.

leapp upgrade

If your RHEL system is upgradeable , Leapp downloads required data and create an RPM transaction for the upgrade process. Leapp utility  creates a pre-upgrade report in the /var/log/leapp/leapp-report.txt file.

If your system is not upgradeable, Leapp closes the upgrade operation and creates a log explaining the issues in the /var/log/leapp/leapp-report.txt file.

Once upgrades finish, you need to manually reboot the system.

reboot

Post Installation:

Log in to the RHEL 8 system. Now you need to change the SELinux mode to enforcing.

setenforce 1

Run the following commands to enable the firewall.

systemctl start firewalld
systemctl enable firewalld

You can verify your RHEL 8 installation or upgrade with following command:

cat /etc/redhat-release