Skip to content

Instantly share code, notes, and snippets.

@andyone
Created February 6, 2021 12:04
Show Gist options
  • Select an option

  • Save andyone/08f5ed2f61b40fa8cd565d7913a1f163 to your computer and use it in GitHub Desktop.

Select an option

Save andyone/08f5ed2f61b40fa8cd565d7913a1f163 to your computer and use it in GitHub Desktop.
sudo sed -i -e 's,^#\(baseurl\),\1,g' \
-e 's,mirror\(\.centos\.org\),vault\1,g' \
-e 's,^\(mirrorlist\),#\1,g' /etc/yum.repos.d/CentOS-Base.repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment