Migrating from CentOS 8 to AlmaLinux

In this video, the viewer is shown how to migrate an existing CentOS system to AlmaLinux.

YouTube player

Preparation

Install tmux

Installing tmux isn’t required, but recommended:

sudo dnf install tmux

You can enter tmux by executing tmux on the command-line:

tmux

Update your system

Make sure your current CentOS instance is up to date:

dnf update

Once that’s done, you’ll need to reboot your server:

sudo reboot

Let’s take a look at the os-release file, before we make any changes:

cat /etc/os-release

Reboot your system (if updates were installed):

sudo reboot

Let’s reactivate tmux:

tmux

Running the Migration Script

Downloading the script

Make sure you have curl installed:

which curl

If you don’t have that, install it with:

sudo dnf install curl

The following command will download the script:

curl -O https://raw.githubusercontent.com/AlmaLinux/almalinux-deploy/master/almalinux-deploy.sh

Run the script

Start the migration process by running the script that you’ve downloaded:

sudo bash almalinux-deploy.sh

Verify the migration

This process can take quite a while to run, so sit back and relax – possibly grab some coffee, and then check on it later. If you see the verbiage “Migration to AlmaLinux is completed, please reboot the system” then you should be good to go.

We can run the following command to make sure that AlmaLinux is the boot target:

sudo grubby --info DEFAULT | grep AlmaLinux

Reboot the system, and you will then your server will be running AlmaLinux from that point forward.

 sudo reboot

Check out the Shop!

Support Linux Learning and get yourself some cool Linux swag!


Support LearnLinuxTV and receive 5% off an LPI exam voucher!