Disable YUM fastestmirror timeouts
The fastestmirror plugin for yum is supposed to make updates and installations faster right? What if you have to wait for a fastestmirror timeout before yum continues installing?
More like slowestmirror

If all the mirrors are timing out and appear dead because of some network issue such as a restricted firewall or proxy, the wait is painful.

Get Verbose
Turn on verbosity first. Edit /etc/yum/pluginconf.d/fastestmirror.conf and set verbose=1 then try updating or installing a package.
After a short delay you should start to see responses from all the mirrors.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# yum install patchutils Loaded plugins: fastestmirror, presto Loading mirror speeds from cached hostfile * centos.mirror.constant.com : dead * centos.mirror.constant.com : 99999999999.000000 secs * centosmirror.quintex.com : dead * centosmirror.quintex.com : 99999999999.000000 secs * mirror.linux.duke.edu : dead * mirror.linux.duke.edu : 99999999999.000000 secs * mirrors.liquidweb.com : dead * mirrors.liquidweb.com : 99999999999.000000 secs * mirror.cs.vt.edu : dead * mirror.cs.vt.edu : 99999999999.000000 secs * mirror.liberty.edu : dead * mirror.liberty.edu : 99999999999.000000 secs * mirror.rackspace.com : dead * mirror.rackspace.com : 99999999999.000000 secs * bay.uchicago.edu : dead * bay.uchicago.edu : 99999999999.000000 secs * mirror.raystedman.net : dead * mirror.raystedman.net : 99999999999.000000 secs * ftp.osuosl.org : dead * ftp.osuosl.org : 99999999999.000000 secs |
If you’ve just got a few timing out, just add exclude’s to the configuration file so it skips them. Conversely, you can add a whitelist of the fastest responders to speed things up.
Fastestmirror timeout still?
If your firewall or proxy is completely blocking the fastestmirror plugin because it’s ignoring http_proxy style environtment variables and your proxy setting in yum.conf, then you’re pretty much out of luck with this plugin.
You can’t remove the package because of dependencies, so just turn it off in the config. Edit /etc/yum/pluginconf.d/fastestmirror.conf and set enabled=0
enabled=0
If you’re behind a proxy and don’t have yum configured yet, try adding your proxy to yum.conf first.
proxy=http://192.168.1.2:8000/