CentOS 8 End of Life: upgrade to CentOS Stream

CentOS 8 End of Life has been effective since January 31 2021, official mirrors do not provide any packages anymore. Here is how to upgrade to latest release of CentOS 8 and switch to Stream.

As always, prior to any system change, you should ensure you have a working recent backup.

Upgrade to latest CentOS 8

sed -i -e 's/mirrorlist/#mirrorlist/g' -e 's|#baseurl=http://mirror.centos.org|baseurl=https://vault.centos.org|g' /etc/yum.repos.d/*.repo

yum update

reboot

cat /etc/centos-release
CentOS Linux release 8.5.2111

Make sure everything is working as expected.

Switch to CentOS Stream

sed -i -e 's/mirrorlist/#mirrorlist/g' -e 's|#baseurl=http://mirror.centos.org|baseurl=https://vault.centos.org|g' /etc/yum.repos.d/*.repo

dnf install centos-release-stream

dnf swap centos-linux-repos centos-stream-repos

dnf distro-sync

reboot

cat /etc/centos-release
CentOS Stream release 8

Make sure everything is working as expected.

You’re done!

This entry was posted in CentOS, Computer, Linux. Bookmark the permalink.

Leave a Reply

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

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