Elevate CentOS to Almalinux Step by Step Guaid

Step 1: Check System Compatibility

  1. Backup your data: Always back up your server before starting the upgrade process.
  2. Check current CentOS version: Run:

bash

Copy code

cat /etc/os-release

Make sure you’re running CentOS 7.x or CentOS 8.x.

Step 2: Update the System

  1. Update all packages to the latest version:

bash

Copy code

sudo yum update -y

  1. Reboot the server to apply updates:

bash

Copy code

sudo reboot

 

For Assistance 

Step 3: Install elevate-release Package

The elevate-release package is required for performing the upgrade.

  1. Enable the Elevate repository:

bash

Copy code

sudo yum install -y https://repo.almalinux.org/elevate/elevate-release-latest.el7.noarch.rpm

Step 4: Install leapp Utility

  1. Install leapp and leapp-data:

bash

Copy code

sudo yum install -y leapp leapp-data-almalinux

Step 5: Download and Run Pre-Upgrade Check

  1. Run a pre-upgrade check to identify potential issues:

bash

Copy code

sudo leapp preupgrade

  1. Review the report generated at /var/log/leapp/leapp-report.txt. Fix any issues mentioned in the report. For example:
    • Missing packages: Install or remove conflicting packages.
    • EPEL issues: Ensure EPEL repository is disabled during the upgrade.

For Assistance 

Step 6: Perform the Upgrade

  1. Once all issues are resolved, run the upgrade:

bash

Copy code

sudo leapp upgrade

  1. Reboot the system to complete the upgrade:

bash

Copy code

sudo reboot

Step 7: Post-Upgrade Checks

  1. Verify the system version after reboot:

bash

Copy code

cat /etc/os-release

It should display AlmaLinux.

  1. Update all packages again to ensure the system is fully up-to-date:

bash

Copy code

sudo dnf update -y

  1. Reinstall or reconfigure any custom services or configurations.

Troubleshooting

  • Issues with specific packages: Check /var/log/leapp for detailed logs.
  • Rollback: Ensure your backups are intact in case of any failure.

For Assistance 

 

Share