How to increase yum download speeds

A method to increase the yum download speed is to install the yum-plugin-fastestmirror yum plugin. While this in itself increases the download speeds and decreases the download times, there is yet another plugin to be added.

An article titled, Turbo Charge Yum with Fastest Mirror and AxelGet Plugins, provided the foundation for this script to simplify the installation and configuration of these plugins.

# Description: Turbo Charge yum with fastest mirror and AxelGet plugins

# Download and install the rpmforge repository
if [ $(arch) = "i686" ]; then
# 32-bit
yum localinstall -y rpmforge-release-0.5.3-1.el6.rf.i686.rpm
# 64-bit
yum localinstall -y rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

yum install -y yum-plugin-fastestmirror axel

# Install AxelGet plugins
curl -o /etc/yum/pluginconf.d/axelget.conf
curl -o /usr/lib/yum-plugins/

Once installed, if you should do a yum update, the process should be considerably quicker.