How to Migrate from CentOS 8 to CentOS 8 Stream

CentOS 8 Stream is the official successor to CentOS 8, built by the CentOS team with newer packages available and it tracks just ahead of Red Hat Enterprise Linux (RHEL) development, positioned as a midstream between Fedora Linux and RHEL.

Checkout the CentOS Stream Project Here.

Try this wiki on our VPS. Starting at just $5/month with 24x7 In-house customer support.

Pre-requisites :

  • A system with CentOS 8 installed and running.

  • root access to the system.

Migration from CentOS 8 to CentOS 8 Stream

It's always a good idea to back up all your files before switching to CentOS 8 Stream, or any other operating system for that matter, so you're not caught off guard if something goes wrong.

For converting CentOS 8 to CentOS 8 Stream use the below commands:

sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-*

sed -i 's|#baseurl=|baseurl=|g' /etc/yum.repos.d/CentOS-Linux-*

dnf install centos-release-stream

dnf swap centos-{linux,stream}-repos

dnf distro-sync

The script starts by recognizing all of the CentOS Linux 8 to CentOS 8 Stream repositories. It then replaces CentOS 8 Linux packages and repositories with their CentOS 8 Stream counterparts.

After completing the migration process, Continue with the below commands:

Check CentOS version

cat /etc/os-release



That's all there is to it. You can now enjoy the stability and other benefits of CentOS Stream 8 for free, just as you did with CentOS Linux System.

Now you have successfully migrated from CentOS 8 to CentOS 8 Stream.