CentOS 7 reaches the end of life on June 30th, 2024 marking the end of the CentOS Project after CentOS 8 was prematurely discontinued back on December 31st in favor of CentOS Stream.
Thankfully, you can migrate from CentOS 7 to AlmaLinux 8 or any major Enterprise 8.x RHEL distributions such as Oracle Linux 8, Rocky Linux 8, or CentOS Stream 8 using the Elevate Project.
Table of Contents
What is Elevate?
Elevate is a utility developed by AlmaLinux designed to facilitate the migration from CentOS 7 or any major versions of RHEL-based distros from 7.x to 8.x and from 8.x to 9.x. It provides the Leapp tool which initiates the actual upgrade process from one version to another.
The upgrade from CentOS 7 to any major RHEL-based distribution takes the following directions as illustrated in the diagram below.
If you are looking to switch from CentOS 7 to AlmaLinux 8, then you have come to the right place. In this guide, we will guide you on how to migrate from CentOS 7 to AlmaLinux 8 using the Elevate Project.
Preliminary Step
As is always recommended before migrating to any major release, it’s prudent to have a backup of your files in case something goes wrong during the upgrade. Therefore, take some time and take a backup copy of all the important files.
Step 1: Update CentOS 7 System
To get off the ground, log into your instance of CentOS 7 and upgrade the system to the latest version by running the following yum command.
$ sudo yum update
Once the update is complete, verify that CentOS 7 has been updated to the latest release as follows.
$ cat /etc/redhat-release OR $ cat /etc/os-release
You should get the following as the output confirming that CentOS 7 has been updated to the latest release.
CentOS Linux release 7.9.2009 (Core)
Step 2: Install Elevate Repository in CentOS 7
The next step is to enable the Elevate repository on your CentOS 7 system by running the following command:
$ sudo yum install -y http://repo.almalinux.org/elevate/elevate-release-latest-el7.noarch.rpm
To confirm that Elevate has successfully been installed, run the following rpm command.
$ rpm -qi elevate-release
You should get the following output providing intricate details about the elevate-release package including the version, release, architecture, install date and so much more.
Step 3: Install Leapp Utility in CentOS 7
The Elevate repository provides the Leapp utility which facilitates the actual migration of Red Hat Enterprise Linux 7.x distributions to any Enterprise Linux 8.x releases.
For example to migrate from CentOS 7 to AlmaLinux 8, install the following software packages.
$ sudo yum install -y leapp-upgrade leapp-data-almalinux
Step 4: Migrate CentOS 7 to AlmaLinux 8
Once the migration packages have successfully been installed, run the pre-flight upgrade checklist using the following command:
$ sudo leapp upgrade
The utility performs a series of checks to confirm if the system is ready for the switch to AlmaLinux 8. The CentOS 7 has some inherent issues that prevent the migration from taking as seen in the error report as shown below.
The pre-upgrade report is generated and saved in the /var/log/leapp/leapp-report.txt file. From here, you can view all the issues that prevent the migration to AlmaLinux.
In our case, we ran into a couple of issues. Firstly, our system had two kernels; something which hampers the migration to AlmaLinux 8. Your system must have only one kernel.
To check the number of installed kernels, run the command:
$ rpm -q kernel
If your system has multiple kernels, as is our case, delete all and remain with only one using the following command.
$ sudo package-cleanup --oldkernels --count=1
Once again, verify the number of kernels present in your system as follows.
$ rpm -q kernel
To fix the remaining issues, run the following commands, which allow remote root login using the SSH protocol.
$ sudo echo PermitRootLogin yes | sudo tee -a /etc/ssh/sshd_config
Next, run the following command to remove the pam_pkcs11 module in the PAM configuration
$ sudo leapp answer --section remove_pam_pkcs11_module_check.confirm=True
Finally, disable the pata_acpi module.
$ sudo rmmod pata_acpi
This time around, we only have one kernel remaining, which is great!
After fixing all the issues, proceed and perform the migration from CentOS 7 to AlmaLinux 8 by running the following command:
$ sudo leapp upgrade
This is a lengthy process and takes quite some time. Upon successful execution of the command, a report will be generated, and this time around, all indication is that everything went according to plan.
Next, reboot your system.
$ reboot
On the GRUB menu, you will find the ‘Elevate-Upgrade‘ entry. Press ENTER.
The upgrade to AlmaLinux 8 will continue and the system will reboot a couple of times.
Finally, the login screen will come into view. Provide your password and click ‘Sign In’ or hit ENTER to log in.
On the terminal, verify the version of AlmaLinux using the command below.
$ cat /etc/redhat-release
Alternatively, run the command.
$ cat /etc/os-release
The output confirms that we have successfully switched or migrated from CentOS 7 to Almalinux 8.7.
Conclusion
In this guide, we have demonstrated how to migrate from CentOS 7 to AlmaLinux 8 using the Elevate project which is an application that helps simplify the switch from Enterprise 7.x systems to Enterprise 8.x.
The above is the detailed content of How to Migrate From CentOS 7 to AlmaLinux 8. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

When encountering DNS problems, first check the /etc/resolv.conf file to see if the correct nameserver is configured; secondly, you can manually add public DNS such as 8.8.8.8 for testing; then use nslookup and dig commands to verify whether DNS resolution is normal. If these tools are not installed, you can first install the dnsutils or bind-utils package; then check the systemd-resolved service status and configuration file /etc/systemd/resolved.conf, and set DNS and FallbackDNS as needed and restart the service; finally check the network interface status and firewall rules, confirm that port 53 is not

As a system administrator, you may find yourself (today or in the future) working in an environment where Windows and Linux coexist. It is no secret that some big companies prefer (or have to) run some of their production services in Windows boxes an

In Linux systems, 1. Use ipa or hostname-I command to view private IP; 2. Use curlifconfig.me or curlipinfo.io/ip to obtain public IP; 3. The desktop version can view private IP through system settings, and the browser can access specific websites to view public IP; 4. Common commands can be set as aliases for quick call. These methods are simple and practical, suitable for IP viewing needs in different scenarios.

Built on Chrome’s V8 engine, Node.JS is an open-source, event-driven JavaScript runtime environment crafted for building scalable applications and backend APIs. NodeJS is known for being lightweight and efficient due to its non-blocking I/O model and

Linuxcanrunonmodesthardwarewithspecificminimumrequirements.A1GHzprocessor(x86orx86_64)isneeded,withadual-coreCPUrecommended.RAMshouldbeatleast512MBforcommand-lineuseor2GBfordesktopenvironments.Diskspacerequiresaminimumof5–10GB,though25GBisbetterforad

Written in C, MySQL is an open-source, cross-platform, and one of the most widely used Relational Database Management Systems (RDMS). It’s an integral part of the LAMP stack and is a popular database management system in web hosting, data analytics,

Ubuntu has long stood as a bastion of accessibility, polish, and power in the Linux ecosystem. With the arrival of Ubuntu 25.04, codenamed “Plucky Puffin”, Canonical has once again demonstrated its commitment to delivering a

MongoDB is a high-performance, highly scalable document-oriented NoSQL database built to manage heavy traffic and vast amounts of data. Unlike traditional SQL databases that store data in rows and columns within tables, MongoDB structures data in a J
