注册 登录  
 加关注
查看详情
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

德充符

受善亦为善,如来如是来

 
 
 

日志

 
 
 
 

Fedora 8中使用axel加速yum  

2007-11-10 17:49:01|  分类: Linux |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
 Fedora 8中使用axel加速yum——已做大幅精简和更新

Fedora 8中使用axel加速yum - 难得糊涂 - 德充符


1.a.下载axel源码包并进行编译
到下面站点下载最新的axel源码包,http://wilmer.gaast.net/main.php/axel.html

.进入下载目录:
$tar zxvf 文件名
$cd 解压出来的目录
$./configure --i18n=1
$make
$make install

b.下载站点上有axel的rpm包提供,我没有试,有兴趣的帮忙试一下

2.插件版本更新更新到78,参见wq1977兄弟的帖子--关于yum太慢了的解决方案
新建一文件夹:
svn co http://cnfreesoft.googlecode.com/svn/trunk/axelget/ <your_path>/axelget
取得文件后,将文件axelget.conf放入/etc/yum/pluginconf.d/目录,将axelget.py放入/usr/lib/yum-plugins/即可,或是作链接都可以,我还没来得及试,不知是否解决了目录判别问题,有兴趣的试试啊——我已经试过了,运行的很好,推荐使用,原插件已过时,使用不便,故相关配置方法已删除

4.注意事项:
1.如果出现错误找不到axel命令,编辑~/.bash_profile ,将PATH改为如下所示:
PATH=$PATH:$HOME/bin:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin

2.可在http://mirrors.fedoraproject.org/publiclist/Fedora/$releasever/$ basearch/查询可用的服务器,可能是因为Fedora 8 刚刚发布,所以有部分服务器还没有开放updates,如果提示没有这个目录,建议换个服务器或者是等待一段时间再试

3.可选方案,因为fastestmirror插件经常不能准确的测出下载速度最快的源,建议根据网络情况自行添加baseurl,以下可以添加也可不添加,如适当修改可长期保持最快速度

编辑相关的repo文件,fedora.repo和fedora-updates.repo
改为不使用镜像列表,并添加镜像服务器,修改如下:
#fedora.repo文件
代码:
[fedora]
name=Fedora $releasever - $basearch
failovermethod=priority
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
baseurl=
http://download.fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
http://mirrors.usc.edu/pub/linux/distributions/fedora/linux/releases/$releasever/Everything/$basearch/os/
http://mirrors.cat.pdx.edu/fedora/linux/releases/$releasever/Everything/$basearch/os/
http://ftp.iij.ad.jp/pub/linux/fedora/releases/$releasever/Everything/$basearch/os/
ftp://ftp.iij.ad.jp/pub/linux/fedora/releases/$releasever/Everything/$basearch/os/
http://mirror.aarnet.edu.au/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
http://mirror.internode.on.net/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
http://gulus.usherbrooke.ca/pub/distro/fedora/linux/releases/$releasever/Everything/$basearch/os/
http://mirror.karneval.cz/pub/linux/fedora/linux/releases/$releasever/Everything/$basearch/os/
http://sunsite.mff.cuni.cz/MIRRORS/fedora.redhat.com/linux/releases/$releasever/Everything/$basearch/os/
http://ftp-stud.hs-esslingen.de/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
http://fedora.tu-chemnitz.de/pub/linux/fedora/linux/releases/$releasever/Everything/$basearch/os/
http://mirror.fraunhofer.de/download.fedora.redhat.com/fedora/linux/releases/$releasever/Everything/$basearch/os/
http://ftp.uni-bayreuth.de/linux/fedora/linux/releases/$releasever/Everything/$basearch/os/
http://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
ftp://ftp.free.fr/mirrors/fedora.redhat.com/fedora/linux/releases/$releasever/Everything/$basearch/os/
http://limestone.uoregon.edu/ftp/fedora/linux/releases/$releasever/Everything/$basearch/os/
http://fedora.mirror.iweb.ca/releases/$releasever/Everything/$basearch/os/
ftp://ftp.cse.buffalo.edu/pub/Linux/fedora/linux/releases/$releasever/Everything/$basearch/os/
http://mirror.cc.vt.edu/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
http://mirrors.tummy.com/pub/fedora.redhat.com/fedora/linux/releases/$releasever/Everything/$basearch/os/
http://mirrors.kernel.org/fedora/releases/$releasever/Everything/$basearch/os/
http://www.gtlib.gatech.edu/pub/fedora.redhat/linux/releases/$releasever/Everything/$basearch/os/
http://ftp.linux.ncsu.edu/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
http://ftp.iij.ad.jp/pub/linux/fedora/releases/$releasever/Everything/$basearch/os/
ftp://ftp.iij.ad.jp/pub/linux/fedora/releases/$releasever/Everything/$basearch/os/
http://ftp.yz.yamagata-u.ac.jp/pub/linux/fedora/linux/releases/$releasever/Everything/$basearch/os/
http://ftp.rhnet.is/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
http://mirror.pacific.net.au/linux/fedora/linux/releases/$releasever/Everything/$basearch/os/


