Skip to content

CentOS.Cloud

A CentOS fansite

Menu
  • Home
  • About us
  • CentOS Project
  • CentOS Cloud Official
  • Contact
Menu

Migrate CentOS 8 to CentOS 8 Stream

Posted on April 30, 2022November 10, 2022 by Nishant Kaushal

Migrating CentOS 8 to CentOS 8 Stream is surprisingly as easy as maybe updating to the next version of CentOS itself!

First things first… Update the current system to the latest version of all the software packages. This ensures that firstly your yum repository cache itself is up to date and also updates the packages to the latest
sudo yum -y update

Now lets install dnf – DNF is the software package manager that installs, updates, and removes packages and is a successor to yum
sudo yum -y install dnf

Just to know that we are indeed on CentOS 8 before begining the migration, check the current version of CentOS
sudo cat /etc/centosos-release

Disable current CentOS 8 linux repository and replace them with their corresponding CentOS 8 Stream ones
sudo dnf --disablerepo '*' --enablerepo extras swap centos-linux-repos centos-stream-repos

sudo sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*

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

Its time to synchronize the latest distributions of all the software packages meant for CentOS 8 Stream
sudo dnf distro-sync

Finally, reboot the system
sudo reboot

Moment of truth. Once the server is back online after the reboot, check the OS version post the upgrade
sudo cat /etc/centos-release

That’s it!

  • Author
  • Recent Posts
Nishant Kaushal
Nishant Kaushal
Founder at Webstars Group
A Web Developer and Sys Admin at heart, with a hobby to follow any new technological developments around the world. Have been in the web hosting industry since 2003 and seen the industry evolve from the on-prem servers to VMs to Cloud and containers and the eventual movement of screen sizes move down from desktop to mobile apps for every task.
Nishant Kaushal
Latest posts by Nishant Kaushal (see all)
  • What is CentOS Hyperscale - January 13, 2023
  • CentOS 7 Extended Lifecycle Support - December 23, 2022
  • How to setup KDE on CentOS Stream - December 9, 2022

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Follow Us on Twitter

AlmaLinux (3) CentOS 8 (2) CentOS 9 Stream (3) CentOS automotive (2) CentOS automotive stream (2) CentOS ELS (1) CentOS stream (16) Fedora Linux (2) Migrate to CentOS Stream (2) Rocky Linux (3)

Sitemap

  • Home
  • About us
  • CentOS Project
  • CentOS Cloud Official
  • Contact

Network sites

  • Webstars Group
  • SmokyHosts Web Services
  • 0frills - Webhosting without confusion
  • PlayStore.Deals - All the latest from Playstore

Disclaimer

CentOS.Cloud is purely a fan site and is in no way officially or legally associated with CentOS or RedHat.