Skip to content

Instantly share code, notes, and snippets.

@beka
Created March 21, 2022 17:09
Show Gist options
  • Save beka/bfeaf0df945609433019720568cfc044 to your computer and use it in GitHub Desktop.
Save beka/bfeaf0df945609433019720568cfc044 to your computer and use it in GitHub Desktop.
#first let's migrate system to working CentOS 8 repos, we need to install "centos-release-stream" package
sudo sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sudo sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
yum update
#Now we can migrate
sudo yum install centos-release-stream
sudo yum swap centos-linux-repos centos-stream-repos
sudo dnf distro-sync
#now you may reboot system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment