Low Orbit Flux Logo 2 D

How do I migrate from CentOS to Rocky?

If you are worried about the future of CentOS you are probably already planning on moving to Rocky Linux ( the new CentOS ). You might not be looking forward to migrating your systems over to a new distro. As it turns out, things aren’t as bad as you might think. There is a script available to help you migrate directly to Rocky from CentOS without needing to re-install.

Download the migration script:

wget https://raw.githubusercontent.com/rocky-linux/rocky-tools/main/migrate2rocky/migrate2rocky.sh

Chmod the script to make it executable:

chmod a+x migrate2rocky.sh

Run the migration script:

sudo ./migrate2rocky.sh -r

Reboot the system:

sudo reboot now

Verify that you are now running Rocky Linux:

cat /etc/os-release