centos YUM源
时间:2010-08-30 来源:edgeman03
使用centos也很多年了,现在有时间把经常用的几个源记录一下,也给大家分享一下
1.http://centos.ustc.edu.cn/ (主要的系统更新源,强烈推荐)
这个也是国内比较早出现的centos源,当然现在除了这个之外,163和sohu也相应出现了
http://mirrors.163.com/centos/
http://mirrors.sohu.com/centos/
加快你的yum的速度
使用yum的扩展插件yum-fastestmirror
另外还有一个插件也能达到此效果,在下载软件包时用axel工具代替默认下载工具wget,速度超明显提升,但还有一定瑕疵,在更新时会多次下载meta,可尝试使用,特别是刚装完系统时更新系统用这个插件感觉很爽
http://code.google.com/p/yum-axelget/
1.http://centos.ustc.edu.cn/ (主要的系统更新源,强烈推荐)
这个也是国内比较早出现的centos源,当然现在除了这个之外,163和sohu也相应出现了
http://mirrors.163.com/centos/
http://mirrors.sohu.com/centos/
2.附加源
EPEL
http://fedoraproject.org/wiki/EPEL/FAQ#howtouse
RPMforge
http://rpmrepo.org/RPMforge/Using
(跟这个源类似的还一个DAG源,一直不明白这两个源有什么区别,特意将两个源中的同一样RPM包比较过MD5值,发现是一样的
http://dag.wieers.com/rpm/FAQ.php#B)
rpm.livna.org
http://rpm.livna.org/
ATrpms
[atrpms]
name= CentOS-$releasever – ATrpms
baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/stable
gpgcheck=1
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
RPM Fusion
http://rpmfusion.org/(此源请谨慎使用,大部分还在测试阶段,建议生产环境不要使用)
关于CENTOS第三方源的一些参考意见可参考centos wiki
http://wiki.centos.org/zh/AdditionalResources/Repositories
Priorities 插件
yum-priorities 可在 CentOS 5 软件库内找到:
yum install yum-priorities在 CentOS 5 中插件都缺省被启用。
请编辑 /etc/yum/pluginconf.d/priorities.conf 档,并确认下列行的存在,以确定 yum-priorities 插件已被启用:
[main] enabled=1编辑 /etc/yum.repos.d/ 内的 .repo 档并加入这行来设置优先次序:
priority=N每个软件库的优先次序可以由 N,一个 1 至 99 的整数,来设置。
推荐的设置是:
[base], [addons], [updates], [extras] ... priority=1 [centosplus],[contrib] ... priority=2 第三方软件库如 rpmforge ... priority=N (N 是一个按你首选大于 10 的数值)加快你的yum的速度
使用yum的扩展插件yum-fastestmirror
另外还有一个插件也能达到此效果,在下载软件包时用axel工具代替默认下载工具wget,速度超明显提升,但还有一定瑕疵,在更新时会多次下载meta,可尝试使用,特别是刚装完系统时更新系统用这个插件感觉很爽
http://code.google.com/p/yum-axelget/
相关阅读 更多 +