Linux

Upgrading CentOS 8 to CentOS Stream 8

You may have recently heard about a major change to CentOS. If not, then take a look at my post about it here.

If you are familiar and wish to migrate from CentOS 8 to CentOS stream 8, then this post goes through the steps.

Pre-migration steps

Fortunately, the procedure is incredibly easy but you will need to ensure compatibility of your existing apps and upgrade them to ensure support for them going forwared.

So, before we begin, ensure you have good backups and snapshots of your systems, ensuring a frustration-free roll-back should anything go wrong.

Install the release stream

The first command is

 sudo dnf install centos-release-stream 

Swap repos

To switch your repos from CentOS Linux to Stream, run the following

 sudo dnf swap centos-{linux,stream}-repos 

Sync distros

Finally, run the following to sync up the distros

 sudo dnf distro-sync 

 

Review and accept the output to continue

Confirm CentOS Stream 8

To check if you have successfully migrated to CentOS Stream 8, check the /etc/0s-release file.

 cat /etc/0s-release 

Test!

Now test your applications!

 

author avatar
Graham
Graham is a seasoned expert in VMware and Microsoft solutions, bringing deep expertise to his role at Dell Technologies. As a Senior Principal Engineer he focuses on cutting-edge virtualization and storage projects. A VMware Certified Implementation Expert, 9x VMware vExpert, and VMware User Moderator on the official VMTN forums, Graham is a trusted community resource. Connect with him on Twitter for insights! @VirtualG.uk

Leave a Response

This site uses Akismet to reduce spam. Learn how your comment data is processed.