How to convert CentOS 8 to Rocky Linux

Step 1 #

Update your CentOS installation:

$ sudo dnf update -y
$ sudo dnf upgrade -y

Step 2 #

Reboot now your OS:

$ sudo reboot

Step 3 #

Download the migration script:

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

Step 4 #

Run the migration script:

$ chmod +x migrate2rocky.sh
$ sudo ./migrate2rocky.sh -r

Step 5 #

After migration, please reboot your OS:

$ sudo reboot