How to Upgrade from RHEL 6 to RHEL 8

Red Hat Enterprise Linux 7 (RHEL 7) is the first major release that offers in-place upgrades from the earlier RHEL major release (RHEL 6) to a new major release of RHEL 7 operating system.

Warning: Make sure to back up your entire system to avoid any data loss and also before you perform an upgrade on the live system, you should clone the system and do the upgrade procedure on the clone. This will allow you to prepare for an upgrade without risking the production system.

This article describes instructions on how to upgrade from Red Hat Enterprise Linux 6.10 to Red Hat Enterprise Linux 8 using the redhat-upgrade-tool and Leapp utilities.

The upgrade process involves two-stages.

  • Upgrade your system from RHEL 6.10 to RHEL 7.6.
  • Upgrading from RHEL 7.6 to RHEL 8.

Upgrading from RHEL 6 to RHEL 7

The following RHEL 6 to RHEL 7 upgrade instruction is fully supported if your RHEL system using the latest RHEL 6.10 release. If not, update your system to have the latest RHEL 6.10 packages installed using the yum command as shown.

# yum update -y
# reboot
Update RHEL System
Update RHEL System

Next, you need to enable the Extras repository to subscribe your system to the repository containing the upgrade tools.

# subscription-manager repos --enable rhel-6-server-extras-rpms
# subscription-manager repos --enable rhel-6-server-optinal-rpms
Enable Red Hat Extras Repository
Enable Red Hat Extras Repository

Now you need to install Preupgrade Assistant tools that check your system for anything that might unfortunately affect the success of your upgrade.

# yum -y install preupgrade-assistant preupgrade-assistant-ui preupgrade-assistant-el6toel7 redhat-upgrade-tool
Install PreUpgrade Assistant
Install PreUpgrade Assistant

Once installed, you can run the Preupgrade Assistant to check the in-place upgrade possibility limitations of the system. A short summary of results is printed on the screen and detailed reports are saved to the /root/preupgrade directory as result.html by default.

# preupg -v

This takes a few minutes to complete.

Run PreUpgrade Assistant
Run PreUpgrade Assistant

Open results.html file in a browser and resolve the issues pointed by the Preupgrade Assistant during the assessment. Then re-run preupg command to scan the system again, and if there are no new problems found, proceed further as explained below.

Now download the latest RHEL 7.6 ISO image file from the RedHat Download Center using a Red Hat Subscription or a Red Hat Evaluation Subscription.

Once you’ve downloaded RHEL 7.6 ISO, run the following command to upgrade to RHEL 7.6 using the Red Hat upgrade tool and reboot after the upgrade process is completed. Make sure to specify the location of an ISO image in the below command.

# redhat-upgrade-tool --iso rhel-server-7.6-x86_64-dvd.iso --cleanup-post
# reboot
Upgrade RHEL 6 to RHEL 7
Upgrade RHEL 6 to RHEL 7
RHEL Upgrade Process
RHEL Upgrade Process

To finish the installation, you must reboot the system to start installing upgrades. The upgrade is a time-consuming process and it depends on your system’s configuration and amount of data it downloads.

RHEL Upgrade Boot Menu
RHEL Upgrade Boot Menu
Installing RHEL Updates
Installing RHEL Updates

If everything goes as well, the system will reboot to Red Hat Enterprise Linux 7, and you can begin checking that the system works properly.

Booting to RHEL 7.6
Booting to RHEL 7.6
Verify RHEL Upgrade
Verify RHEL Upgrade

Also, check that your system is properly registered to Red Hat subscription. To verify it, type:

# yum repolist
Check Red Hat Subscription Repositories
Check Red Hat Subscription Repositories

If no RHEL 7 repositories found, you need to resubscribe your RHEL 7 system to Red Hat subscription using the following commands.

# subscription-manager remove --all
# subscription-manager unregister
# subscription-manager register
# subscription-manager attach --auto

Finally, upgrade all your new RHEL 7 packages to their latest version.

# yum update -y
# reboot
Updating RHEL 7
Updating RHEL 7

Now you proceed further to perform an in-place upgrade from Red Hat Enterprise Linux 7.6 to Red Hat Enterprise Linux 8 using our following guide:

Two small things before you go

If something didn’t work on your setup, leave a comment and tell me which distro and version you’re on. I read every one, and most of these articles got better because a reader pointed out what was missing.

And if it did work, share it. TecMint has stayed free for 14 years because people pass these articles around, and that traffic is what pays for writing the next one.

Leave a comment
Get two free Linux courses

Learn the Linux basics with two free courses and join 34,000+ readers getting practical TecMint tutorials and selected Pro TecMint articles every week.

Pro TecMint
Get lifetime access for $99

If you want to go beyond the free tutorials, Pro gives you 18 courses, 5 ebooks, and every future course I add. One payment, lifetime access, no renewals.

Ravi Saive
Ravi Saive
Administrator
About the author

I'm Ravi Saive, an award-winning entrepreneur and founder of several successful 5-figure online businesses, including TecMint.com, GeeksMint.com, UbuntuMint.com, and the premium learning hub Pro.Tecmint.com.

1 Comment

Leave a Reply
  1. The subscription manager was not found on my Centos 6.

    I needed to run the command below before the subscription-manager repos.

    # wget -O /etc/yum.repos.d/epel-rhsm.repo http://repos.fedorapeople.org/repos/candlepin/subscription-manager/epel-subscription-manager.repo
    # yum install subscription-manager -y

    Reply

Got Something to Say? Join the Discussion...

Thank you for taking the time to share your thoughts with us. We appreciate your decision to leave a comment and value your contribution to the discussion. It's important to note that we moderate all comments in accordance with our comment policy to ensure a respectful and constructive conversation.

Rest assured that your email address will remain private and will not be published or shared with anyone. We prioritize the privacy and security of our users.