{"id":2822,"date":"2024-02-26T16:27:13","date_gmt":"2024-02-26T10:57:13","guid":{"rendered":"https:\/\/www.veeble.org\/kb\/?p=2822"},"modified":"2025-03-19T10:27:24","modified_gmt":"2025-03-19T04:57:24","slug":"how-to-migrate-centos-8-to-almalinux","status":"publish","type":"post","link":"https:\/\/www.veeble.com\/kb\/how-to-migrate-centos-8-to-almalinux\/","title":{"rendered":"How to Migrate CentOS 8 to AlmaLinux"},"content":{"rendered":"\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/02\/Upgrade-to-AlmaLinux-1.jpeg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"537\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/02\/Upgrade-to-AlmaLinux-1-1024x537.jpeg\" alt=\"How to Migrate CentOS 8 to AlmaLinux\" class=\"wp-image-2829\" style=\"width:730px;height:auto\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/Upgrade-to-AlmaLinux-1-1024x537.jpeg 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/Upgrade-to-AlmaLinux-1-300x157.jpeg 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/Upgrade-to-AlmaLinux-1-768x402.jpeg 768w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/Upgrade-to-AlmaLinux-1.jpeg 1080w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>In response to the evolving landscape of Linux distributions, particularly the unexpected <a href=\"https:\/\/www.centos.org\/centos-linux-eol\/\" target=\"_blank\" rel=\"noopener\">End-of-Life (EOL) announcement for CentOS 8<\/a> and the shift towards CentOS Stream, many users and organizations find themselves seeking stable and reliable alternatives. This  article is a culmination of my journey and insights into migrating from CentOS 8 to AlmaLinux, intended to assist you in navigating this transition smoothly and ensuring the continued security and performance of their server environments.<\/p>\n\n\n\n<p> As a seasoned server administrator, I&#8217;ve navigated the evolving landscape of <a href=\"https:\/\/en.wikipedia.org\/wiki\/List_of_Linux_distributions\" target=\"_blank\" rel=\"noopener\">Linux distributions<\/a>, prioritizing stability and reliability for server environments. The announcement of CentOS 8&#8217;s premature <a href=\"https:\/\/en.wikipedia.org\/wiki\/End-of-life_product\" target=\"_blank\" rel=\"noopener\">End-of-Life (EOL)<\/a> and the shift towards CentOS Stream presented a significant challenge, particularly for those of us relying on CentOS for its predictability and compatibility with enterprise-grade applications like <a href=\"https:\/\/www.veeble.org\/in\/cpanel-hosting\/\" target=\"_blank\" rel=\"noopener\">cPanel<\/a>. This unexpected change prompted me to explore alternatives that could offer a seamless transition without sacrificing the operational integrity of servers.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"#Disadvantages-of-CentOS\">Disadvantages of CentOS<\/a><\/li>\n\n\n\n<li><a href=\"#Why-Migrate-to-AlmaLinux?\">Why Migrate to AlmaLinux?<\/a><\/li>\n\n\n\n<li><a href=\"#Preparing-for-Migration\">Preparing for Migration<\/a><\/li>\n\n\n\n<li><a href=\"#Migrating-from-CentOS-8-to-AlmaLinux\">Migrating from CentOS 8 to AlmaLinux<\/a><\/li>\n<\/ol>\n\n\n<h2 class=\"wp-block-heading\" id=\"Disadvantages-of-CentOS\">1. Disadvantages of CentOS<\/h2>\n\n\n<ol class=\"wp-block-list\">\n<li><strong>End-of-Life (EOL) of CentOS 8<\/strong>: CentOS 8 reached its EOL on December 31, 2021, much sooner than originally planned (2029). This premature EOL means no more updates or security patches, exposing users to vulnerabilities.<\/li>\n\n\n\n<li><strong>Shift to CentOS Stream<\/strong>: Red Hat announced CentOS Stream as the future of CentOS, which is a rolling-release distribution positioned between Fedora and RHEL. This shift away from a stable, point-release distribution concerns some users and organizations seeking a stable and predictable server environment.<\/li>\n\n\n\n<li><strong>Compatibility Issues with cPanel<\/strong>: cPanel, a popular web hosting control panel, announced limited support for CentOS 8 and recommended against using CentOS Stream. This poses a challenge for web hosting providers and users relying on cPanel for managing websites and servers.<\/li>\n\n\n\n<li><strong>Migration Challenges<\/strong>: The abrupt shift in CentOS&#8217;s development model and EOL timeline has forced many users to consider migration to alternative distributions, which can be time-consuming and complex.<\/li>\n<\/ol>\n\n\n\n<div class=\"wp-block-uagb-advanced-heading uagb-block-c56cf575\" id=\"Why-Migrate-to-AlmaLinux?\"><h2 class=\"uagb-heading-text\">2. Why Migrate to AlmaLinux?<\/h2><\/div>\n\n\n\n<p>AlmaLinux OS emerges as a strong alternative, offering a 1:1 binary compatibility with RHEL and thus providing a seamless transition from CentOS 8. It addresses the key disadvantages of CentOS 8 by providing:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Long-term support until at least 2029, ensuring ongoing security updates and patches.<\/li>\n\n\n\n<li>Stability and reliability akin to traditional CentOS, making it an ideal choice for production environments.<\/li>\n\n\n\n<li>Compatibility with cPanel, ensuring that web hosting services can continue without interruption.<\/li>\n<\/ul>\n\n\n<h2 class=\"wp-block-heading\" id=\"Preparing-for-Migration\">3. Preparing for Migration<\/h2>\n\n\n<p>Before migrating from CentOS 8 to AlmaLinux, take the following preparatory steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Backup Your Data:<\/strong> Ensure all important data, configurations, and databases are backed up.<\/li>\n\n\n\n<li><strong>Check Compatibility:<\/strong> Verify that your applications and services are compatible with AlmaLinux.<\/li>\n\n\n\n<li><strong>Update CentOS:<\/strong> Ensure your CentOS system is updated to the latest version to ensure a smooth migration.<\/li>\n<\/ol>\n\n\n<h2 class=\"wp-block-heading\" id=\"Migrating-from-CentOS-8-to-AlmaLinux\">4. Migrating from CentOS 8 to AlmaLinux<\/h2>\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Update CentOS 8<\/strong>: Ensure your CentOS 8 system is fully updated before starting the migration process.<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@elevate ~]# dnf update -y<\/code><\/pre>\n\n\n\n<p>    2. To begin the migration process from CentOS 8 to AlmaLinux, the first step is to obtain the official <a href=\"https:\/\/raw.githubusercontent.com\/AlmaLinux\/almalinux-deploy\/master\/almalinux-deploy.sh\" target=\"_blank\" rel=\"noopener\">AlmaLinux migration script<\/a>. This script automates the conversion process, ensuring a smooth and efficient transition. The script will replace CentOS-specific packages and repositories with those of AlmaLinux, maintaining system stability and compatibility.<\/p>\n\n\n\n<p>      Execute the following command to download the migration script:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@elevate ~]# curl -O https:\/\/raw.githubusercontent.com\/AlmaLinux\/almalinux-deploy\/master\/almalinux-deploy.sh<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-26-152722.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"82\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-26-152722-1024x82.png\" alt=\"\" class=\"wp-image-2825\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-26-152722-1024x82.png 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-26-152722-300x24.png 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-26-152722-768x62.png 768w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-26-152722.png 1371w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>   3. Execute the script to start the migration process. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@elevate ~]# bash almalinux-deploy.sh<\/code><\/pre>\n\n\n\n<p>The script will replace CentOS repositories with AlmaLinux&#8217;s, along with all packages necessary to complete the migration. If the migration is completed without any issues you can see  <code><strong>Migration to AlmaLinux is completed<\/strong><\/code>&nbsp;in the output.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-26-152641.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"347\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-26-152641-1024x347.png\" alt=\"\" class=\"wp-image-2826\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-26-152641-1024x347.png 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-26-152641-300x102.png 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-26-152641-768x260.png 768w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-26-152641.png 1131w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>   4. Reboot your system and check the distribution version to confirm the migration was successful.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@elevate ~]# cat \/etc\/os-release<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-26-154855.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"611\" height=\"441\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-26-154855.png\" alt=\"\" class=\"wp-image-2824\" style=\"width:468px;height:auto\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-26-154855.png 611w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-26-154855-300x217.png 300w\" sizes=\"auto, (max-width: 611px) 100vw, 611px\" \/><\/a><\/figure>\n\n\n\n<p>This KB article provides a comprehensive guide for users looking to migrate from CentOS 8 to AlmaLinux, addressing the critical disadvantages of continuing with an unsupported version of CentOS and offering a step-by-step migration process to ensure a smooth transition.<\/p>\n\n\n\n<div style=\"height:25px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-uagb-call-to-action uagb-block-b0ce823f wp-block-button\"><div class=\"uagb-cta__wrap\"><h3 class=\"uagb-cta__title\">Managed VPS: Power &amp; Control<\/h3><p class=\"uagb-cta__desc\">Get dedicated resources and expert management. Ideal for demanding websites.<\/p><\/div><div class=\"uagb-cta__buttons\"><a href=\"https:\/\/www.veeble.com\/in\/managed-vps\/\" class=\"uagb-cta__button-link-wrapper wp-block-button__link\" target=\"_blank\" rel=\"noopener noreferrer\">View Pricing<svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\"><path d=\"M504.3 273.6l-112.1 104c-6.992 6.484-17.18 8.218-25.94 4.406c-8.758-3.812-14.42-12.45-14.42-21.1L351.9 288H32C14.33 288 .0002 273.7 .0002 255.1S14.33 224 32 224h319.9l0-72c0-9.547 5.66-18.19 14.42-22c8.754-3.809 18.95-2.075 25.94 4.41l112.1 104C514.6 247.9 514.6 264.1 504.3 273.6z\"><\/path><\/svg><\/a><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In response to the evolving landscape of Linux distributions, particularly the unexpected End-of-Life (EOL) announcement for CentOS 8 and the shift towards CentOS Stream, [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":2829,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[7],"tags":[],"class_list":["post-2822","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-migration"],"uagb_featured_image_src":{"full":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/Upgrade-to-AlmaLinux-1.jpeg",1080,566,false],"thumbnail":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/Upgrade-to-AlmaLinux-1-150x150.jpeg",150,150,true],"medium":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/Upgrade-to-AlmaLinux-1-300x157.jpeg",300,157,true],"medium_large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/Upgrade-to-AlmaLinux-1-768x402.jpeg",768,402,true],"large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/Upgrade-to-AlmaLinux-1-1024x537.jpeg",1024,537,true],"1536x1536":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/Upgrade-to-AlmaLinux-1.jpeg",1080,566,false],"2048x2048":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/Upgrade-to-AlmaLinux-1.jpeg",1080,566,false]},"uagb_author_info":{"display_name":"Nayana Nair","author_link":"https:\/\/www.veeble.com\/kb\/author\/nayana\/"},"uagb_comment_info":0,"uagb_excerpt":"In response to the evolving landscape of Linux distributions, particularly the unexpected End-of-Life (EOL) announcement for CentOS 8 and the shift towards CentOS Stream, [&hellip;]","_links":{"self":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/2822","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/comments?post=2822"}],"version-history":[{"count":6,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/2822\/revisions"}],"predecessor-version":[{"id":8187,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/2822\/revisions\/8187"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media\/2829"}],"wp:attachment":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media?parent=2822"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/categories?post=2822"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/tags?post=2822"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}