yaourt speed up

using aria2c replace wget and curl

edit /etc/pacman.conf and /etc/makepkg.conf

change

%pacman.conf

...
#XferCommand = /usr/bin/curl -C - -f %u > %o
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
XferCommand = /usr/bin/axel -o %o %u
#XferCommand = /usr/bin/aria2c -x15 -k1M -o %o %u
...

因发现 pacman 用 aria 会不稳定

%makepkg.conf

...
#'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
#'http::/usr/bin/axel -o %o %u'
'http::/usr/bin/aria2c -x5 -k1M -o %o %u'
#'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
#'https::/usr/bin/axel -o %o %u'
'https::/usr/bin/aria2c -x5 -k1M -o %o %u'
...

-x for connetion number at a time
-k for chunk size

-x15 太作死了5就差不多了

你可能感兴趣的:(yaourt speed up)