Migrate CentOS Linux 8 to CentOS Stream 8

The quick way to migrate CentOS Linux 8 from using regular repositories to streams.

If you try to patch your CentOS Linux 8 and get the following error message, then it is time to consider migrating to another distro or continue using CentOS Stream 8 with rolling upgrades.

$ sudo dnf update
CentOS Linux 8 - AppStream                                                                                                                                                 285  B/s |  38  B     00:00    
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist

The quick fix

$ sudo dnf --disablerepo '*' --enablerepo=extras swap centos-linux-repos centos-stream-repos
$ sudo dnf distro-sync

Leave a Reply

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