Migration Centos 8 to Centos 8 Stream

Hi folks. If you see this topic then you have some problem to mirgation centos 8 to centos 8 stream.

STEP 1: Go to /etc/yum.repos.d/
STEP 2: Change /etc/yum/repos.d/Centos-Appstream 2 directives. You need comment
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=BaseOS&infra=$infra #baseurl=http://mirror.centos.org/$contentdir/$releasever/BaseOS/$basearch/os/
And add this record
baseurl=http://mirror.yandex.ru/centos/8-stream/AppStream/x86_64/os/?contentdir/$releasever/BaseOS/$basearch/os/

Change /etc/yum/repos.d/Centos-BaseOS too.

STEP 3: dnf install centos-release-stream
STEP 4: dnf swap centos-{linux,stream}-repos
STEP 5: dnf distro-sync
STEP 6: dnf update -y
STEP 7: reboot

1 Like

P.s. If you use podman or docker you need execute
systemctl restart podman or docker

1 Like

А в случае такой ошибки:

Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist

Можно пофиксить при помощи скрипта:

https://github.com/m0zgen/fix-appstream
1 Like