Skip to content

Instantly share code, notes, and snippets.

@cherts
Created February 1, 2022 17:18
Show Gist options
  • Select an option

  • Save cherts/6c12f2d38d526c82798ac1c1499bf151 to your computer and use it in GitHub Desktop.

Select an option

Save cherts/6c12f2d38d526c82798ac1c1499bf151 to your computer and use it in GitHub Desktop.
Change CentOS 8 official repo (EOL)
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Linux-*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment