yum更新源

修改/etc/yum.repos.d/CentOS-Base.repo

[base]

name=CentOS-$releasever - Base

baseurl=http://mirrors.163.com/centos/6.4/os/$basearch/

gpgcheck=1

gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6  

 

[updates]

name=CentOS-$releasever - Updates

baseurl=http://mirrors.163.com/centos/6.4/updates/$basearch/

gpgcheck=1

gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6

 

[addons]

name=CentOS-$releasever - Addons

baseurl=http://mirrors.163.com/centos/$releasever/addons/$basearch/

gpgcheck=1

gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6

 

[extras]

name=CentOS-$releasever - Extras

baseurl=http://mirrors.163.com/centos/6.4/extras/$basearch/

gpgcheck=1

gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6

 

[centosplus]

name=CentOS-$releasever - Plus

baseurl=http://mirrors.163.com/centos/6.4/centosplus/$basearch/

gpgcheck=1

enabled=0

gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6

重建缓存

yum clean all
yum clean metadata
yum clean dbcache
yum makecache
yum update


你可能感兴趣的:(yum更新源)