从加速的原理上无非有两点,一是使用更好的下载工具,二是在更快的源中去下载。而yum是支持plugin的方式的,给我们提供了便利。综合网上找到的资料,再结合自己的使用来说一下。
1,使用axel来作为下载工具。
[luyao@localhostbtdown]$wget
[luyao@localhostbtdown]$tarzxvfaxel-1.0b.tar.gz
[luyao@localhostbtdown]$cdaxel-1.0b
[luyao@localhostbtdown]$./configure--i18n=1
[luyao@localhostbtdown]$make
[root@localhostbtdown]#makeinstall
[luyao@localhostbtdown]$wget
[luyao@localhostbtdown]$wget
[root@localhostbtdown]#cpaxelget.conf/etc/yum/pluginconf.d/
[root@localhostbtdown]#cpaxelget.py/usr/lib/yum-plugins/
2,使用fastmirror让它自动匹配最快的源
[root@localhostyum.repos.d]#yuminstallyum-fastestmirror
3,尝试更新一下,OK,所用的插件都正常。
[root@localhostluyao]#yumupdate
Loadedplugins:axelget,fastestmirror,refresh-packagekit
Loadingmirrorspeedsfromcachedhostfile
........
出自:梦里一千里
下载本文示例代码
阅读(617) | 评论(0) | 转发(0) |