Skip to content

rConfig - CentOS 8 Stream

2 mins V7 Pro V6 Core

Red Hat develops the Red Hat Enterprise Linux(RHEL) source code in CentOS Stream before releasing the newer versions. It is considered to be upstream of the stable RHEL releases, so technically a development environment. How careful should you be before starting the update? Is it safe? To be honest, we can’t tell you “Oh do it, it’ll be just alright” in confidence. A lot of moving parts contribute to the stability of a system. You need to make that call

The idea is simple. To convert, you need to add Stream’s repos, and remove the existing ones.

Fortunately, you don’t have to do all that manually. There is a handy tool provided by the CentOS team for this purpose.

###Step 1: Install the repo files Install the package centos-release-stream. This contains all the repo files that are needed.

Terminal window
dnf --disablerepo '*' --enablerepo extras swap centos-linux-repos centos-stream-repos

###Step 2: Update the system Update the system or the packages to be specific, by running the distro-sync command. Note: I needed to add the --allowerasing flag to the command.

Terminal window
dnf distro-sync -y

###Step 3: Reboot and double-check the installed version Now, reboot your server:

Terminal window
Reboot

After the system is booted successfully, verify the migration by checking the CentOS version. You can do that by reading the os-release file:

Terminal window
[root@li2029-76 ~]# cat /etc/centos-release
CentOS Stream release 8

Or, read the centos-release file:

Terminal window
[root@li2029-76 ~]# cat /etc/os-release
NAME="CentOS Stream"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Stream 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"

⚠️ rConfig provides limited support for Operating Systems. Where the issue directly impacts rConfig operations, we help and get involved with the issue. The choice of OS, patching, security etc.. is your responsibility. The scripts and instructions provided by rConfig are for reference only.