...
Instructions to convert from the CentOS Linux 8 distribution to CentOS Stream 8 are published at Q7: How do I migrate my CentOS Linux 8 installation to CentOS Stream? DO NOT WORK as the repositories for CentOS 8 where moved to vault.centos.org.
We are advising but we are advinsing you to use the following comands, already tested:
| Code Block | ||
|---|---|---|
| ||
# Become root
$ sudo su -
# Update the CentOS 8 repositories:
$ for k in $(ls /etc/yum.repos.d/CentOS-Linux-*.repo); do sudo sed -e 's/^mirrorlist=/#mirrorlist=/' -e 's/#baseurl=http:\/\/mirror/baseurl=http:\/\/vault/' -i $k; done
# Update to the latest version of CentOS 8 & reboot
$ sudo dnf update
$ sudo shutdown -r now
# Install CentOS Stream packages repositories
$ sudo dnf in centos-release-stream
# Migrate from CentOS 8 to CentOS Stream 8 & reboot
$ sudo dnf swap centos-linux-repos centos-stream-repos
$ sudo dnf distro-sync
$ sudo shutdown -r now |
...