Installing yum fastest mirror plugin on CentOS 5

8 May, 2007  |  Posted by Danesh  |  in Linux

Being in Malaysia don’t expect the best speeds when running “yum -y update“. I recommend installing the yum fastest mirror plugin to see some better results.

The plugin basically goes through the list of mirrors and determines which mirrors have the best response time. The results are then sorted and stored in a local cached copy.

Installation is simple,

1. # “yum install yum-fastestmirror” for CentOS 5 and “yum -y install yum-plugin-fastestmirror” for previous versions.

2. # “vi /etc/yum/pluginconf.d/fastestmirror.conf” ensure the settings described below and set properly.

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

3. # “yum -y update” and you should start seeing a difference.

# yum -y update
Loading “fastestmirror” plugin
Loading “installonlyn” plugin
Setting up Update Process
Setting up repositories
Loading mirror speeds from cached hostfile

More help available at the CentOs Wiki .

  • Digg
  • del.icio.us
  • BlinkList
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Furl
  • Google
  • Live
  • Facebook
  • Pownce
  • TwitThis
  • E-mail this story to a friend!
  • LinkedIn
  • Ping.fm
Tags:

One Response so far | Have Your Say!

  1. Raja  |  May 8th, 2007 at 11:05 pm #

    Dei, whats your phone number?
    cant get you.

    Havent tried Centos 5 yet, have to get a new casing for my pc first.. sigh.

    Raja - Gravatar

Leave a Feedback

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>