2013年(190)
分类: LINUX
2013-05-14 10:12:43
原文地址:【原创】CentOS 5.5 yum源修改 作者:king_819
在CentOS系统中,yum是个好东西,一组件可以直接通过yum来安装,但系统默认的yum源速度往往不尽人意,为了达到快递安装的目的,在这里就需要修改yum源
中科大的Centos 开源镜像站点.
执行以下命令就可以了
cd /etc/yum.repos.d
mv CentOS-Base.repo CentOS-Base.repo.bak
wget
mv CentOS-Base.repo.5 CentOS-Base.repo
cat CentOS-Base.repo
[base]
name=CentOS-$releasever -
Base
baseurl=centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=centos/RPM-GPG-KEY-CentOS-5
#released
updates
[updates]
name=CentOS-$releasever -
Updates
baseurl=centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=centos/RPM-GPG-KEY-CentOS-5
#packages
used/produced in the build but not
released
[addons]
name=CentOS-$releasever -
Addons
baseurl=centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=centos/RPM-GPG-KEY-CentOS-5
#additional
packages that may be useful
[extras]
name=CentOS-$releasever -
Extras
baseurl=centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=centos/RPM-GPG-KEY-CentOS-5
#additional
packages that extend functionality of existing
packages
[centosplus]
name=CentOS-$releasever -
Plus
baseurl=centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=centos/RPM-GPG-KEY-CentOS-5
也可以使用,
本文出自 “聆听未来” 博客,请务必保留此出处http://blog.chinaunix.net/space.php?uid=9419692&do=blog&id=3184103