Migrate CentOS 7 to Almalinux 8

This guide will help you how to migrate CentOS 7 to Almalinux 8. As you can see, CentOS 7 reaching it's life and does not has any security upgrade anymore. Therefore migrate to Almalinux 8 is the answer.

Make sure you have update your CentOS 7 and then reboot.

sudo yum update -y
sudo reboot

Now let's install elevate-release packages.

yum install -y http://repo.almalinux.org/elevate/elevate-release-latest-el$(rpm --eval %rhel).noarch.rpm

Install leapp packages and migration data for Almalinux.

yum install -y leapp-upgrade leapp-data-almalinux

Let's proceed to run leapp pre-check first.

leapp preupgrade

In this case script will check and prepare whether it is possible to do an upgrade for your server. It will create a debug file called /var/log/leapp/leapp-report.txt .

rmmod pata_acpi
echo PermitRootLogin yes | sudo tee -a /etc/ssh/sshd_config
leapp answer --section remove_pam_pkcs11_module_check.confirm=True

You can review elevate frequent issue from the developer to check what's going on issue and some guidance how to solve them.

Now start an upgrade, then reboot server.

leapp upgrade
reboot

Once finished, review the OS see if already upgraded to Almalinux 8.

cat /etc/os-release

Congrats! Your CentOS 7 already elevated to Almalinux 8.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.