Skip to content

Instantly share code, notes, and snippets.

@egormkn
Created December 16, 2018 14:50
Show Gist options
  • Save egormkn/ffa12c2410aa41f2b9f481451afd6da4 to your computer and use it in GitHub Desktop.
Save egormkn/ffa12c2410aa41f2b9f481451afd6da4 to your computer and use it in GitHub Desktop.
echo -n > /etc/environment
sed -i 's/#\(baseurl=.*\)mirror\.centos\.org/\1vault.centos.org/g' /etc/yum.repos.d/CentOS-*.repo
sed -i 's/\(mirrorlist=\)/#\1/g' /etc/yum.repos.d/CentOS-*.repo
yum clean all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment