{"id":4722,"date":"2024-07-30T16:42:34","date_gmt":"2024-07-30T11:12:34","guid":{"rendered":"https:\/\/www.veeble.org\/kb\/?p=4722"},"modified":"2025-03-11T10:33:05","modified_gmt":"2025-03-11T05:03:05","slug":"how-to-upgrade-almalinux-8-to-almalinux-9","status":"publish","type":"post","link":"https:\/\/www.veeble.com\/kb\/how-to-upgrade-almalinux-8-to-almalinux-9\/","title":{"rendered":"How To Upgrade Almalinux 8 to Almalinux 9"},"content":{"rendered":"\n<figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/07\/Your-paragraph-text-1.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"508\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/07\/Your-paragraph-text-1-1024x508.jpg\" alt=\"How To Upgrade Almalinux 8 to Almalinux 9\" class=\"wp-image-4730\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/07\/Your-paragraph-text-1-1024x508.jpg 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/07\/Your-paragraph-text-1-300x149.jpg 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/07\/Your-paragraph-text-1-768x381.jpg 768w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/07\/Your-paragraph-text-1-1536x761.jpg 1536w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/07\/Your-paragraph-text-1.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p><a href=\"https:\/\/almalinux.org\/\" target=\"_blank\" rel=\"noopener\">AlmaLinux <\/a>is a free, open-source, and enterprise-grade Linux distribution designed to be binary-compatible with RHEL (Red Hat Enterprise Linux). Upgrading to the latest version helps keep your system secure and up-to-date with the latest technological advancements. Upgrade AlmaLinux system from version 8 to 9 ensures you benefit from the latest features, security updates, and performance improvements. This guide will walk you through the process of upgrading AlmaLinux 8 to AlmaLinux 9, covering prerequisites, the upgrade procedure, and post-upgrade steps.<\/p>\n\n\n\t\t\t\t<div class=\"wp-block-uagb-table-of-contents uagb-toc__align-left uagb-toc__columns-1  uagb-block-eeefddd0      \"\n\t\t\t\t\tdata-scroll= \"1\"\n\t\t\t\t\tdata-offset= \"30\"\n\t\t\t\t\tstyle=\"\"\n\t\t\t\t>\n\t\t\t\t<div class=\"uagb-toc__wrap\">\n\t\t\t\t\t\t<div class=\"uagb-toc__title\">\n\t\t\t\t\t\t\tTable Of Contents\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"uagb-toc__list-wrap \">\n\t\t\t\t\t\t<ol class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#prerequisites\" class=\"uagb-toc-link__trigger\">Prerequisites<\/a><li class=\"uagb-toc__list\"><a href=\"#how-to-upgrade-almalinux-8-to-almalinux-9\" class=\"uagb-toc-link__trigger\">How to Upgrade Almalinux 8 to Almalinux 9<\/a><li class=\"uagb-toc__list\"><a href=\"#post-upgrade-steps\" class=\"uagb-toc-link__trigger\">Post-Upgrade Steps<\/a><li class=\"uagb-toc__list\"><a href=\"#conclusion\" class=\"uagb-toc-link__trigger\">Conclusion<\/a><ul class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#take-control-with-cpanel\" class=\"uagb-toc-link__trigger\">Take Control with cPanel<\/a><\/ul><\/ol>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\n\n<h2 class=\"wp-block-heading\" id=\"prerequisites\">Prerequisites<\/h2>\n\n\n<p>Before starting the upgrade process, ensure you meet the following prerequisites:<br><br>1. <strong>Backup Your Data<\/strong>: Always back up your important data and configuration files. This ensures you can restore your system in case something goes wrong during the upgrade.<\/p>\n\n\n\n<p>2. <strong>Check Disk Space<\/strong>: Make sure you have enough free disk space for the upgrade process. You can check your disk space using the <code>df -h<\/code> command.<\/p>\n\n\n\n<p>3. <strong>Update Current System<\/strong>: Ensure your AlmaLinux 8 system is fully updated. You can update your system using the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@nayanatest~]# dnf update\n&#91;root@nayanatest~]# upgrade<\/code><\/pre>\n\n\n\n<p> Reboot your system to apply any pending updates:<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"how-to-upgrade-almalinux-8-to-almalinux-9\">How to Upgrade Almalinux 8 to Almalinux 9 <\/h2>\n\n\n<p>Verify the successful update by checking the AlmaLinux release using the below command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@nayanatest~]# vi \/etc\/os-release<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code has-ast-global-color-5-color has-black-background-color has-text-color has-background has-link-color has-small-font-size wp-elements-fbe908c4ee714adf152c65966f488c36\"><code>&#91;root@nayanatest~]# cat \/etc\/os-release\nNAME=\"AlmaLinux\"\nVERSION=\"8.8 (Sapphire Caracal)\"\nID=\"almalinux\"\nID_LIKE=\"rhel centos fedora\"\nVERSION_ID=\"8.8\"\nPLATFORM_ID=\"platform:el8\"\nPRETTY_NAME=\"AlmaLinux 8.8 (Sapphire Caracal)\"\nANSI_COLOR=\"0;34\"\nLOGO=\"fedora-logo-icon\"\nCPE_NAME=\"cpe:\/o:almalinux:almalinux:8::baseos\"\nHOME_URL=\"https:\/\/almalinux.org\/\"\nDOCUMENTATION_URL=\"https:\/\/wiki.almalinux.org\/\"\nBUG_REPORT_URL=\"https:\/\/bugs.almalinux.org\/\"\nALMALINUX_MANTISBT_PROJECT=\"AlmaLinux-8\"\nALMALINUX_MANTISBT_PROJECT_VERSION=\"8.8\"\nREDHAT_SUPPORT_PRODUCT=\"AlmaLinux\"\nREDHAT_SUPPORT_PRODUCT_VERSION=\"8.8\"<\/code><\/pre>\n\n\n\n<p>1. <strong>Install Elevate <\/strong>: Install elevate-release package&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@nayanatest~]# yum install -y http:\/\/repo.almalinux.org\/elevate\/elevate-release-latest-el$(rpm --eval %rhel).noarch.rpm<\/code><\/pre>\n\n\n\n<p>2. <strong>Install Leapp Packages<\/strong>: The <a href=\"https:\/\/docs.oracle.com\/en\/operating-systems\/oracle-linux\/8\/leapp\/leapp-AboutLeapp.html\" target=\"_blank\" rel=\"noopener\"><code>leapp<\/code> packages <\/a>are required for the upgrade process. Install them using the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@nayanatest~]# dnf install -y leapp-upgrade leapp-data-almalinux<\/code><\/pre>\n\n\n\n<p>3. <strong>Pre-Upgrade Check<\/strong>: Run a pre-upgrade check to identify any potential issues that might prevent a successful upgrade:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@nayanatest~]# leapp preupgrade<\/code><\/pre>\n\n\n\n<p>Review the pre-upgrade report located at <code>\/var\/log\/leapp\/leapp-report.json<\/code>. Address any issues identified in the report.<\/p>\n\n\n\n<p>4. <strong>Start the Upgrade<\/strong>: Once you have resolved all issues from the pre-upgrade check, start the upgrade process:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@nayanatest~]# leapp upgrade<\/code><\/pre>\n\n\n\n<p>5.  <strong>Reboot into the Upgrade Environment<\/strong>: After the upgrade command completes, reboot your system to start the upgrade process:<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"postupgrade-steps\">Post-Upgrade Steps<\/h2>\n\n\n<p>After the upgrade process is complete, follow these steps to ensure your system is functioning correctly:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Verify AlmaLinux 9 Installation<\/strong>: Check the OS version to confirm the upgrade was successful.<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@nayanatest~]# cat \/etc\/os-release<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code has-ast-global-color-5-color has-black-background-color has-text-color has-background has-link-color has-small-font-size wp-elements-20342bbd1d74b70c0e769018dc671605\"><code>&#91;root@nayanatest~]# cat \/etc\/os-release\nNAME=\"AlmaLinux\"\nVERSION=\"9.2 (Turquoise Kodkod)\"\nID=\"almalinux\"\nID_LIKE=\"rhel centos fedora\"\nVERSION_ID=\"9.2\"\nPLATFORM_ID=\"platform:el9\"\nPRETTY_NAME=\"AlmaLinux 9.2 (Turquoise Kodkod)\"\nANSI_COLOR=\"0;34\"\nLOGO=\"fedora-logo-icon\"\nCPE_NAME=\"cpe:\/o:almalinux:almalinux:9::baseos\"\nHOME_URL=\"https:\/\/almalinux.org\/\"\nDOCUMENTATION_URL=\"https:\/\/wiki.almalinux.org\/\"\nBUG_REPORT_URL=\"https:\/\/bugs.almalinux.org\/\"\n\nALMALINUX_MANTISBT_PROJECT=\"AlmaLinux-9\"\nALMALINUX_MANTISBT_PROJECT_VERSION=\"9.2\"\nREDHAT_SUPPORT_PRODUCT=\"AlmaLinux\"\nREDHAT_SUPPORT_PRODUCT_VERSION=\"9.2\"<\/code><\/pre>\n\n\n\n<p>2. <strong>Update All Packages<\/strong>: Update all packages to ensure you have the latest versions:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@nayanatest~]# dnf update<\/code><\/pre>\n\n\n\n<p>3. <strong>Clean Up<\/strong>: Remove any obsolete packages and clean up the system:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[root@nayanatest~]# dnf autoremove<br>[root@nayanatest~]# dnf clean all<\/pre>\n\n\n<h2 class=\"wp-block-heading\" id=\"conclusion\">Conclusion<\/h2>\n\n\n<p>Upgrading from AlmaLinux 8 to AlmaLinux 9 is a straightforward process with the right preparation and tools. By following this guide, you can ensure a smooth upgrade and take advantage of the latest features and improvements in AlmaLinux 9. Always remember to back up your data and carefully review the pre-upgrade report to address any potential issues before proceeding with the upgrade.<\/p>\n\n\n\n<div style=\"height:45px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-uagb-call-to-action uagb-block-d7c2b419 wp-block-button\"><div class=\"uagb-cta__wrap\"><h3 class=\"uagb-cta__title\">Take Control with cPanel<\/h3><p class=\"uagb-cta__desc\">Manage every aspect of your website with our intuitive cPanel. From email setup to file management, enjoy complete control. Experience reliable hosting with robust features.<\/p><\/div><div class=\"uagb-cta__buttons\"><a href=\"https:\/\/www.veeble.com\/in\/cpanel-hosting\/\" class=\"uagb-cta__button-link-wrapper wp-block-button__link\" target=\"_blank\" rel=\"noopener noreferrer\">Choose Your Plan<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\n\n\n<div style=\"height:45px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"has-ast-global-color-3-color has-text-color has-link-color wp-elements-40976f8cddc6ddbbb8cadc016cd86abe\"><strong>Related Searches&nbsp;<\/strong>:-<\/p>\n\n\n\n<p><a href=\"https:\/\/www.veeble.org\/kb\/how-to-migrate-centos-8-to-almalinux\/\" target=\"_blank\" rel=\"noopener\">How to upgrade Centos 8 to Almalinux.<\/a><br><a href=\"https:\/\/www.veeble.org\/kb\/fix-almalinux-gpg-key-error\/\" target=\"_blank\" rel=\"noopener\">How to Fix \u2018Error: GPG check FAILED\u2019 AlmaLinux<\/a>.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>AlmaLinux is a free, open-source, and enterprise-grade Linux distribution designed to be binary-compatible with RHEL (Red Hat Enterprise Linux). Upgrading to the latest version [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":4730,"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":[5,7],"tags":[],"class_list":["post-4722","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-migration"],"uagb_featured_image_src":{"full":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/07\/Your-paragraph-text-1.jpg",2048,1015,false],"thumbnail":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/07\/Your-paragraph-text-1-150x150.jpg",150,150,true],"medium":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/07\/Your-paragraph-text-1-300x149.jpg",300,149,true],"medium_large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/07\/Your-paragraph-text-1-768x381.jpg",768,381,true],"large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/07\/Your-paragraph-text-1-1024x508.jpg",1024,508,true],"1536x1536":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/07\/Your-paragraph-text-1-1536x761.jpg",1536,761,true],"2048x2048":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/07\/Your-paragraph-text-1.jpg",2048,1015,false]},"uagb_author_info":{"display_name":"Nayana Nair","author_link":"https:\/\/www.veeble.com\/kb\/author\/nayana\/"},"uagb_comment_info":0,"uagb_excerpt":"AlmaLinux is a free, open-source, and enterprise-grade Linux distribution designed to be binary-compatible with RHEL (Red Hat Enterprise Linux). Upgrading to the latest version [&hellip;]","_links":{"self":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/4722","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=4722"}],"version-history":[{"count":8,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/4722\/revisions"}],"predecessor-version":[{"id":7599,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/4722\/revisions\/7599"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media\/4730"}],"wp:attachment":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media?parent=4722"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/categories?post=4722"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/tags?post=4722"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}