#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
#fedora-updates.repo文件
代码:
[updates]
name=Fedora $releasever - $basearch - Updates
failovermethod=priority
baseurl=
http://download.fedora.redhat.com/pub/fedora/linux/updates/$releasever/$basearch/
http://mirrors.usc.edu/pub/linux/distributions/fedora/linux/updates/$releasever/$basearch/
http://mirrors.cat.pdx.edu/fedora/linux/updates/$releasever/$basearch/
http://ftp.iij.ad.jp/pub/linux/fedora/updates/$releasever/$basearch/
ftp://ftp.iij.ad.jp/pub/linux/fedora/updates/$releasever/$basearch/
http://mirror.aarnet.edu.au/pub/fedora/linux/updates/$releasever/$basearch/
http://mirror.internode.on.net/pub/fedora/linux/updates/$releasever/$basearch/
http://gulus.usherbrooke.ca/pub/distro/fedora/linux/updates/$releasever/$basearch/
http://mirror.karneval.cz/pub/linux/fedora/linux/updates/$releasever/$basearch/
http://sunsite.mff.cuni.cz/MIRRORS/fedora.redhat.com/linux/updates/$releasever/$basearch/
http://ftp-stud.hs-esslingen.de/pub/fedora/linux/updates/$releasever/$basearch/
http://fedora.tu-chemnitz.de/pub/linux/fedora/linux/updates/$releasever/$basearch/
http://mirror.fraunhofer.de/download.fedora.redhat.com/fedora/linux/updates/$releasever/$basearch/
http://ftp.uni-bayreuth.de/linux/fedora/linux/updates/$releasever/$basearch/
http://ftp.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/updates/$releasever/$basearch/
ftp://ftp.free.fr/mirrors/fedora.redhat.com/fedora/linux/updates/$releasever/$basearch/
http://limestone.uoregon.edu/ftp/fedora/linux/updates/$releasever/$basearch/
http://fedora.mirror.iweb.ca/updates/$releasever/$basearch/
ftp://ftp.cse.buffalo.edu/pub/Linux/fedora/linux/updates/$releasever/$basearch/
http://mirror.cc.vt.edu/pub/fedora/linux/updates/$releasever/$basearch/
http://mirrors.tummy.com/pub/fedora.redhat.com/fedora/linux/updates/$releasever/$basearch/
http://mirrors.kernel.org/fedora/updates/$releasever/$basearch/
http://www.gtlib.gatech.edu/pub/fedora.redhat/linux/updates/$releasever/$basearch/
http://ftp.linux.ncsu.edu/pub/fedora/linux/updates/$releasever/$basearch/
http://ftp.iij.ad.jp/pub/linux/fedora/updates/$releasever/$basearch/
ftp://ftp.iij.ad.jp/pub/linux/fedora/updates/$releasever/$basearch/
http://ftp.yz.yamagata-u.ac.jp/pub/linux/fedora/linux/updates/$releasever/$basearch/
http://ftp.rhnet.is/pub/fedora/linux/updates/$releasever/$basearch/
http://mirror.pacific.net.au/linux/fedora/linux/updates/$releasever/$basearch/

#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
或下载我打包好的repo文件附件 44894,将原来的文件备份,然后覆盖

注意:这里的所有服务器镜像都是我从官方一条条找来的,并进行了筛选,希望对大家有用,同时建议只选择对自己来说最 快的几个服务器即可,baseurl的第一个服务器是绝对可以用的,是稳妥的设置,但速度上比较一般,50-100KB/s的样子可以根据自己实际情况更 改为更快的服务器。


本文参考了axelget插件作者wq1977兄弟的帖子--关于yum太慢了的解决方案,喝水不忘挖井人,感谢wq1977兄弟为我们带来方便!!!

如有错误,欢迎指正,谢谢!
欢迎转载,请保留作者信息和链接地址,谢谢 !
gcell-http://gcell.blog.163.com/
  评论这张
 
阅读(581)| 评论(2)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018