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 RHEL8) 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.

 

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.

[root@centos-stream ~]# 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.

[root@centos-stream ~]# 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.

[root@centos-stream ~]# dnf install -y centos-release-stream Last metadata expiration check: 0:00:29 ago on Sat 23 Jan 2021 10:25:52 AM PKT. Dependencies resolved. ========================================================================================================================== Package Architecture Version Repository Size ========================================================================================================================== Installing: centos-release-stream x86_64 8.1-1.1911.0.7.el8 extras 11 k Transaction Summary ========================================================================================================================== Install 1 Package Total download size: 11 k Installed size: 6.6 k Downloading Packages: centos-release-stream-8.1-1.1911.0.7.el8.x86_64.rpm 9.9 kB/s | 11 kB 00:01 -------------------------------------------------------------------------------------------------------------------------- Total 7.1 kB/s | 11 kB 00:01 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : centos-release-stream-8.1-1.1911.0.7.el8.x86_64 1/1 Verifying : centos-release-stream-8.1-1.1911.0.7.el8.x86_64 1/1 Installed: centos-release-stream-8.1-1.1911.0.7.el8.x86_64 Complete!

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

[root@centos-stream ~]# dnf swap -y centos-{linux,stream}-repos Last metadata expiration check: 0:00:14 ago on Sat 23 Jan 2021 10:27:20 AM PKT. Dependencies resolved. ========================================================================================================================== Package Architecture Version Repository Size ========================================================================================================================== Installing: centos-stream-release noarch 8.4-1.el8 Stream-BaseOS 21 k replacing centos-linux-release.noarch 8.3-1.2011.el8 replacing centos-release-stream.x86_64 8.1-1.1911.0.7.el8 centos-stream-repos noarch 8-2.el8 Stream-BaseOS 19 k Removing: centos-linux-repos noarch 8-2.el8 @BaseOS 26 k Transaction Summary ========================================================================================================================== Install 2 Packages Remove 1 Package Total download size: 40 k Downloading Packages: (1/2): centos-stream-repos-8-2.el8.noarch.rpm 26 kB/s | 19 kB 00:00 (2/2): centos-stream-release-8.4-1.el8.noarch.rpm 26 kB/s | 21 kB 00:00 -------------------------------------------------------------------------------------------------------------------------- Total 26 kB/s | 40 kB 00:01 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Running scriptlet: centos-stream-repos-8-2.el8.noarch 1/1 Installing : centos-stream-repos-8-2.el8.noarch 1/5 Installing : centos-stream-release-8.4-1.el8.noarch 2/5 Obsoleting : centos-release-stream-8.1-1.1911.0.7.el8.x86_64 3/5 Obsoleting : centos-linux-release-8.3-1.2011.el8.noarch 4/5 Erasing : centos-linux-repos-8-2.el8.noarch 5/5 Running scriptlet: centos-linux-repos-8-2.el8.noarch 5/5 Verifying : centos-stream-release-8.4-1.el8.noarch 1/5 Verifying : centos-linux-release-8.3-1.2011.el8.noarch 2/5 Verifying : centos-release-stream-8.1-1.1911.0.7.el8.x86_64 3/5 Verifying : centos-stream-repos-8-2.el8.noarch 4/5 Verifying : centos-linux-repos-8-2.el8.noarch 5/5 Installed: centos-stream-release-8.4-1.el8.noarch centos-stream-repos-8-2.el8.noarch Removed: centos-linux-repos-8-2.el8.noarch Complete!

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

