Facebook Twitter Instagram
    Trending
    • Bash Scripting Introduction
    • How to change your hostname
    • Configuring a static IP on AlmaLinux
    • How to migrate from CentOS 8 to a supported distro
    • Hands on with Rocky Linux 8.3 RC
    • AlmaLinux is Here!
    • AlmaLinux launches in 1 week
    • How to transfer files with SCP command
    Facebook Twitter Instagram
    The Linux Lab
    • Home
    • AlmaLinux

      How to change your hostname

      April 11, 2022

      Configuring a static IP on AlmaLinux

      February 12, 2022

      AlmaLinux is Here!

      March 30, 2021

      AlmaLinux launches in 1 week

      March 24, 2021

      AlmaLinux Beta 1 is here!

      February 2, 2021
    • CentOS
    • Rocky Linux
    • Tutorials
    • About Us
    The Linux Lab
    You are at:Home»CentOS»How to migrate from CentOS 8 to a supported distro

    How to migrate from CentOS 8 to a supported distro

    0
    By Travis on December 17, 2021 CentOS
    Advertisement

    In case you missed it, CentOS 8 is reaching EOL (End of Life) on December 31, 2021. As of this publishing, that’s only two weeks away! So you’ve already deployed a few CentOS 8 before Red Hat made the announcement. Now what? Are you stuck with this OS with an early death? Good news! You’re not!

    Table of Contents

    • Migration, migration, where to go
    • AlmaLinux, or Rocky Linux
      • AlmaLinux
      • Rocky Linux
    • Migrate to AlmaLinux – Step by step
    • Migrate to Rocky Linux – Step by step

    Migration, migration, where to go

    Thankfully, the community jumped and created options in addition to CentOS’s (recommended, but not preferred) option of migrating to CentOS Stream.

    Advertisement

    What is the difference between CentOS and CentOS Stream and why would you want to avoid going to Stream? It depends on your use, but CentOS is well regarded as a very stable system designed for servers and critical workstations. Stream is more of a rapid release “test” version.

    Traditionally, CentOS was a downstream release of Red Hat Enterprise Linux, meaning CentOS was built from the Red Hat Enterprise Linux source code minus the Red Hat trademarks. Fedora is where everything starts out.

    Now, CentOS Stream sits between Fedora and Red Hat Enterprise Linux. While CentOS Stream is certainly “stable”, you can think of it like a beta of RHEL.

    For many people, this just isn’t an ideal scenario. Particularly, many web hosting companies use CentOS because it’s essentially Red Hat.

    Thankfully, we have options on migrating and different distros to choose from.

    AlmaLinux, or Rocky Linux

    While you can convert from CentOS 8 to CentOS Stream, chances are you want stability like you had with classic CentOS so we’re just going to take that option off the table. Instead, we’re going to look at AlmaLinux and Rocky Linux. Both are really great distros and I’ve talked about them when they were both in beta.

    Picking which one can be a bit challenging. After all, you have options! Let’s take a look at each of the projects.

    AlmaLinux

    • Started by Igor Seletskiy of CloudLinux (which is based on RHEL, provides extra security features and patches)
    • CloudLinux has committed $1 million per year of financial backing
    • Setup as a 501(c)6 non-profit and is community-owned
    • Full support from cPanel (so it’s great for web hosting companies)
    • Releases very fast

    Rocky Linux

    • Started by Gregory Kurtzer, original co-founder of CentOS
    • Setup as a Public Benefit Corporation (PBC) so full control is still retained by Gregory much like CentOS was
    • Releases are stable

    As you can see, both are 1:1 binary compatible with RHEL, it’s just that there’s some differences in the organizational structure.

    Migrate to AlmaLinux – Step by step

    First thing first, we want to make sure our OS is fully updated.

    sudo dnf update

    Now we want to reboot to make sure that all changes are applied, especially kernel changes.

    sudo reboot

    Once your system is back online, we need to get the AlmaLinux deploy script.

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

    Make the script executable.

    chmod +x  almalinux-deploy.sh

    And then it’s time to start the conversion process.

    sudo bash almalinux-deploy.sh

    What the script is doing is removing, installing, and even reinstalling some packages and repos to convert the system over to AlmaLinux. This process can take a while depending on the speed of your system. It can take anywhere from 10 minutes to several hours.

    When the migration is complete, you’ll get a success message. You can verify you’re now on AlmaLinux by running:

    cat /etc/redhat-release

    If it says AlmaLinux, you’re set! Now just reboot your system so you boot into the AlmaLinux kernel.

    sudo reboot

    You’ll now be in AlmaLinux!

    Migrate to Rocky Linux – Step by step

    First thing first, we want to make sure our OS is fully updated.

    sudo dnf update

    Now we want to reboot to make sure that all changes are applied, especially kernel changes.

    sudo reboot

    Once your system is back online, we need to get the migrate2rocky script.

    curl -O https://raw.githubusercontent.com/rocky-linux/rocky-tools/main/migrate2rocky/migrate2rocky.sh

    Make the script executable.

    chmod +x migrate2rocky.sh

    Start the migration process.

    sudo bash migrate2rocky.sh -r

    This script will change your repos, remove and reinstall packages for Rocky, and convert your system. This process can take anywhere from 10 minutes to several hours, depending on your hardware.

    Once the migration is complete, the script will tell you to reboot your system. Run the following commands:

    sudo dnf distro-sync -y
    sudo reboot

    When you log back in, run the following to verify:

    cat /etc/redhat-release

    It should say Rocky Linux.

    facebookShare on Facebook
    TwitterTweet
    FollowFollow us

    Advertisement
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleHands on with Rocky Linux 8.3 RC
    Next Article Configuring a static IP on AlmaLinux
    Travis

    I am a Cloud Engineer currently working in the financial and web hosting industry. My passion has been Linux since I first discovered it in 2005. Throughout my career, I have always implemented Linux wherever possible and am an advocate of using open source software over proprietary whenever possible. I strongly believe in the UNIX philosophy of "Do One Thing and Do It Well". I started The Linux Lab as a way for people to discover Linux (and UNIX in general, even macOS users) and to find solutions to problems and learn about Linux.

    Related Posts

    How to change your hostname

    Configuring a static IP on AlmaLinux

    Meet AlmaLinux

    Leave A Reply Cancel Reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Buy Me a Coffee

    Recent Posts
    • Bash Scripting Introduction
    • How to change your hostname
    • Configuring a static IP on AlmaLinux
    • How to migrate from CentOS 8 to a supported distro
    • Hands on with Rocky Linux 8.3 RC
    Recent Comments
    • Travis Newton on Zabbix 4.4 on CentOS 8 Installation
    • Gulman on Zabbix 4.4 on CentOS 8 Installation
    • Sam Andrews on SSH Clients – Which is best?
    • gila on Zabbix 4.4 on CentOS 8 Installation
    • Alex on Zabbix 4.4 on CentOS 8 Installation
    Categories
    • AlmaLinux
    • Bash Scripting
    • CentOS
    • Red Hat
    • Rocky Linux
    • Security
    • Software
    • SSH
    • Tutorials
    • Ubuntu
    • VPN
    • Zabbix
    Copyright © 2022. The Linux Lab.

    Type above and press Enter to search. Press Esc to cancel.

    This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Cookie settingsACCEPT
    Privacy & Cookies Policy

    Privacy Overview

    This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
    Necessary
    Always Enabled
    Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
    Non-necessary
    Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
    SAVE & ACCEPT