用axel和fastestmirror提高yum速度

首先将/etc/yum.conf中的plugins设为1。


        Axel是一个无依赖关系、轻量级的下载工具,它通过分段连结一个文件来加速HTTP/FTP下载速度,并可以为一个下载任务使用多个镜像。把它做为YUM的插件使用以提高YUM的下载速度。


从http://axel.alioth.debian.org/下载axel



安装axel

        1.      tar xzvf axel-xxx.tar.gz

        2.      cd axel-xxx

        3.      ./configure

        4.      make

        5.      make install

配置axel

        cp axelget.conf /etc/yum/pluginconf.d/

        cp axelget.py /usr/lib/yum-plugins/


fastestmirror插件是先根据ping值选择最快的镜像来下载文件。


        yum install yum-plugin-fastestmirror

 

你可能感兴趣的:(Debian)