NOTE: UPDATED ON 30 Nov 2021 for Rocky Linux 8.5

Rocky Linux 8.5 is released today. I already added support and wrote down instructions about how to install PostgreSQL on Rocky Linux 8, and now it is time for a short blog post about migrating from CentOS 8 to Rocky Linux 8. Please note that if you are using CentOS 8 Stream, this blog post is not suitable for you.

These steps are experimental for now -- use the instructions at your own risk. It worked for me, though.

Make sure that your system is fully updated before running these commands.

Download these 5 packages from Rocky repos:

wget https://download.rockylinux.org/pub/rocky/8/BaseOS/x86_64/os/Packages/r/rocky-release-8.5-1.el8.noarch.rpm
wget https://download.rockylinux.org/pub/rocky/8/BaseOS/x86_64/os/Packages/r/rocky-repos-8.5-1.el8.noarch.rpm
wget https://download.rockylinux.org/pub/rocky/8/BaseOS/x86_64/os/Packages/r/rocky-gpg-keys-8.5-1.el8.noarch.rpm
wget https://download.rockylinux.org/pub/rocky/8/BaseOS/x86_64/os/Packages/r/rocky-logos-85.0-3.el8.x86_64.rpm
wget https://download.rockylinux.org/pub/rocky/8/BaseOS/x86_64/os/Packages/r/rocky-logos-httpd-85.0-3.el8.noarch.rpm


If you want to do a smoke test, run:

rpm -ivh rocky-* --test

Now, install Rocky Linux packages:

rpm -ivh rocky-* --force

Finally, remove CentOS packages:

rpm -e centos-linux-release centos-linux-repos centos-logos centos-logos-httpd centos-gpg-keys

Note: If a package listed above does not exist on your system, just remove that package name in the command, and run it again.

Now you can update your OS :



Finally you can reboot the OS. You'll see "Rocky Linux" in grub menu #WIN!

If you experience any issues about PostgreSQL and Rocky Linux, please report us.

No comments

The author does not allow comments to this entry