Steps to Migrate from CentOS 8 to Almalinux 8

Migrate from CentOS 8 to Almalinux 8AlmaLinux OS is an open-source enterprise Linux distribution focused on long-term stability, community-governed and provides production-grade enterprise. Because of its dedicated community and binary compatibility with Red Hat Enterprise Linux, it is compatible with RHEL and CentOS pre-Stream. AlmaLinux aims to provide a stable, free, and enterprise-grade Linux distribution that closely aligns with the upstream distribution it is based on, namely Red Hat Enterprise Linux (RHEL). It is built from the same source code used by RHEL, that is it inherits the reliability, security, and compatibility of its upstream counterpart……………..

Migrate from CentOS 8 to AlmaLinux 8

Let us see the steps to migrate your CentOS 8 server to AlmaLinux 8 ( a 1:1 binary compatible with CentOS and RHEL).

Note: Before migrating, ensure to take a backup of vital data.

  1. First, check the CentOS version before updating.

cat /etc/redhat-release

  1. If your OS is older than 8.5, update the paths to the repositories as follows:

sed -i -r ‘s|^(mirrorlist.+)$|#\1|g; s|^#baseurl=\$contentdir/\$releasever/|baseurl=|g’ /etc/yum.repos.d/CentOS-*.repo

  1. Use the below command, to update the package to the latest version

sudo yum update -y

  1. Now, download the AlmaLinux migration script:

curl -O

  1. Next, set the script execution permissions

sudo chmod +x

  1. Run the downloaded AlmaLinux script:

sudo bash And this process takes some time. Once it is completed, you will get an output as: Complete! Run dnf distro-sync -y OK Restoring of alternatives is done OK Migration to AlmaLinux is completed

  1. To synchronizes installed packages, execute the following command

sudo dnf distro-sync -y and to reboot sudo reboot

  1. You can check the AlmaLinux latest version using the following command:

cat /etc/redhat-release AlmaLinux release 8.8 (Sapphire Caracal)

  1. Ensure the system loads the AlmaLinux Kernal by default:

sudo grubby –info DEFAULT | grep AlmaLinux title=”AlmaLinux (4.18.0-477.el8.x86_64) 8.8 (Sapphire Caracal)”

To get more updates you can follow us on Facebook, Twitter, LinkedIn

 Subscribe to get free blog content to your Inbox

Written by actsupp-r0cks