Migrating CentOS 8 to CentOS Stream 8

The CentOS Project announced today an end to a classic CentOS Linux as you know it, ending an era of CentOS as a RHEL rebuild. CentOS 8 will continue as a Stream version that you should upgrade to before the end of 2021. Here’s how.

First, if you missed it, here is the announcement by CentOS Project. And here is some more on how CentOS Stream will become the upstream of Red Hat Enterprise Linux.

If you are on CentOS 8, you should switch over to CentOS Stream 8 sooner or later. CentOS Stream should provide roughly the same system with the following differences:

To upgrade, install centos-release-stream package from extras repository:

$ sudo dnf install centos-release-stream
Last metadata expiration check: 1:27:40 ago on Tue 08 Dec 2020 01:58:10 PM UTC.
Dependencies resolved.
 Package                   Arch       Version                  Repository  Size
 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
Is this ok [y/N]:

Then run dnf swap to swap repositories followed by dnf distro-sync:

$ sudo dnf swap centos-{linux,stream}-repos
$ sudo dnf distro-sync

The distro-sync subcommand is used to synchronize installed packages to the latest versions on upgrades. When no argument is provided, dnf updates all packages from active repositories.

And that’s it. You should be on CentOS Stream 8!

$ sudo cat /etc/centos-release
CentOS Stream release 8


I wrote a complete guide on web application deployment. Ruby with Puma, Python with Gunicorn, NGINX, PostgreSQL, Redis, networking, processes, systemd, backups, and all your usual suspects.

More →