CentOS 7 to Oracle Linux 8

CentOS 7 and Oracle Linux 8 are both popular Linux distributions that serve different purposes within the open-source community.

CentOS 7:

1. Origin and Community-driven:

  • CentOS (Community ENTerprise Operating System) is a free and open-source Linux distribution derived from the sources of Red Hat Enterprise Linux (RHEL).
  • CentOS 7, based on RHEL 7, was known for its stability, long-term support, and compatibility with RHEL packages.

Oracle Linux 8:

Origin and Enterprise Focus:

  • Oracle Linux is an open-source Linux distribution sponsored by Oracle Corporation. Oracle Linux 8 is based on the source code of RHEL 8, emphasizing enterprise features and performance.

Transition from CentOS 7 to Oracle Linux 8:

This guide explains how to combine a software upgrade and migration into a single process, taking you from CentOS 7 directly to Oracle Linux 8. It demonstrates using the open-source projects Leapp and Elevate to achieve this streamlined migration and upgrade in one go.

  • The first step is to get your existing CentOS 7 system updated to latest packages release available and then reboot. To do this, please execute following step:
#update YUM package
yum update -y

#reboot
init 6
  • Installing the “elevate” release RPM is necessary to access and utilize the Elevate utilities.
yum install -y http://repo.almalinux.org/elevate/elevate-release-latest-el$(rpm --eval %rhel).noarch.rpm
  • Install “leapp” packages and migration data for Oracle Linux, as the target to migrate to
yum install -y leapp-upgrade leapp-data-oraclelinux

Before upgrading, use the preupgrade check to assess your system’s readiness. This analysis will highlight potential conflicts without making any changes. The report files and debug log it creates offer valuable insights into your system’s configuration and possible upgrade challenges. To initiate this process, simply run the leapp preupgrade command.

leapp preupgrade

Edit /var/log/leapp/answerfile and uncomment Confirm and add TRUE as answer.

leapp upgrade

reboot

Post-Migration Steps:

  1. Verify Successful Migration:
    • Once the system reboots, log in and confirm that the operating system is now Oracle Linux 8.
  2. Review Leftover Packages:
    • Check for any remaining CentOS 7 packages that might not have been migrated automatically. You can then decide whether to remove them manually or update them to their Oracle Linux 8 equivalents.
  3. Examine Upgrade Logs:
    • Finally, review the upgrade logs to ensure the migration process completed successfully and identify any potential issues that require attention.

cat /etc/oracle-release
cat /etc/os-release

Thank you ..!