Migrating from CentOS 8 to AlmaLinux

From LearnLinux.tv Wiki
Jump to navigation Jump to search


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

Relevant Links
Original Video
Github repository for the migration script
OSTechnix Howto


Install tmux

Installing tmux isn't required, but recommended:

 sudo dnf install tmux

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


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