Created
December 16, 2018 14:50
-
-
Save egormkn/ffa12c2410aa41f2b9f481451afd6da4 to your computer and use it in GitHub Desktop.
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
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