Last active
January 12, 2025 21:34
-
-
Save neontorrent/aa0ef3240404a86b3f9f25c8a68f6905 to your computer and use it in GitHub Desktop.
Fix CentOS repo mirrorlist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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