2008年8月23日星期六

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 ........

0 评论: