今天使用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/
----国内mandriva源站
http://www.linuxsir.org/bbs/showthread.php?t=293401
http://mirrors.163.com/.help/plf.html --帮助文档
http://mirrors.163.com/plf/mandriva/
---添加plf源
http://easyurpmi.zarb.org/index.php?version=2010.2
---直接添加mandriva源
http://mirrors.163.com/.help/mandriva.html
---鸟哥私房菜urpmi用法
http://linux-vbird.bluedata.org/linux_server/0220upgrade.htm#mandrake
然后查看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了,很好很强大。
示例:
urpmi.addmedia contrib_backports http://mirrors.163.com/mandriva/official/2010.2/i586/media/contrib/backports with media_info/synthesis.hdlist.cz
urpmi.addmedia main http://mirrors.163.com/mandriva/official/2010.2/i586/media/main/release with media_info/synthesis.hdlist.cz
urpmi.addmedia --update main_updates http://mirrors.163.com/mandriva/official/2010.2/i586/media/main/updates with media_info/synthesis.hdlist.cz
urpmi.addmedia main_backports http://mirrors.163.com/mandriva/official/2010.2/i586/media/main/backports with media_info/synthesis.hdlist.cz
urpmi.addmedia contrib http://mirrors.163.com/mandriva/official/2010.2/i586/media/contrib/release with media_info/synthesis.hdlist.cz
urpmi.addmedia --update contrib_updates http://mirrors.163.com/mandriva/official/2010.2/i586/media/contrib/updates with media_info/synthesis.hdlist.cz
urpmi.addmedia non-free http://mirrors.163.com/mandriva/official/2010.2/i586/media/non-free/release with media_info/synthesis.hdlist.cz
urpmi.addmedia --update non-free_updates http://mirrors.163.com/mandriva/official/2010.2/i586/media/non-free/updates with media_info/synthesis.hdlist.cz
urpmi.addmedia non-free_backports http://mirrors.163.com/mandriva/official/2010.2/i586/media/non-free/backports with media_info/synthesis.hdlist.cz