歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Fedora 9下Yum使用插件來加速

Fedora 9下Yum使用插件來加速

日期:2017/2/28 17:01:38   编辑:Linux教程

剛用上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 出自:夢裡一千裡

Copyright © Linux教程網 All Rights Reserved