Migrating from CentOS 8 to Rocky Linux or AlmaLinux

VDS / VPS Servers · 19.04.2026
Migrating from CentOS 8 to Rocky Linux or AlmaLinux

Migrate CentOS 8 → AlmaLinux 8

curl -O https://raw.githubusercontent.com/AlmaLinux/almalinux-deploy/master/almalinux-deploy.sh
sudo screen -S migration
sudo bash almalinux-deploy.sh
sudo reboot
cat /etc/almalinux-release

Migrate CentOS 8 → Rocky Linux 8

curl -O https://raw.githubusercontent.com/rocky-linux/rocky-tools/main/migrate2rocky/migrate2rocky.sh
chmod +x migrate2rocky.sh
sudo bash migrate2rocky.sh -r
sudo reboot
⚠️ CentOS 7 reached EOL in June 2024. Scripts exist but a major upgrade (7→8) carries high risk — consider deploying a fresh server instead.
← Back to Knowledge Base Ask Support