{"id":3086,"date":"2024-05-25T05:08:49","date_gmt":"2024-05-25T05:08:49","guid":{"rendered":"https:\/\/bigboxhost.com\/blog\/?p=3086"},"modified":"2024-05-25T05:11:35","modified_gmt":"2024-05-25T05:11:35","slug":"upgrading-from-rockylinux-8-or-almalinux-8-to-almalinux-9","status":"publish","type":"post","link":"https:\/\/bigboxhost.com\/blog\/upgrading-from-rockylinux-8-or-almalinux-8-to-almalinux-9\/","title":{"rendered":"Upgrading from RockyLinux 8 or AlmaLinux 8 to AlmaLinux 9"},"content":{"rendered":"\n<p>As technology evolves, so do operating systems. Upgrading your system is crucial to ensure you benefit from the latest features, improved security, and better performance. In this article, we&#8217;ll explore the importance of upgrading from RockyLinux 8 or AlmaLinux 8 to AlmaLinux 9 and provide a step-by-step guide to help you through the process.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps to Upgrade from RockyLinux 8 or AlmaLinux 8 to AlmaLinux 9<\/h2>\n\n\n\n<p>Before we initiate the upgrade process, it is important to backup your data to ensure that you have a copy in case anything goes wrong during the upgrade. Once you have backed up your data, you can proceed with the upgrade process with peace of mind.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 1: Update your current system.<\/h4>\n\n\n\n<p>To successfully complete the upgrade, it is essential to have a fully updated system. Therefore, ensure that you install the latest updates and then restart your device.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo yum update -y\nsudo reboot<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Step 2: Install upgrade package.<\/h4>\n\n\n\n<p>In order to access the latest version, it is necessary to install the upgrade package. Install the &#8220;elevate-release&#8221; package using the project repository and GPG key.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo yum install -y http:\/\/repo.almalinux.org\/elevate\/elevate-release-latest-el$(rpm --eval %rhel).noarch.rpm<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Step 3: Installing leapp package and migrating data.<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo yum install -y leapp-upgrade leapp-data-almalinux<\/code><\/pre>\n\n\n\n<p>The above code is used to migrate data from AlmaLinux 8 to AlmaLinux 9. If you are looking to migrate from RockyLinux 8 to Almalinux 9 then replace &#8220;<code>leapp-data-almalinux<\/code>&#8221; to &#8220;<code>leapp-data-rocky<\/code>&#8220;. So, the command will be, <code>sudo yum install -y leapp-upgrade leapp-data-rocky<\/code><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 4: Run Pre-Upgrade Checks.<\/h4>\n\n\n\n<p>Run preupgrade checks to ensure that  there are no compatibility issues or potential problems with the migration process. This step helps identify any system configurations or installed packages that might cause issues during the upgrade. Once the pre-upgrade checks have been completed successfully, you can proceed with confidence to the next step.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo leapp preupgrade<\/code><\/pre>\n\n\n\n<p>The Leapp utility generates a unique file, located at <em>\/var\/log\/leapp\/leapp-report.txt<\/em>, which provides insight into potential issues and offers suggested solutions. In certain configurations, Leapp generates <em>\/var\/log\/leapp\/answerfile<\/em> with true\/false questions. Leapp utility requires answers to all these questions in order to proceed with the upgrade.<\/p>\n\n\n\n<p><strong>Common issues during pre-upgarde check:<\/strong><\/p>\n\n\n\n<p>In certain cases, it generates the issue during pre-upgrade check due to permission of root login, security or due to some mods. You can review the <em>\/var\/log\/leapp\/leapp-report.txt<\/em>\u00a0file for details. The most common issues can be resolved by applying the following fixes.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo rmmod pata_acpi\necho PermitRootLogin yes | sudo tee -a \/etc\/ssh\/sshd_config\nsudo leapp answer --section remove_pam_pkcs11_module_check.confirm=True<\/code><\/pre>\n\n\n\n<p>Ensure that you enable root login if you are not using any other user login for your OS. It is often observed that server access is restricted after an upgrade because root access was not permitted to the system. Please run the command mentioned <code>echo PermitRootLogin yes | sudo tee -a \/etc\/ssh\/sshd_config<\/code> to enable root login to the system.<\/p>\n\n\n\n<p>Besides this, some of the most common fixes for RHEL8-based systems can be achieved by following commands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo sed -i \"s\/^AllowZoneDrifting=.*\/AllowZoneDrifting=no\/\" \/etc\/firewalld\/firewalld.conf\nsudo leapp answer --section check_vdo.no_vdo_devices=True<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Step 5: Run OS upgrade process<\/h4>\n\n\n\n<p>Make sure that all the preupgrade indicators are fixed, later you can proceed with the actual upgrade process.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo leapp upgrade<\/code><\/pre>\n\n\n\n<p>Once the upgrade process is completed successfully, you can reboot the system.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo reboot<\/code><\/pre>\n\n\n\n<p>Please allow some time for the system to reboot. This time the system may take a little longer to boot as it runs some update process during the first boot for completing the OS upgrade.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 6: Post operating system upgrade (Optional)<\/h4>\n\n\n\n<p>After reboot, you can login to the system and check how the migration process went. Verify that the current OS is the one you need. Check logs and packages left from previous OS versions; consider removing them or updating them manually.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cat \/etc\/redhat-release\ncat \/etc\/os-release\nrpm -qa | grep el7 # for 7 to 8 migration\nrpm -qa | grep el8 # for 8 to 9 migration\ncat \/var\/log\/leapp\/leapp-report.txt\ncat \/var\/log\/leapp\/leapp-upgrade.log<\/code><\/pre>\n\n\n\n<p>Using all the above mentioned steps you can successfully upgrade your operating system to AlmaLinux 9. If you want more help or assistance, do check out our <a href=\"https:\/\/www.bigboxhost.com\/managed-dedicated-server\/\" data-type=\"link\" data-id=\"https:\/\/www.bigboxhost.com\/managed-dedicated-server\/\">managed server solution<\/a>, where we manage the server for you considering 360 degree aspects of upgrade, monitoring and security of your server.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As technology evolves, so do operating systems. Upgrading your system is crucial to ensure you benefit from the latest features, improved security, and better performance. In this article, we&#8217;ll explore the importance of upgrading from RockyLinux 8 or AlmaLinux 8 to AlmaLinux 9 and provide a step-by-step guide to help you through the process. Steps [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3089,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"Upgrading from RockyLinux 8 or AlmaLinux 8 to AlmaLinux 9","_seopress_titles_desc":"Upgrading your system is crucial to ensure you benefit from the latest features, improved security, and better performance. Upgrade from RockyLinux 8 or AlmaLinux 8 to AlmaLinux 9.","_seopress_robots_index":"","_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[33],"tags":[88,92,93,94,58,89],"class_list":["post-3086","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-article","tag-almalinux","tag-operating-system","tag-os","tag-rockylinux","tag-server","tag-upgrade"],"_links":{"self":[{"href":"https:\/\/bigboxhost.com\/blog\/wp-json\/wp\/v2\/posts\/3086","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bigboxhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bigboxhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bigboxhost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bigboxhost.com\/blog\/wp-json\/wp\/v2\/comments?post=3086"}],"version-history":[{"count":3,"href":"https:\/\/bigboxhost.com\/blog\/wp-json\/wp\/v2\/posts\/3086\/revisions"}],"predecessor-version":[{"id":3090,"href":"https:\/\/bigboxhost.com\/blog\/wp-json\/wp\/v2\/posts\/3086\/revisions\/3090"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bigboxhost.com\/blog\/wp-json\/wp\/v2\/media\/3089"}],"wp:attachment":[{"href":"https:\/\/bigboxhost.com\/blog\/wp-json\/wp\/v2\/media?parent=3086"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bigboxhost.com\/blog\/wp-json\/wp\/v2\/categories?post=3086"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bigboxhost.com\/blog\/wp-json\/wp\/v2\/tags?post=3086"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}