Created
July 22, 2024 15:30
-
-
Save ggMartinez/254a331c60a94f2455648e0b57c32aeb to your computer and use it in GitHub Desktop.
Centos 7 Fix Repos
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/*.repo | |
sed -i 's/^#.*baseurl=http/baseurl=http/g' /etc/yum.repos.d/*.repo | |
sed -i 's/^mirrorlist=http/#mirrorlist=http/g' /etc/yum.repos.d/*.repo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment