加速centos的yum更新

centos使用yum进行更新的时候最郁闷的就是速度,最好的解决办法是做一个本地镜像,但是全部镜像大约需要250GB+. OMG, 换算成SAS硬盘也是几千块钱了.
必须花钱么? 当然不是, 可以通过安装fastestmirror和axel提高速度!
FastestMirror是类似apt-spy的yum用软件
axel是一个Linux下多线程下载工具

yum -y install yum-fastestmirror
wget http://alioth.debian.org/frs/download.php/2621/axel-2.2.tar.bz2
tar jxvf axel-2.2.tar.bz2
cd axel-2.2
./configure
make && make install
svn co http://cnfreesoft.googlecode.com/svn/trunk/axelget/ /etc/yum/axelget
cd /etc/yum/pluginconf.d/
ln -s /etc/yum/axelget/axelget.conf .
cd /usr/lib/yum-plugins/
ln -s /etc/yum/axelget/axelget.py .

最后确保/etc/yum.conf中plugins=1就好了
yum -y update来测试吧