{"id":5746,"date":"2024-07-31T10:34:05","date_gmt":"2024-07-31T15:34:05","guid":{"rendered":"https:\/\/www.incredigeek.com\/home\/?p=5746"},"modified":"2024-08-01T15:05:03","modified_gmt":"2024-08-01T20:05:03","slug":"migrate-centos-7-to-almalinux-8","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/migrate-centos-7-to-almalinux-8\/","title":{"rendered":"Migrate CentOS 7 to AlmaLinux 8"},"content":{"rendered":"\n<p>The steps are taken from this page <a href=\"https:\/\/wiki.almalinux.org\/elevate\/ELevating-CentOS7-to-AlmaLinux-9.html\">https:\/\/wiki.almalinux.org\/elevate\/ELevating-CentOS7-to-AlmaLinux-9.html<\/a><\/p>\n\n\n\n<p><em>To upgrade to AlmaLinux 9, you will need to migrate to AlmaLinux 8 first.<\/em><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo curl -o \/etc\/yum.repos.d\/CentOS-Base.repo https:\/\/el7.repo.almalinux.org\/centos\/CentOS-Base.repo<br>sudo yum upgrade -y<\/pre>\n\n\n\n<p>Once yum finishes, reboot<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo reboot<\/pre>\n\n\n\n<p>Now install elevate-release and leapp packages<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo yum install -y http:\/\/repo.almalinux.org\/elevate\/elevate-release-latest-el$(rpm --eval %rhel).noarch.rpm<br>sudo yum install -y leapp-upgrade leapp-data-almalinux<\/pre>\n\n\n\n<p>Let&#8217;s run a pre upgrade check to see if there are any errors.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo leapp preupgrade<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>If everything checked out ok, proceed with the upgrade.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo leapp upgrade<\/pre>\n\n\n\n<p>Once finished, reboot.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo reboot<\/pre>\n\n\n\n<p>Once the system is booted, verify it upgraded.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cat \/etc\/*release<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Problems<\/h2>\n\n\n\n<p><a href=\"https:\/\/wiki.almalinux.org\/elevate\/ELevate-frequent-issues\">https:\/\/wiki.almalinux.org\/elevate\/ELevate-frequent-issues<\/a><\/p>\n\n\n\n<p><strong>LUKS<\/strong><\/p>\n\n\n\n<p>If you are using LUKS and encounter an error, check out the following link.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.it-hure.de\/2024\/02\/update-alma-rhel-with-leapp-and-luks\/\">https:\/\/www.it-hure.de\/2024\/02\/update-alma-rhel-with-leapp-and-luks\/<\/a><\/p>\n\n\n\n<p>You can disable the check with the following command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">rm -rf \/usr\/share\/leapp-repository\/repositories\/system_upgrade\/common\/actors\/inhibitwhenluks<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>More space needed on \/ filesystem<\/strong><\/p>\n\n\n\n<p>Try setting LEAPP_OVL_SIZE to 4096<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>export LEAPP_OVL_SIZE=4096<\/code><\/pre>\n\n\n\n<p>Then launch the upgrade with<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo --preserve-env leapp upgrade<\/code><\/pre>\n\n\n\n<p><a href=\"https:\/\/forums.almalinux.org\/t\/at-least-48mb-more-space-needed-on-the-filesystem-running-leapp-upgrade\/3808\/2\">https:\/\/forums.almalinux.org\/t\/at-least-48mb-more-space-needed-on-the-filesystem-running-leapp-upgrade\/3808\/2<\/a><\/p>\n\n\n\n<p>You can also try removing files to create more free space.<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/oamg\/leapp\/issues\/778\">https:\/\/github.com\/oamg\/leapp\/issues\/778<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Upgrading to 8.8 (Or 8.4)<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>For the same reason, we recommend upgrading your CentOS 7 machine to AlmaLinux OS version <strong>8.8<\/strong>. To do so, you need to navigate to the <em>\/etc\/leapp\/files\/<\/em> directory and edit the <strong>leapp_upgrade_repositories.repo<\/strong> to lower the AlmaLinux version in <code>baseurl\/mirror<\/code> to 8.8.<\/p>\n<\/blockquote>\n\n\n\n<p>The 8.8 repositories are archived.  To upgrade to AlmaLinux 8.8, change &#8216;\/etc\/leapp\/leapp_upgrade_repositories.repo&#8221; to the following.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[almalinux8-BaseOS]<br>name=AlmaLinux 8 - BaseOS<br>baseurl=https:\/\/vault.almalinux.org\/8.8\/BaseOS\/$basearch\/os\/<br>enabled=1<br>gpgcheck=1<br>gpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-AlmaLinux<br><br>[almalinux8-AppStream]<br>name=AlmaLinux 8 - AppStream<br>baseurl=https:\/\/vault.almalinux.org\/8.8\/AppStream\/$basearch\/os\/<br>enabled=1<br>gpgcheck=1<br>gpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-AlmaLinux<br><br>[almalinux8-PowerTools]<br>name=AlmaLinux 8 - PowerTools<br>baseurl=https:\/\/vault.almalinux.org\/8.8\/PowerTools\/$basearch\/os\/<br>enabled=1<br>gpgcheck=1<br>gpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-AlmaLinux<br><br>[almalinux8-HighAvailability]<br>name=AlmaLinux 8 - HighAvailability<br>baseurl=https:\/\/vault.almalinux.org\/8.8\/HighAvailability\/$basearch\/os\/<br>enabled=1<br>gpgcheck=1<br>gpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-AlmaLinux<br><br>[almalinux8-ResilientStorage]<br>name=AlmaLinux 8 - ResilientStorage<br>baseurl=https:\/\/vault.almalinux.org\/8.8\/ResilientStorage\/$basearch\/os\/<br>enabled=1<br>gpgcheck=1<br>gpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-AlmaLinux<br><br>[almalinux8-Extras]<br>name=AlmaLinux 8 - Extras<br>baseurl=https:\/\/vault.almalinux.org\/8.8\/extras\/$basearch\/os\/<br>enabled=1<br>gpgcheck=1<br>gpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-AlmaLinux<br><\/pre>\n\n\n\n<p>If you have issues, you may consider upgrading to 8.4 first.  To do that, change 8.8 to 8.4, and comment out the ResilientStorage section.<\/p>\n\n\n\n<p><strong>GPG Key failing after upgrade<\/strong><\/p>\n\n\n\n<p>Try importing the AlmaLinux 8 GPG key<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">rpm --import https:\/\/repo.almalinux.org\/almalinux\/RPM-GPG-KEY-AlmaLinux<\/pre>\n\n\n\n<p><a href=\"https:\/\/almalinux.org\/blog\/2023-12-20-almalinux-8-key-update\">https:\/\/almalinux.org\/blog\/2023-12-20-almalinux-8-key-update<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The steps are taken from this page https:\/\/wiki.almalinux.org\/elevate\/ELevating-CentOS7-to-AlmaLinux-9.html To upgrade to AlmaLinux 9, you will need to migrate to AlmaLinux 8 first. sudo curl -o \/etc\/yum.repos.d\/CentOS-Base.repo https:\/\/el7.repo.almalinux.org\/centos\/CentOS-Base.reposudo yum upgrade -y Once yum finishes, reboot sudo reboot Now install elevate-release and &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/migrate-centos-7-to-almalinux-8\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[1389,1655,17,208,1692,1693,363],"class_list":["post-5746","post","type-post","status-publish","format-standard","hentry","category-linux","tag-almalinux","tag-almalinux-8","tag-centos","tag-centos-7","tag-elevate","tag-leapp","tag-upgrade"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/5746","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=5746"}],"version-history":[{"count":12,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/5746\/revisions"}],"predecessor-version":[{"id":5854,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/5746\/revisions\/5854"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=5746"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=5746"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=5746"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}