Why need to migrate CentOS 8 / Stream 8 to Rocky Linux? Dear, after event Centos 8 EOL (end of life) 2022-01-31, RedHat destroyed Centos 8 (stable). Then instead the Centos Stream demo. This is extremely dangerous for your server system. Because automatic updates will be beta only. It may interrupt your service any time. Therefore, we will switch from Centos Linux to Rocky Linux (the Linux version that the Centos co-founder called for the community to build). This is a manifesto, as well as a fight to retain value for the open source operating system.

Here’s how to switch operating systems easily with a few commands:

Why we choose Rocky Linux?

  1. Rocky Linux is an open source operating system base on Centos 8 Linux. It is one of the strongest candidates for CentOS 8 today. It is a 100% binary compatible release using Red Hat Enterprise Linux (RHEL)
  2. Support DNF, YUM, RPM,… and all of Centos
  3. The Rocky Linux project is hosted by the Rocky Enterprise Software Foundation (RESF)
  4. Gregory Kurtzer, Founder of Rocky Linux, is a Co-Founder of CentOS. Rocky Linux is named after co-founder Rocky McGaugh, in memory of him

Migrating CentOS 8 / Stream release 8 to Rocky Linux (Green Obsidian)

STEP 1: Make sure your OS is Centos 8 or Centos Stream 8. Check your OS version:

cat /etc/centos-release

STEP 2: (Option Step) Mirgate Centos 8 Release to Centos Stream 8 if you want some lastest update from Centos Stream 8. If not need, skip this step:

dnf --disablerepo '*' --enablerepo=extras swap centos-linux-repos centos-stream-repos
dnf update -y

STEP 3: Install the Git client if your OS haven’t already:

dnf install git -y

STEP 4: Clone (download) Rocky Tools:

cd /tmp/
git clone https://github.com/rocky-linux/rocky-tools.git

STEP 5: Run bash script to migrate from CentOS 8 to Rocky Linux

cd /tmp/rocky-tools/migrate2rocky
chmod -v +x migrate2rocky.sh
./migrate2rocky.sh -r

Follow screen then press Enter.

STEP 6: Restart OS

sudo systemctl reboot

STEP 7: Check your OS version:

cat /etc/rockylinux-release
cat /etc/centos-release
hostnamectl

Enable Power Tools repository on Rocky Linux

sudo dnf upgrade --refresh -y
sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y
sudo dnf config-manager --enable epel
sudo dnf config-manager --set-enabled powertools
sudo dnf repolist | grep powertools
sudo dnf repolist disabled | grep -i power
sudo dnf config-manager --set-enabled powertools-debug
sudo dnf config-manager --set-enabled powertools-source
sudo dnf repolist | grep powertools

Leave a Reply

Your email address will not be published. Required fields are marked *