Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2377446
  • 博文数量: 609
  • 博客积分: 10061
  • 博客等级: 上将
  • 技术积分: 5920
  • 用 户 组: 普通用户
  • 注册时间: 2008-06-25 08:30
文章分类

全部博文(609)

文章存档

2010年(13)

2009年(39)

2008年(558)

我的朋友

分类: LINUX

2008-08-07 18:21:33

fastestmirror

The fastest mirror plugin is designed for use in repository configurations where you have more than 1 mirror in a repo configuration. It makes a connection to each mirror, timing the connection and then sorts the mirrors by fastest to slowest for use by yum.

If you are using the default CentOS configuration, and if you are not behind a proxy server, fastestmirror is highly recommended.

To be able to use this plugin, you must enable plugins in your /etc/yum.conf file, see Yum Plugins for details. Yum plugins are enabled by default starting with CentOS 5.

You can install the fastestmirror plugin by using this command:

yum install yum-plugin-fastestmirror

Or with the following command on CentOS 5:

yum install yum-fastestmirror

After fastestmirror is installed, make sure that it is enabled. Edit the file /etc/yum/pluginconf.d/fastestmirror.conf and ensure that it contains the following lines:

[main]
verbose = 0
socket_timeout = 3
enabled = 1
hostfilepath = /var/cache/yum/timedhosts.txt
maxhostfileage = 1

To exclude a specific mirror, TLD, or something in between, add an 'exclude=' line to /etc/yum/pluginconf.d/fastestmirror.conf:

[main]
...
exclude=.gov, facebook, myspace, junk-mirror.com

    * With both the protectbase and fastestmirror yum plugins installed, you should get the fastest updates with maximum protection from accidental damage from 3rd party repositories. 
阅读(473) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~