Hello, friends. We recently published the news that Rocky Linux 8.4 was available with a fully stable ISO. We are very happy about it because it joins AlmaLinux as a guarantor that the legacy of CentOS will not die. So, now in this post, we will tell you how to migrate from CentOS 8 to Rocky Linux 8.4.
As we all know Rocky Linux is one of the most anticipated distributions of this year. The so-called, with permission of AlmaLinux OS, the replacement for CentOS, is finally approaching us with a fully stable and production-ready version.
Ideally, if you are starting a new project, you will have to download the ISO image and install it from scratch, but if you have a production server, this may not be ideal. So the migration process although easy can always be problematic.
So, let’s get started.
Migrate from CentOS 8 to Rocky Linux 8.4
The process is quite simple thanks to a script that the community has prepared. So it shouldn’t take that long.
First, you have to completely upgrade your system. This step is essential for the success of the process.
sudo dnf upgrade
Then, reboot the system to make sure all changes are applied including kernel-related changes.
sudo reboot
After the system reboots, we can now download the script.
curl -O https://raw.githubusercontent.com/rocky-linux/rocky-tools/main/migrate2rocky/migrate2rocky.sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 27069 100 27069 0 0 128k 0 --:--:-- --:--:-- --:--:-- 128k
Now give the script permissions to run
chmod +x migrate2rocky.sh
Now, we can run it locally with the command
sudo bash migrate2rocky.sh -r
This will start the whole migration process which may take some time depending on your computer resources and connection speed.
At the end, you will see a message like the following
And finish the process by rebooting the system
sudo systemctl reboot
When it starts, you can verify the migration by running
cat /etc/os-release
So, enjoy it.