HomeLinuxHow To Upgrade Almalinux 8 to Almalinux 9

How To Upgrade Almalinux 8 to Almalinux 9

How To Upgrade Almalinux 8 to Almalinux 9

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

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:

  1. Verify AlmaLinux 9 Installation: Check the OS version to confirm the upgrade was successful.
[root@nayanatest~]# cat /etc/os-release

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.

How to upgrade Centos 8 to Almalinux.
How to Fix ‘Error: GPG check FAILED’ AlmaLinux.

Scroll to Top