AXEL是使用多線(Multi-thread)方式下載檔案, 又有人寫成YUM的plugin, 所以就來用看看!


Install AXEL


#wget http://wilmer.gaast.net/downloads/axel-1.0b.tar.gz
#tar zxvf axel-1.0b.tar.gz
#cd axel-1.0b
# ./configure –i18n=1
#make
#make install


設定YUM 使用 AXEL:


將 axelget.conf 放置 /etc/yum/pluginconf.d/


#wget http://cnfreesoft.googlecode.com/svn/trunk/axelget/axelget.conf -P /etc/yum/pluginconf.d/


將 axelget.py 放置 /usr/lib/yum-plugins/


#wget http://cnfreesoft.googlecode.com/svn/trunk/axelget/axelget.py -P  /usr/lib/yum-plugins/


調整 YUM-Axel plugin, 只有超過200Kbyte檔案才使用 axel:


# cat /etc/yum/pluginconf.d/axelget.conf
[main]
enabled=1
onlyhttp=1
enablesize=200000
cleanOnException=1


讓YUM自動找最快mirror site:


yum install yum-fastmirror


試試看吧:


# yum update
Loaded plugins: axelget, presto, refresh-packagekit
Setting up Update Process



we will try to use axel to download this big file:41031190
Before we start,clean all the key files
Execute axel cmd:
axel -a -n 10 http://free.nchc.org.tw/fedora/linux/updates/11/i386//evolution-help-2.26.2-1.fc11.noarch.rpm -o /var/cache/yum/updates/packages/evolution-help-2.26.2-1.fc11.noarch.rpm
Initializing download: http://free.nchc.org.tw/fedora/linux/updates/11/i386//evolution-help-2.26.2-1.fc11.noarch.rpm
File size: 41031190 bytes
Opening output file /var/cache/yum/updates/packages/evolution-help-2.26.2-1.fc11.noarch.rpm
Starting download


Connection 6 finished                                                          ]
Connection 9 finished                                                          ]
Connection 0 finished                                                          ]
Connection 7 finished                                                          ]
Connection 1 finished                                                          ]
Connection 8 finished                                                          ]
Connection 4 finished                                                          ]
Connection 2 finished                                                          ]
Connection 3 finished                                                          ]
[100%] [..................................................] [ 391.4KB/s] [00:00]


Downloaded 39.1 megabytes in 1:42 seconds. (391.42 KB/s)
[110/221]Ok,