It looks like you're new here. If you want to get involved, click one of these buttons!Sign In Register
It looks like you're new here. If you want to get involved, click one of these buttons!
In this tutorial, you will learn on how to upgrade your operating system from CentOS 7 to AlmaLinux OS manually.
As always, before making any changes to your VPS, you should make a backup of your VPS - save all the essential data. It will be a wise option if anything goes wrong.
sudo yum update -y
You might be disconnected from your VPS, so you will need to connect to your VPS again.
sudo yum install -y http://repo.almalinux.org/elevate/elevate-release-latest-el7.noarch.rpm
After the installation is completed, the output should look something like this:
sudo yum install -y leapp-upgrade leapp-data-almalinux
sudo leapp preupgrade
If due to some reason the test fails, all the reasons will be saved in a file that path is /var/log/leapp/answerfile.
sudo rmmod pata_acpi
echo PermitRootLogin yes | sudo tee -a /etc/ssh/sshd_config
sudo leapp answer --section remove_pam_pkcs11_module_check.confirm=True
sudo leapp upgrade
It might take up some time, so be patient.
Then reboot your VPS again:
It might take up to 20-30 minutes; meanwhile, the server will not be accessible via SSH. Do not worry, you can try to access your VPS via Emergency Console and watch how the files are installing.
When the installation is completed, you will be asked to log in. So then you can try to connect to your VPS as root.
Once you log in to your VPS, you can run this command to check your OS version:
If AlmaLiux was installed, you should see a similar output:
And that's it, you have upgraded your OS successfully to AlmaLinux!