[root@centos-stream ~]# dnf -y distro-sync ... Upgraded: NetworkManager-1:1.30.0-0.5.el8.x86_64 NetworkManager-libnm-1:1.30.0-0.5.el8.x86_64 NetworkManager-team-1:1.30.0-0.5.el8.x86_64 NetworkManager-tui-1:1.30.0-0.5.el8.x86_64 authselect-1.2.2-1.el8.x86_64 authselect-libs-1.2.2-1.el8.x86_64 bash-4.4.19-14.el8.x86_64 bind-export-libs-32:9.11.26-1.el8.x86_64 brotli-1.0.6-3.el8.x86_64 cpio-2.12-9.el8.x86_64 crontabs-1.11-17.20190603git.el8.noarch curl-7.61.1-17.el8.x86_64 dbus-1:1.12.8-12.el8.x86_64 dbus-common-1:1.12.8-12.el8.noarch dbus-daemon-1:1.12.8-12.el8.x86_64 dbus-libs-1:1.12.8-12.el8.x86_64 dbus-tools-1:1.12.8-12.el8.x86_64 device-mapper-8:1.02.175-0.4.20201222gitb84a992.el8.x86_64 device-mapper-event-8:1.02.175-0.4.20201222gitb84a992.el8.x86_64 device-mapper-event-libs-8:1.02.175-0.4.20201222gitb84a992.el8.x86_64 device-mapper-libs-8:1.02.175-0.4.20201222gitb84a992.el8.x86_64 dhcp-client-12:4.3.6-44.0.1.el8.x86_64 dhcp-common-12:4.3.6-44.0.1.el8.noarch dhcp-libs-12:4.3.6-44.0.1.el8.x86_64 dmidecode-1:3.2-8.el8.x86_64 dnf-4.4.2-3.el8.noarch dnf-data-4.4.2-3.el8.noarch dnf-plugins-core-4.0.18-2.el8.noarch dracut-049-133.git20210112.el8.x86_64 dracut-config-rescue-049-133.git20210112.el8.x86_64 dracut-network-049-133.git20210112.el8.x86_64 dracut-squash-049-133.git20210112.el8.x86_64 elfutils-debuginfod-client-0.182-3.el8.x86_64 elfutils-default-yama-scope-0.182-3.el8.noarch elfutils-libelf-0.182-3.el8.x86_64 elfutils-libs-0.182-3.el8.x86_64 ethtool-2:5.8-5.el8.x86_64 filesystem-3.8-4.el8.x86_64 firewalld-0.8.2-3.el8.noarch firewalld-filesystem-0.8.2-3.el8.noarch freetype-2.9.1-5.el8.x86_64 gawk-4.2.1-2.el8.x86_64 glib2-2.56.4-9.el8.x86_64 glibc-2.28-145.el8.x86_64 glibc-common-2.28-145.el8.x86_64 glibc-langpack-en-2.28-145.el8.x86_64 gnutls-3.6.14-7.el8_3.x86_64 gpgme-1.13.1-7.el8.x86_64 grub2-common-1:2.02-93.el8.noarch grub2-pc-1:2.02-93.el8.x86_64 grub2-pc-modules-1:2.02-93.el8.noarch grub2-tools-1:2.02-93.el8.x86_64 grub2-tools-efi-1:2.02-93.el8.x86_64 grub2-tools-extra-1:2.02-93.el8.x86_64 grub2-tools-minimal-1:2.02-93.el8.x86_64 gzip-1.9-12.el8.x86_64 hdparm-9.54-3.el8.x86_64 hwdata-0.314-8.7.el8.noarch initscripts-10.00.12-1.el8.x86_64 iproute-5.9.0-1.el8.x86_64 iptables-1.8.4-16.el8.x86_64 iptables-ebtables-1.8.4-16.el8.x86_64 iptables-libs-1.8.4-16.el8.x86_64 iputils-20180629-6.el8.x86_64 irqbalance-2:1.4.0-5.el8.x86_64 iwl100-firmware-39.31.5.1-101.el8.1.noarch iwl1000-firmware-1:39.31.5.1-101.el8.1.noarch iwl105-firmware-18.168.6.1-101.el8.1.noarch iwl135-firmware-18.168.6.1-101.el8.1.noarch iwl2000-firmware-18.168.6.1-101.el8.1.noarch iwl2030-firmware-18.168.6.1-101.el8.1.noarch iwl3160-firmware-1:25.30.13.0-101.el8.1.noarch iwl3945-firmware-15.32.2.9-101.el8.1.noarch iwl4965-firmware-228.61.2.24-101.el8.1.noarch iwl5000-firmware-8.83.5.1_1-101.el8.1.noarch iwl5150-firmware-8.24.2.2-101.el8.1.noarch iwl6000-firmware-9.221.4.1-101.el8.1.noarch iwl6000g2a-firmware-18.168.6.1-101.el8.1.noarch iwl6050-firmware-41.28.5.1-101.el8.1.noarch iwl7260-firmware-1:25.30.13.0-101.el8.1.noarch json-c-0.13.1-0.3.el8.x86_64 kernel-tools-4.18.0-269.el8.x86_64 kernel-tools-libs-4.18.0-269.el8.x86_64 kexec-tools-2.0.20-42.el8.x86_64 kpartx-0.8.4-7.el8.x86_64 krb5-libs-1.18.2-8.el8.x86_64 libarchive-3.3.3-1.el8.x86_64 libblkid-2.32.1-26.el8.x86_64 libcurl-7.61.1-17.el8.x86_64 libdb-5.3.28-40.el8.x86_64 libdb-utils-5.3.28-40.el8.x86_64 libdnf-0.55.0-1.el8.x86_64 libdrm-2.4.103-1.el8.x86_64 libfdisk-2.32.1-26.el8.x86_64 libgcc-8.4.1-1.el8.x86_64 libgomp-8.4.1-1.el8.x86_64 libldb-2.2.0-1.el8.x86_64 libmount-2.32.1-26.el8.x86_64 libnfsidmap-1:2.3.3-40.el8.x86_64 libpwquality-1.4.4-1.el8.x86_64 librepo-1.12.0-3.el8.x86_64 libselinux-2.9-5.el8.x86_64 libselinux-utils-2.9-5.el8.x86_64 libsemanage-2.9-4.el8.x86_64 libsepol-2.9-2.el8.x86_64 libsmartcols-2.32.1-26.el8.x86_64 libsolv-0.7.16-1.el8.x86_64 libsss_autofs-2.4.0-5.el8.x86_64 libsss_certmap-2.4.0-5.el8.x86_64 libsss_idmap-2.4.0-5.el8.x86_64 libsss_nss_idmap-2.4.0-5.el8.x86_64 libsss_sudo-2.4.0-5.el8.x86_64 libstdc++-8.4.1-1.el8.x86_64 libuuid-2.32.1-26.el8.x86_64 libxml2-2.9.7-9.el8.x86_64 libxslt-1.1.32-6.el8.x86_64 linux-firmware-20201118-101.git7455a360.el8.noarch lshw-B.02.19.2-4.el8.x86_64 lsscsi-0.32-2.el8.x86_64 lvm2-8:2.03.11-0.4.20201222gitb84a992.el8.x86_64 lvm2-libs-8:2.03.11-0.4.20201222gitb84a992.el8.x86_64 microcode_ctl-4:20201112-1.el8.x86_64 open-vm-tools-11.2.0-2.el8.x86_64 openldap-2.4.46-16.el8.x86_64 openssl-1:1.1.1g-12.el8_3.x86_64 openssl-libs-1:1.1.1g-12.el8_3.x86_64 p11-kit-0.23.22-1.el8.x86_64 p11-kit-trust-0.23.22-1.el8.x86_64 pam-1.3.1-14.el8.x86_64 pciutils-3.7.0-1.el8.x86_64 pciutils-libs-3.7.0-1.el8.x86_64 platform-python-3.6.8-34.el8.x86_64 platform-python-pip-9.0.3-19.el8.noarch plymouth-0.9.4-8.20200615git1e36e30.el8.x86_64 plymouth-core-libs-0.9.4-8.20200615git1e36e30.el8.x86_64 plymouth-scripts-0.9.4-8.20200615git1e36e30.el8.x86_64 popt-1.18-1.el8.x86_64 procps-ng-3.3.15-5.el8.x86_64 python3-cryptography-3.2.1-3.el8.x86_64 python3-dnf-4.4.2-3.el8.noarch python3-dnf-plugins-core-4.0.18-2.el8.noarch python3-firewall-0.8.2-3.el8.noarch python3-gpg-1.13.1-7.el8.x86_64 python3-hawkey-0.55.0-1.el8.x86_64 python3-libdnf-0.55.0-1.el8.x86_64 python3-librepo-1.12.0-3.el8.x86_64 python3-libs-3.6.8-34.el8.x86_64 python3-libselinux-2.9-5.el8.x86_64 python3-libxml2-2.9.7-9.el8.x86_64 python3-linux-procfs-0.6.3-1.el8.noarch python3-perf-4.18.0-269.el8.x86_64 python3-pip-wheel-9.0.3-19.el8.noarch python3-ply-3.9-9.el8.noarch python3-pyOpenSSL-19.0.0-1.el8.noarch python3-syspurpose-1.28.9-1.el8.x86_64 python3-unbound-1.7.3-15.el8.x86_64 rsyslog-8.1911.0-7.el8.x86_64 selinux-policy-3.14.3-60.el8.noarch selinux-policy-targeted-3.14.3-60.el8.noarch shadow-utils-2:4.6-12.el8.x86_64 sqlite-3.26.0-13.el8.x86_64 sqlite-libs-3.26.0-13.el8.x86_64 sssd-client-2.4.0-5.el8.x86_64 sssd-common-2.4.0-5.el8.x86_64 sssd-kcm-2.4.0-5.el8.x86_64 sssd-nfs-idmap-2.4.0-5.el8.x86_64 systemd-239-43.el8.x86_64 systemd-libs-239-43.el8.x86_64 systemd-pam-239-43.el8.x86_64 systemd-udev-239-43.el8.x86_64 trousers-0.3.15-1.el8.x86_64 trousers-lib-0.3.15-1.el8.x86_64 tuned-2.15.0-1.el8.noarch tzdata-2020f-1.el8.noarch unbound-libs-1.7.3-15.el8.x86_64 util-linux-2.32.1-26.el8.x86_64 xfsprogs-5.0.0-8.el8.x86_64 yum-4.4.2-3.el8.noarch yum-utils-4.0.18-2.el8.noarch zlib-1.2.11-17.el8.x86_64 Installed: kernel-4.18.0-269.el8.x86_64 kernel-core-4.18.0-269.el8.x86_64 kernel-modules-4.18.0-269.el8.x86_64 lmdb-libs-0.9.24-1.el8.x86_64 Removed: kernel-4.18.0-193.19.1.el8_2.x86_64 kernel-core-4.18.0-193.19.1.el8_2.x86_64 kernel-modules-4.18.0-193.19.1.el8_2.x86_64 Complete!

Your CentOS Linux server has been upgraded to CentOS Stream.

Check the version of your Linux server now.

[root@centos-stream ~]# 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