---
title: "How to Migrate CentOS Stream to AlmaLinux"
description: "Learn all of the ins-and-outs of migrating CentOS Stream to AlmaLinux in this in-depth tutorial by ATA Learning!"
canonical: "https://adamtheautomator.com/centos-stream-to-almalinux/"
---

# How to Migrate CentOS Stream to AlmaLinux

> Learn all of the ins-and-outs of migrating CentOS Stream to AlmaLinux in this in-depth tutorial by ATA Learning!

Source: https://adamtheautomator.com/centos-stream-to-almalinux/

---

ATA Learning

Tap to hide

[

ATA Learning

](/)

*   [Home](/)
*   [Tutorials](/tutorials/)
*   [Instructors](/author/)
*   [Advertising](/advertising/)
*   [Recommended Resources](/resources/)
*   [About Adam](/about-adam/)

Search for:  

*   [](https://twitter.com/adbertram)
*   [](https://github.com/Adam-the-Automator)
*   [](https://www.linkedin.com/company/adam-the-automator-llc)
*   [](/feed/)

![How to Migrate CentOS Stream to AlmaLinux](https://adamtheautomator.com/wp-content/uploads/2022/10/How-to-Migrate-CentOS-Stream-to-AlmaLinux.jpg)

# How to Migrate CentOS Stream to AlmaLinux

[![](https://secure.gravatar.com/avatar/1bc5e1d52466fc3739f550c8d78be310684747bf1466a98d698320627ea243e2?s=192&d=mm&r=g)Michael Nguyen Tu](https://adamtheautomator.com/author/michael-nguyen-tu/)17 October 20224 min. read

Categories: [IT Ops](/category/it-ops/)

Tags:[Linux](/tag/linux/)

Table of Contents

*   [Prerequisites](#prerequisites)
*   [Migrating Centos Stream to AlmaLinux](#migrating-centos-stream-to-almalinux)
*   [Downloading the CentOS Stream to AlmaLinux Migration Script](#downloading-the-centos-stream-to-almalinux-migration-script)
*   [Executing the CentOS Stream to AlmaLinux Migration Script](#executing-the-centos-stream-to-almalinux-migration-script)
*   [Verifying the Successful CentOS Stream to AlmaLinux Migration](#verifying-the-successful-centos-stream-to-almalinux-migration)
*   [Conclusion](#conclusion)

The CentOS project has announced the [end of life](https://www.centos.org/centos-linux-eol/) for CentOS 8. There will be no more updates or security patches for Centos 8. If you tried CentOS Stream as a replacement, you might not feel confident about its stability since you can consider it a nightly build.

CentOS Stream might be excellent as a test bed but not entirely for production if you strive for a stable operating system. What’s the alternative? AlmaLinux is a good choice for those who want to stay with a Red Hat-compatible distribution.

AlmaLinux makes you feel at home since it’s almost identical to CentOS. This tutorial will teach you how to migrate your CentOS Stream to AlmaLinux.

## Prerequisites

This tutorial will be a hands-on demonstration. If you’d like to follow along, be sure you have a CentOS 8 Stream system ready to go. This tutorial uses an Azure VM with CentOS Stream 8.0, but the instructions will also work with CentOS 8.4 and 8.5.

Related:[A Guide to Finally Understanding Azure VM Pricing](https://adamtheautomator.com/azure-vm-pricing/)

Consider creating a backup of your current system so that you have a restore point if something goes wrong during the migration. The backup method differs depending on where you host your machine.

Most cloud providers offer backup or snapshot features. For example, you can c[reate a snapshot of a virtual hard disk](https://learn.microsoft.com/en-us/azure/virtual-machines/snapshot-copy-managed-disk?tabs=portal) in Azure or [Amazon EC2 backup and recovery with snapshots and AMIs](https://docs.aws.amazon.com/prescriptive-guidance/latest/backup-recovery/ec2-backup.html) in AWS.

## Migrating Centos Stream to AlmaLinux

You could manually migrate Centos Stream to AlmaLinux, which requires downgrading, removing keys and branding details, installing the new OS, and reconfiguring. The manual method is tedious and prone to human errors.

On the other hand, the deployment script method makes the migration more consistent and convenient. And in this section, you’ll learn the deployment script method.

### Downloading the CentOS Stream to AlmaLinux Migration Script

The AlmaLinux migration script is available for download from GitHub. To download the script, follow these steps:

1\. Open your preferred [SSH](https://adamtheautomator.com/ssh-into-azure-vm/) client and sign in to your CentOS machine.

Related:[SSH into Azure VM: Absolute Guide for Cloud-Hosted Servers](https://adamtheautomator.com/ssh-into-azure-vm/)

2\. Run the below command to download the deployment script from the [almalinux-deploy GitHub repository](https://github.com/philrandal/almalinux-deploy).

```bash
curl -O https://raw.githubusercontent.com/philrandal/almalinux-deploy/master/almalinux-deploy.sh
```

![Downloading the deployment script](https://adamtheautomator.com/wp-content/uploads/2022/10/image-173.png)

Downloading the deployment script

3\. Run the below command to verify the script you downloaded exists in the current directory.

```bash
ls -la almalinux-deploy.sh
```

![List the downloaded script](https://adamtheautomator.com/wp-content/uploads/2022/10/image-174.png)

List the downloaded script

### Executing the CentOS Stream to AlmaLinux Migration Script

Follow these steps when you’re ready to start the CentOS Stream to AlmaLinux migration.

1\. First, run the below command to check your Centos Stream version. Ensure that you’re current OS is Centos Stream 8. The migration script requires CentOS 8.4, 8.5, or CentOS Stream 8.

```bash
cat /etc/os-release
```

As you can see below, this computer runs CentOS Stream 8.

![Checking your CentOS Stream version](https://adamtheautomator.com/wp-content/uploads/2022/10/image-175.png)

Checking your CentOS Stream version

2\. Update the packages to ensure you have the latest version before migrating CentOS Stream to AlmaLinux.

```bash
sudo dnf update -y
```

3\. Reboot your system to apply the updates. SSH into the VM again after the reboot.

```bash
sudo reboot
```

![Reboot CentOS Stream after the update](https://adamtheautomator.com/wp-content/uploads/2022/10/image-176.png)

Reboot CentOS Stream after the update

4\. Next, run the chmod command below to make the migration script executable. By default, Linux treats all downloaded files as text files. Unless the file is executable, you cannot run it.

Related:[Manage Directory and File Permissions with Chmod Recursive](https://adamtheautomator.com/chmod-recursive/)

```bash
sudo chmod +x almalinux-deploy.sh
```

5\. Execute the script with the below command. The script starts the CentOS Stream to AlmaLinux migration and might take several minutes to complete.

```bash
sudo bash almalinux-deploy.sh
```

![Executing the CentOS Stream to AlmaLinux Migration Script](https://adamtheautomator.com/wp-content/uploads/2022/10/image-177.png)

Executing the CentOS Stream to AlmaLinux Migration Script

This script ran for approximately 20 minutes in this example. After migration, you will see an output similar to the one below. This output shows that the migration process was successful, and your computer is now running AlmaLinux 8 as its OS.

![CentOS Stream to AlmaLinux Migration completed](https://adamtheautomator.com/wp-content/uploads/2022/10/image-178.png)

CentOS Stream to AlmaLinux Migration completed

6\. Run the below command to synchronize the local cache with the remote repositories and clean up the cache. This step will ensure that you have the latest AlmaLinux packages installed on your system.

```bash
sudo dnf distro-sync -y && sudo dnf clean all
```

![Synchronizing the local cache with the remote repositories](https://adamtheautomator.com/wp-content/uploads/2022/10/image-179.png)

Synchronizing the local cache with the remote repositories

## Verifying the Successful CentOS Stream to AlmaLinux Migration

Now that the migration process is complete, you must confirm that everything is working as expected. Several steps will help ensure your system is indeed running on AlmaLinux.

1\. Run the below command to confirm the computer’s current OS release.

```bash
cat /etc/os-release
```

At the time of writing, AlmaLinux 8.6 is the latest release, and Sky Tiger is the code name.

![Displaying the Linux OS version](https://adamtheautomator.com/wp-content/uploads/2022/10/image-180.png)

Displaying the Linux OS version

2\. Run the below command to check the default loaded kernel. The output will show AlmaLinux as the default kernel, as shown below. This step is vital since your computer needs the AlmaLinux kernel to boot.

```bash
sudo grubby --info DEFAULT | grep AlmaLinux
```

As you can see below, this computer has the AlmaLinux (4.18.0-372.26.1.el8\_6.x86\_64) 8.6 (Sky Tiger) kernel loaded.

![Checking the default loaded kernel](https://adamtheautomator.com/wp-content/uploads/2022/10/image-181.png)

Checking the default loaded kernel

3\. Using a desktop environment, you can verify the migration by logging in to the system. This time, you will see an AlmaLinux logo on the login screen instead of the CentOS logo.

Provide your user credentials and click the Sign in button to log into your system. You should now see AlmaLinux running as shown.

![Sign in to AlmaLinux desktop environment](https://adamtheautomator.com/wp-content/uploads/2022/10/image-182.png)

Sign in to AlmaLinux desktop environment

And you should see the AlmaLinux desktop environment. AlmaLinux comes with the GNOME desktop environment by default.

![Logging in to the system](https://adamtheautomator.com/wp-content/uploads/2022/10/image-183.png)

Logging in to the system

## Conclusion

AlmaLinux is the community-driven fork of Centos Linux. The goal of AlmaLinux is to provide a rock-solid and stable platform that is supported for at least ten years. AlmaLinux also aims to provide timely security updates and regular bug fixes to keep users safe and productive.

This tutorial taught you how to migrate from Centos Stream to AlmaLinux using a deployment script. Once the migration is complete, AlmaLinux will run on your system, and you can start using it as your default Linux distribution.

You can now stop worrying about the CentOS end-of-life. With AlmaLinux, you can rest assured that your system will be in a supported state for a long time to come. So give AlmaLinux a try and see how stable and reliable it is. You won’t be disappointed!

Share this article

[Share on X](https://twitter.com/intent/tweet?url=https%3A%2F%2Fadamtheautomator.com%2Fcentos-stream-to-almalinux%2F&text=How%20to%20Migrate%20CentOS%20Stream%20to%20AlmaLinux)[Share on Facebook](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fadamtheautomator.com%2Fcentos-stream-to-almalinux%2F)[Share on LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fadamtheautomator.com%2Fcentos-stream-to-almalinux%2F)

## Related Posts

![](https://adamtheautomator.com/wp-content/uploads/2022/09/Practical-Linux-Unix-Tee-Commands-for-the-Linux-Admin.jpg)

### [Master Unix tee Commands for Real-World Linux Admin Tasks](/unix-tee/)

Simplify Linux output management and streamline your workflow with the “Unix tee” command. This tutorial guides you through its practical applications.

![](https://adamtheautomator.com/wp-content/uploads/2024/03/openldap-4.jpg)

### [How to Install and Configure an OpenLDAP Ubuntu Server](/openldap/)

Unlock the power of OpenLDAP on Ubuntu for centralized user authentication, seamless access control management, and enhanced directory services!

![](https://adamtheautomator.com/wp-content/uploads/2024/03/pipe-command-in-linux-1.jpg)

### [Unleashing the Power of the Pipe Command in Linux](/pipe-command-in-linux/)

Unlock the prowess of the pipe command in Linux to streamline tasks, boost productivity, and simplify complex operations effortlessly!

## Categories

*   [IT Ops](/category/it-ops/)
*   [Cloud](/category/cloud/)
*   [DevOps](/category/devops/)
*   [Home Ops](/category/home-ops/)
*   [Information Security](/category/infosec/)
*   [Software Development](/category/software-development/)

## Site

*   [Home](/)
*   [Tutorials](/tutorials/)
*   [Instructors](/author/)
*   [Advertising](/advertising/)
*   [Recommended Resources](/resources/)
*   [About Adam](/about-adam/)

Copyright 2026© ATA Learning | [Privacy Policy](/privacy/)
