Last active
August 29, 2015 14:08
-
-
Save liuyu121/859dc318513014182a3f to your computer and use it in GitHub Desktop.
Use the 163 yum repo on cetnos 6.5
This file contains 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
#!/bin/bash | |
wget http://mirrors.163.com/.help/CentOS6-Base-163.rep | |
cd /etc/yum.repos.d/ | |
## !important backup the system yum repo | |
mv CentOS-Base.repo CentOS-Base.repo.bak | |
mv /path/to/CentOS6-Base-163.repo CentOS-Base.repo | |
yum clean all | |
yum makecache | |
yum repolist | |
## Importan yum update will update the kernel !!! | |
yum update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment