Logo
  • Ubuntu
  • CentOS
  • Debian
  • Fedora
  • RedHat

How to Migrate from CentOS 8 to AlmaLinux 8.4 - DesignLinux

Jun 07 2021
designlinux 0 Comments

In our earlier guide, we walked you through the installation of AlmaLinux 8.4. If you have CentOS 8 installed, an automated migration script is available to help you migrate seamlessly to the latest version of AlmaLinux 8.4 without uninstalling and performing a fresh installation.

In this guide, we will walk you through the migration of CentOS 8 to AlmaLinux 8.4 using an automated migration script that is available on Github.

A Word of Caution

Even though the migration in our case was smooth and successful, we highly encourage you to perform a backup of all your files in case something goes wrong. As the adage goes, better safe than sorry, and ideally you want to be on the safe side in case of any eventuality.

Prerequisites

Before getting started, ensure that you are running at least CentOS 8.3. If you are running any lower version, you will encounter an error when running the migration script.

Here’s a perfect example of what we initially encountered when trying to migrate using CentOS 8.0.

CentOS 8 Migrate to AlmaLinux
CentOS 8 Migrate to AlmaLinux

Moreover, be sure you have at least 5GB of free disk space on your hard drive to handle the upgrade process since it involves downloading & reinstalling files from the internet.

Finally, a fast and stable internet connection will certainly help in accelerating the migration to AlmaLinux.

Without much further ado, let’s roll our sleeves and get started with the migration.

Step 1: Download AlmaLinux Migration Script

To start off, launch your terminal and download the almalinux-deploy.sh script from the AlmaLinux Github page using the curl command as follows.

$ curl -O https://raw.githubusercontent.com/AlmaLinux/almalinux-deploy/master/almalinux-deploy.sh
Download AlmaLinux Migration Script
Download AlmaLinux Migration Script

Once downloaded, assign execute permissions to the migration script using the chmod command as follows.

$ chmod +x  almalinux-deploy.sh

Step 2: Migrate from CentOS 8 to AlmaLinux 8.4

Now run the almalinux-deploy.sh script as follows to start the migration to AlmaLinux.

$ sudo bash almalinux-deploy.sh
Run AlmaLinux Migration Script
Run AlmaLinux Migration Script

The script performs a couple of tasks. First, it runs a few system checks. It then goes ahead to uninstall, reinstall, and upgrade some packages to synchronize them with the latest release of AlmaLinux, which at this time is AlmaLinux 8.4.

This process takes quite a while – roughly 2 hours in our case – and it’s an ideal moment to do some grocery shopping or indulge in some video games.

Migrating CentOS 8 to AlmaLinux
Migrating CentOS 8 to AlmaLinux

When the migration is complete, you will get the notification that the migration was successful as indicated below.

Migration to AlmaLinux Completes
Migration to AlmaLinux Completes

Finally, reboot the system to load the latest AlmaLinux OS.

$ sudo reboot

For a moment, you will see a black screen with the AlmaLinux logo at the bottom as shown.

Booting AlmaLinux
Booting AlmaLinux

Then shortly after, the grub menu will appear with the AlmaLinux entry highlighted at the very top. Press ENTER and wait for the system to initialize.

AlmaLinux Grub Boot Menu
AlmaLinux Grub Boot Menu

Provide your password and click on ‘Sign In’ to log in to AlmaLinux.

AlmaLinux Login Screen
AlmaLinux Login Screen

This ushers you to the beautiful desktop background of AlmaLinux 8.4.

AlmaLinux Desktop
AlmaLinux Desktop

On command-line, you can verify the version of your system by running:

$ lsb-release -a
$ cat /etc/redhat-release
Check AlmaLinux Release Version
Check AlmaLinux Release Version
Conclusion

In this tutorial, we have taken you through the process of migrating from CentOS 8 to the latest version of AlmaLinux using an automated script. The script pulls new packages online, downgrades, upgrades, and reinstalls some packages to sync with the latest version of AlmaLinux. As you can see, it’s quite a simple process since the bulk of the work is managed by the installation script. Your feedback is very much welcome.

Related

Tags: AlmaLinux Tips, CentOS Tips

How to Install and Configure Fail2ban on Debian 10

Prev Post

How to Limit Network Bandwidth Usage in Linux Using Trickle

Next Post
Archives
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • July 2022
  • June 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
Categories
  • AlmaLinux
  • Android
  • Ansible
  • Apache
  • Arch Linux
  • AWS
  • Backups
  • Bash Shell
  • Bodhi Linux
  • CentOS
  • CentOS Stream
  • Chef
  • Cloud Software
  • CMS
  • Commandline Tools
  • Control Panels
  • CouchDB
  • Data Recovery Tools
  • Databases
  • Debian
  • Deepin Linux
  • Desktops
  • Development Tools
  • Docker
  • Download Managers
  • Drupal
  • Editors
  • Elementary OS
  • Encryption Tools
  • Fedora
  • Firewalls
  • FreeBSD
  • FTP
  • GIMP
  • Git
  • Hadoop
  • HAProxy
  • Java
  • Jenkins
  • Joomla
  • Kali Linux
  • KDE
  • Kubernetes
  • KVM
  • Laravel
  • Let's Encrypt
  • LFCA
  • Linux Certifications
  • Linux Commands
  • Linux Desktop
  • Linux Distros
  • Linux IDE
  • Linux Mint
  • Linux Talks
  • Lubuntu
  • LXC
  • Mail Server
  • Manjaro
  • MariaDB
  • MongoDB
  • Monitoring Tools
  • MySQL
  • Network
  • Networking Commands
  • NFS
  • Nginx
  • Nodejs
  • NTP
  • Open Source
  • OpenSUSE
  • Oracle Linux
  • Package Managers
  • Pentoo
  • PHP
  • Podman
  • Postfix Mail Server
  • PostgreSQL
  • Python
  • Questions
  • RedHat
  • Redis Server
  • Rocky Linux
  • Security
  • Shell Scripting
  • SQLite
  • SSH
  • Storage
  • Suse
  • Terminals
  • Text Editors
  • Top Tools
  • Torrent Clients
  • Tutorial
  • Ubuntu
  • Udemy Courses
  • Uncategorized
  • VirtualBox
  • Virtualization
  • VMware
  • VPN
  • VSCode Editor
  • Web Browsers
  • Web Design
  • Web Hosting
  • Web Servers
  • Webmin
  • Windows
  • Windows Subsystem
  • WordPress
  • Zabbix
  • Zentyal
  • Zorin OS
Visits
  • 0
  • 260
  • 614,632

DesignLinux.com © All rights reserved

Go to mobile version