Migrate CentOS Linux 8 Server to CentOS Stream - CentLinux

Latest

Saturday, 23 January 2021

Migrate CentOS Linux 8 Server to CentOS Stream

Upgrade CentOS Linux 8 Server to CentOS Stream

CentOS Linux is being shifted to CentOS Stream operating system. This article will guide you to migrate your existing CentOS Linux 8 servers to CentOS Stream.

 

What is CentOS Stream?:

CentOS Linux 8, as a rebuild of RHEL 8, will end at the end of 2021. It is recently announced by Red Hat. CentOS Stream continues after that date, serving as the upstream (development) branch of Red Hat Enterprise Linux.

Additionally, support for CentOS Linux 8 has been cut short, from May 31, 2029 to December 31, 2021.

When CentOS Linux 8 (the rebuild of RHEL 8) ends, your best option will be to migrate to CentOS Stream 8, which is a small delta from CentOS Linux 8, and has regular updates like traditional CentOS Linux releases.

Although the CentOS Community is not quiet happy with the Red Hat decision. They have initiated a new project named Rocky Linux, that aims to function as a downstream build as CentOS had done previously, building releases after they have been added to the upstream vendor, not before. There is not currently an ETA for Rocky Linux release. Let's see if it meets the CentOS Linux user demands.

For now, the best option for CentOS Linux users is to shift to CentOS Stream before the end of year 2021.

In this article, we will show you how to upgrade your existing CentOS Linux 8 servers to CentOS Stream conveniently.

 

Recommended Book: Practical Guide to Linux Commands, Editors, and Shell Programming by Mark Sobell & Matthew Helmke

Recommended Training:1Z0-409 Oracle Linux Fundamentals Certified Practice Exam

 

Upgarding CentOS Linux Server to CentOS Stream:

Connect with you CentOS Linux server as root user by using a ssh client.

Check the version of your current Linux operating system.

# cat /etc/centos-release
CentOS Linux release 8.3.2011

We are currently using the CentOS 8.3, the output may vary on your Linux server.

Build cache for installed yum repositories.

# dnf makecache
CentOS Linux 8 - AppStream                                                                363 kB/s | 6.3 MB     00:17
CentOS Linux 8 - BaseOS                                                                   312 kB/s | 2.3 MB     00:07
CentOS Linux 8 - Extras                                                                   1.1 kB/s | 1.5 kB     00:01
Metadata cache created.

Install centos-release-stream package by using dnf command.

# dnf install -y centos-release-stream

Now, replace the yum repositories of CentOS Linux with the CentOS Stream by executing following command.

# dnf swap -y centos-{linux,stream}-repos

01-swap-centos-linux-to-stream-packages

02-swap-centos-linux-to-stream-packages-completed

Execute the following dnf command to upgrade and synchronize all software packages with CentOS Stream distro in your Linux server.

# dnf -y distro-sync

03-dnf-distro-sync-completed

Your CentOS Linux server has been upgraded to CentOS Stream.

Check the version of your Linux server now.

# cat /etc/centos-release
CentOS Stream release 8

You have successfully migrated your CentOS Linux 8 server to CentOS Stream along with installed software packages.

No comments:

Post a Comment