Step 1: Check System Compatibility
- Backup your data: Always back up your server before starting the upgrade process.
- 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
- Update all packages to the latest version:
bash
Copy code
sudo yum update -y
- 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.
- 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
- Install leapp and leapp-data:
bash
Copy code
sudo yum install -y leapp leapp-data-almalinux
Step 5: Download and Run Pre-Upgrade Check
- Run a pre-upgrade check to identify potential issues:
bash
Copy code
sudo leapp preupgrade
- 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
- Once all issues are resolved, run the upgrade:
bash
Copy code
sudo leapp upgrade
- Reboot the system to complete the upgrade:
bash
Copy code
sudo reboot
Step 7: Post-Upgrade Checks
- Verify the system version after reboot:
bash
Copy code
cat /etc/os-release
It should display AlmaLinux.
- Update all packages again to ensure the system is fully up-to-date:
bash
Copy code
sudo dnf update -y
- 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