Fedora 9下Yum使用插件来加速


刚用上Fedora 9,使用yum来更新了一下,发现这龟速度还真是非一般的慢。

从加速的原理上无非有两点,一是使用更好的下载工具,二是在更快的源中去下载。而yum是支持plugin的方式的,给我们提供了便利。综合网上找到的资料,再结合自己的使用来说一下。

1,使用axel来作为下载工具。
[luyao@localhost btdown]$ wget http://wilmer.gaast.net/downloads/axel-1.0b.tar.gz
[luyao@localhost btdown]$ tar zxvf axel-1.0b.tar.gz
[luyao@localhost btdown]$ cd axel-1.0b
[luyao@localhost btdown]$ ./configure --i18n=1
[luyao@localhost btdown]$ make
[root@localhost btdown]# make install
[luyao@localhost btdown]$ wget http://cnfreesoft.googlecode.com/svn/trunk/axelget/axelget.conf
[luyao@localhost btdown]$ wget http://cnfreesoft.googlecode.com/svn/trunk/axelget/axelget.py
[root@localhost btdown]# cp axelget.conf /etc/yum/pluginconf.d/
[root@localhost btdown]# cp axelget.py /usr/lib/yum-plugins/

2,使用fastmirror让它自动匹配最快的源
[root@localhost yum.repos.d]# yum install yum-fastestmirror

3,尝试更新一下,OK,所用的插件都正常。
[root@localhost luyao]# yum update
Loaded plugins: axelget, fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
........
作者:dreamthousand 出自:梦里一千里

相关内容