Fedora tips-speed up yum downloading
Author: admin Posted in June 17, 2008
I was ever sick of Fedora’s yum downloading speed,because i am in out of America.After read several documents,i found out the way to speed up yum downloading.Their are 2 principles to speed up yum downloading,the first is to use better download tool,the sencond is to user faster source.You know,yum supports plugin,this fuction brings us more convinences.I have sumed up my experience to be 3 points to instruct how to speed up yum downloading as following:~
1.Use axel as downloading tool:
[linuxine@localhost btdown]$ wget http://wilmer.gaast.net/downloads/axel-1.0b.tar.gz
[linuxine@localhost btdown]$ tar zxvf axel-1.0b.tar.gz
[linuxine@localhost btdown]$ cd axel-1.0b
[linuxine@localhost btdown]$ ./configure –i18n=1
[linuxine@localhost btdown]$ make
[root@localhost btdown]# make install
[linuxine@localhost btdown]$ wget http://cnfreesoft.googlecode.com/svn/trunk/axelget/axelget.conf
[linuxine@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.Use fastmirror let it match faster sources automitically.
[root@localhost yum.repos.d]# yum install yum-fastestmirror
3.Update sources to check if all plugins are ok.
[root@localhost linuxine]# yum update
Loaded plugins: axelget, fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
……..
Done
July 28th, 2008 at 5:06 am
I think I’ve noticed an improvement, but there’s a small problem. If I attempt to use sudo to install a package through yum, an error occurs.
For example, I type ’sudo yum -y install xchat’ and get dozens of this types of messages:
Execute axel cmd:
axel -a -n 10 http://fedora.osuosl.org/linux/updates/9/i386//xchat-2.8.4-16.fc9.i386.rpm -o //var/cache/yum/updates/packages/xchat-2.8.4-16.fc9.i386.rpm
sh: axel: command not found
Execute axel cmd:
axel -a -n 10 http://mirror.newnanutilities.org/pub/fedora/linux/updates/9/i386//xchat-2.8.4-16.fc9.i386.rpm -o //var/cache/yum/updates/packages/xchat-2.8.4-16.fc9.i386.rpm
sh: axel: command not found