This guide explains how to manually upgrade your operating system from CentOS 7 to AlmaLinux OS. Before you start, ensure you back up all important data from your VPS as a precautionary measure.
Steps:
Update System Packages:
- Run the following command to update your system packages and repositories:
sudo yum update -y
- Reboot your VPS:
sudo reboot
- Reconnect to your VPS once it restarts.
Install elevate-release Package:
Install Upgrade Packages:
Run Pre-Upgrade Check:
- Initiate a pre-upgrade check to assess the upgrade’s viability:
sudo leapp preupgrade
- If issues arise, details will be logged in
/var/log/leapp/answerfile
.
Prepare for Upgrade:
Perform the Upgrade:
- Run the upgrade command:
sudo leapp upgrade
- This process may take some time.
Reboot the VPS:
- Reboot your VPS again:
sudo reboot
- The server might be inaccessible via SSH for 20-30 minutes. During this time, you can monitor progress via the Emergency Console.
Verify the Upgrade:
- After the server restarts, log in and check the OS version:
cat /etc/redhat-release
- The output should confirm that AlmaLinux is installed.
Your upgrade to AlmaLinux OS is now complete!