Skip to content

Instantly share code, notes, and snippets.

@neontorrent
Last active January 12, 2025 21:34
Show Gist options
  • Save neontorrent/aa0ef3240404a86b3f9f25c8a68f6905 to your computer and use it in GitHub Desktop.
Save neontorrent/aa0ef3240404a86b3f9f25c8a68f6905 to your computer and use it in GitHub Desktop.
Fix CentOS repo mirrorlist
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/CentOS-*.repo
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/CentOS-*.repo
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/CentOS-*.repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment