Skip to content

Instantly share code, notes, and snippets.

@ggMartinez
Created July 22, 2024 15:30
Show Gist options
  • Save ggMartinez/254a331c60a94f2455648e0b57c32aeb to your computer and use it in GitHub Desktop.
Save ggMartinez/254a331c60a94f2455648e0b57c32aeb to your computer and use it in GitHub Desktop.
Centos 7 Fix Repos
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