|
by ncforest
from: http://ncforest.blog.163.com/blog/static/2956266420086325830437/
今天使用plf源安装软件,忽然变得很慢,只有大概1K左右,而以前都有400K左右的。由于PLF是指定的镜像列表,怀疑是给我选择了中国的那个lcuc.org.cn的源(我上那个源一起很慢,上国外的反而快)。
于是决定手动指定PLF源。
打开http://plf.zarb.org/mirrors/可以看到很多源列表文件,我选择http://plf.zarb.org/mirrors /2008.1.i586.list,打开后就可以看到镜像源的列表了。自己找一个快的,我是逐一打开,凭感觉看快慢,最后觉得http: //distrib-coffee.ipsl.jussieu.fr/pub/linux/plf/mandriva/cfg/2008.1/i586 /这个很快,下面几个也不错,但要稍微慢 一点:
http://ftp.cica.es/mirrors/Linux/plf/mandriva/cfg/2008.1/i586/
http://ftp.mandrivausers.ro/pub/plf/mandriva/cfg/2008.1/i586/
http://plf.supp.name/mandriva/cfg/2008.1/i586/
然后查看http://distrib-coffee.ipsl.jussieu.fr/pub/linux/plf/mandriva/cfg/2008.1/i586/的目录结构。
打开urpmi的配置文件/etc/urpmi/urpmi.cfg,找到最后几行,可以看到原来的PLF配置为:
PLF\ Free {
downloader: wget
key-ids: caba22ae
mirrorlist: http://plf.zarb.org/mirrors/$RELEASE.$ARCH.list
update
with-dir: media/../../../../2008.1/free/release/binary/i586
}
PLF\ Free\ backports {
key-ids: caba22ae
mirrorlist: http://plf.zarb.org/mirrors/$RELEASE.$ARCH.list
with-dir: media/../../../../2008.1/free/backports/binary/i586
}
PLF\ Non-free {
key-ids: caba22ae
mirrorlist: http://plf.zarb.org/mirrors/$RELEASE.$ARCH.list
update
with-dir: media/../../../../2008.1/non-free/release/binary/i586
}
PLF\ Non-free\ backports {
key-ids: caba22ae
mirrorlist: http://plf.zarb.org/mirrors/$RELEASE.$ARCH.list
with-dir: media/../../../../2008.1/non-free/backports/binary/i586
}
把它们修改为:
PLF\ Free http://distrib-coffee.ipsl.jussieu.fr/pub/linux/plf/mandriva/2008.1/free/release/binary/i586 {
key-ids: caba22ae
}
PLF\ Free\ backports http://distrib-coffee.ipsl.jussieu.fr/pub/linux/plf/mandriva/2008.1/free/backports/binary/i586 {
key-ids: caba22ae
}
PLF\ Non-free http://distrib-coffee.ipsl.jussieu.fr/pub/linux/plf/mandriva/2008.1/non-free/release/binary/i586 {
key-ids: caba22ae
}
PLF\ Non-free\ backports http://distrib-coffee.ipsl.jussieu.fr/pub/linux/plf/mandriva/2008.1/non-free/backports/binary/i586 {
key-ids: caba22ae
}
然后再刷新源,安装软件,又回到400k/s了,很好很强大。 |
|