-
下载 repo
1
|
wget http:
//mirrors
.163.com/.help
/CentOS6-Base-163
.repo
|
-
替换 repo
1
2
3
|
cd
/etc/yum
.repos.d/
mv
CentOS-Base.repo CentOS-Base.repo.bak
mv
CentOS6-Base-163.repo CentOS-Base.repo
|
-
更新 cache
1
2
|
yum clean all
yum makecache
|
-
Verify
1
2
3
4
5
6
7
8
|
[root@localhost tmp]
# yum repolist
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
repo
id
repo name status
base CentOS-6 - Base - 163.com 6,367
extras CentOS-6 - Extras - 163.com 14
updates CentOS-6 - Updates - 163.com 463
repolist: 6,844
|