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 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.
Prerequisites
Before starting the upgrade process, ensure you meet the following prerequisites:
1. Backup Your Data: Always back up your important data and configuration files. This ensures you can restore your system in case something goes wrong during the upgrade.
2. Check Disk Space: Make sure you have enough free disk space for the upgrade process. You can check your disk space using the df -h
command.
3. Update Current System: Ensure your AlmaLinux 8 system is fully updated. You can update your system using the following commands:
[root@nayanatest~]# dnf update
[root@nayanatest~]# upgrade
Reboot your system to apply any pending updates:
How to Upgrade Almalinux 8 to Almalinux 9
Verify the successful update by checking the AlmaLinux release using the below command:
[root@nayanatest~]# vi /etc/os-release
[root@nayanatest~]# cat /etc/os-release
NAME="AlmaLinux"
VERSION="8.8 (Sapphire Caracal)"
ID="almalinux"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="AlmaLinux 8.8 (Sapphire Caracal)"
ANSI_COLOR="0;34"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:almalinux:almalinux:8::baseos"
HOME_URL="https://almalinux.org/"
DOCUMENTATION_URL="https://wiki.almalinux.org/"
BUG_REPORT_URL="https://bugs.almalinux.org/"
ALMALINUX_MANTISBT_PROJECT="AlmaLinux-8"
ALMALINUX_MANTISBT_PROJECT_VERSION="8.8"
REDHAT_SUPPORT_PRODUCT="AlmaLinux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.8"
1. Install Elevate : Install elevate-release package
[root@nayanatest~]# yum install -y http://repo.almalinux.org/elevate/elevate-release-latest-el$(rpm --eval %rhel).noarch.rpm
2. Install Leapp Packages: The leapp
packages are required for the upgrade process. Install them using the following command:
[root@nayanatest~]# dnf install -y leapp-upgrade leapp-data-almalinux
3. Pre-Upgrade Check: Run a pre-upgrade check to identify any potential issues that might prevent a successful upgrade:
[root@nayanatest~]# leapp preupgrade
Review the pre-upgrade report located at /var/log/leapp/leapp-report.json
. Address any issues identified in the report.
4. Start the Upgrade: Once you have resolved all issues from the pre-upgrade check, start the upgrade process:
[root@nayanatest~]# leapp upgrade
5. Reboot into the Upgrade Environment: After the upgrade command completes, reboot your system to start the upgrade process:
Post-Upgrade Steps
After the upgrade process is complete, follow these steps to ensure your system is functioning correctly:
- Verify AlmaLinux 9 Installation: Check the OS version to confirm the upgrade was successful.
[root@nayanatest~]# cat /etc/os-release
[root@nayanatest~]# cat /etc/os-release
NAME="AlmaLinux"
VERSION="9.2 (Turquoise Kodkod)"
ID="almalinux"
ID_LIKE="rhel centos fedora"
VERSION_ID="9.2"
PLATFORM_ID="platform:el9"
PRETTY_NAME="AlmaLinux 9.2 (Turquoise Kodkod)"
ANSI_COLOR="0;34"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:almalinux:almalinux:9::baseos"
HOME_URL="https://almalinux.org/"
DOCUMENTATION_URL="https://wiki.almalinux.org/"
BUG_REPORT_URL="https://bugs.almalinux.org/"
ALMALINUX_MANTISBT_PROJECT="AlmaLinux-9"
ALMALINUX_MANTISBT_PROJECT_VERSION="9.2"
REDHAT_SUPPORT_PRODUCT="AlmaLinux"
REDHAT_SUPPORT_PRODUCT_VERSION="9.2"
2. Update All Packages: Update all packages to ensure you have the latest versions:
[root@nayanatest~]# dnf update
3. Clean Up: Remove any obsolete packages and clean up the system:
[root@nayanatest~]# dnf autoremove
[root@nayanatest~]# dnf clean all
Conclusion
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.
Related Searches :-
How to upgrade Centos 8 to Almalinux.
How to Fix ‘Error: GPG check FAILED’ AlmaLinux.