[推荐最快的“源”]powerpill加速pacman和yaourt撑满带宽

头像
cnshzj007
帖子: 685
注册时间: 2006-05-24 21:38
来自: 上海
送出感谢: 0
接收感谢: 0
联系:

[推荐最快的“源”]powerpill加速pacman和yaourt撑满带宽

#1

帖子 cnshzj007 » 2009-04-10 22:46

因为我的BLOG是建立在我自己的本本上的,不可能像服务器那样长时间在线,不说是我的archlinux当服务器不好啊,关键是硬件的问题。所以我决定把我的BLOG中的文章弄到这里。关键是很多人都在找快速的源。
请更正,嘿嘿,为了arch,为了linux! :em03 为了“精华帖” :em03 :em02 :em01 :em06 :em04 :em11 :em09 :em05


一、Archlinux中加速Pacman推荐用powerpill撑满带宽
powerpill

是一个通过aria2c这个多点并行下载工具来加速pacman下载软件的外包式软件。
powerpill的参数同pacman的参数,但是同时又有不同于pacman的特别的参数,暂时没有用到,那就不多说了。
快速安装方法:


1. 在/etc/pacman.conf中增加一个软件源。Do not need any more! Because archlinux offical community has taken in.

代码: 全选

[xyne-any]
Server = http://xyne.archlinux.ca/repos/any/
2. 更新源,安装powerpill。

代码: 全选

pacman -Sy powerpill
3. 在/etc/pacman.d/mirrorlist中把注释符号#都去除了,当然也可以直接选择性复制我这里提供的镜像源列表。这些列表源,绝大多数是来自Archlinux镜像检测网中同步最快最稳定,同时也适应我所在上海电信的网络环境。

代码: 全选

Server = ftp://ftp.archlinux.org/$repo/os/i686
Server = ftp://mirrors.easynews.com/linux/archlinux/$repo/os/i686
Server = ftp://ftp.ibiblio.org/pub/linux/distributions/archlinux/$repo/os/i686
Server = http://www.schlunix.org/archlinux/$repo/os/i686
Server = http://mirror.umoss.org/archlinux/$repo/os/i686
Server = ftp://mirror.csclub.uwaterloo.ca/archlinux/$repo/os/i686
Server = ftp://archlinux.c3sl.ufpr.br/archlinux/$repo/os/i686
Server = ftp://ftp.las.ic.unicamp.br/pub/archlinux/$repo/os/i686
Server = ftp://gd.tuwien.ac.at/opsys/linux/archlinux/$repo/os/i686
Server = ftp://ftp.sh.cvut.cz/MIRRORS/arch/$repo/os/i686
Server = ftp://ftp.estpak.ee/pub/archlinux/$repo/os/i686
Server = ftp://mir1.archlinuxfr.org/archlinux/$repo/os/i686
Server = ftp://mir2.archlinuxfr.org/archlinux/$repo/os/i686
Server = ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/$repo/os/i686
Server = http://mir.archlinux.fr/$repo/os/i686
Server = ftp://ftp.free.fr/mirrors/ftp.archlinux.org/$repo/os/i686
Server = ftp://ftp.rez-gif.supelec.fr/Linux/archlinux/$repo/os/i686
Server = ftp://ftp.tu-chemnitz.de/pub/linux/archlinux/$repo/os/i686
Server = ftp://ftp.hosteurope.de/mirror/ftp.archlinux.org/$repo/os/i686
Server = ftp://ftp.archlinuxppc.org/i686/$repo/os/i686
Server = ftp://ftp5.gwdg.de/pub/linux/archlinux/$repo/os/i686
Server = ftp://ftp.uni-bayreuth.de/pub/linux/archlinux/$repo/os/i686
Server = ftp://ftp.uni-kl.de/pub/linux/archlinux/$repo/os/i686
Server = http://www.mirrorservice.org/sites/ftp.archlinux.org/$repo/os/i686
Server = ftp://mirrors.uk2.net/pub/archlinux/$repo/os/i686
Server = ftp://ftp.ntua.gr/pub/linux/archlinux/$repo/os/i686
Server = ftp://ftp.mfa.kfki.hu/pub/mirrors/ftp.archlinux.org/$repo/os/i686
Server = ftp://ftp.heanet.ie/mirrors/ftp.archlinux.org/$repo/os/i686
Server = ftp://mi.mirror.garr.it/mirrors/archlinux/$repo/os/i686
Server = ftp://ftp.nluug.nl/pub/metalab/distributions/archlinux/$repo/os/i686
Server = ftp://ftp.surfnet.nl/pub/os/Linux/distr/archlinux/$repo/os/i686
Server = http://mirror.archlinux.no/$repo/os/i686
Server = ftp://mirror.icis.pcz.pl/archlinux/$repo/os/i686
Server = http://piotrkosoft.net/pub/mirrors/ftp.archlinux.org/$repo/os/i686
Server = ftp://ftp.piotrkosoft.net/pub/mirrors/ftp.archlinux.org/$repo/os/i686
Server = http://unix.net.pl/archlinux.org/$repo/os/i686
Server = ftp://cesium.di.uminho.pt/pub/archlinux/$repo/os/i686
Server = ftp://ftp.iasi.roedu.net/mirrors/archlinux.org/$repo/os/i686
Server = ftp://mirror.yandex.ru/archlinux/$repo/os/i686
Server = http://archlinux.freeside.ru/$repo/os/i686
Server = ftp://ftp.ds.hj.se/pub/os/linux/archlinux/$repo/os/i686
Server = ftp://ftp.gigabit.nu/$repo/os/i686
Server = ftp://archlinux.puzzle.ch/$repo/os/i686
Server = ftp://archlinux.hell.org.ua/archlinux/$repo/os/i686
Server = ftp://ftp.linux.kiev.ua/pub/Linux/ArchLinux/$repo/os/i686
Server = http://mirror.isoc.org.il/pub/archlinux/$repo/os/i686
Server = ftp://mirror.pacific.net.au/linux/archlinux/$repo/os/i686
Server = ftp://ftp.iinet.net.au/pub/archlinux/$repo/os/i686
Server = ftp://mirrors.portafixe.com/archlinux/$repo/os/i686
Server = ftp://mirrors.igprolin-online.org/archlinux/$repo/os/i686
Server = ftp://archlinux.cbn.net.id/pub/archlinux/$repo/os/i686
Server = ftp://mirror.internode.on.net/pub/archlinux/$repo/os/i686
Server = ftp://ftp.klid.dk/archlinux/$repo/os/i686
Server = http://mirror.archlinux.com.ve/$repo/os/i686
Server = http://mirror2.archlinux.com.ve/$repo/os/i686
Server = ftp://mirror.lividpenguin.com/pub/archlinux/$repo/os/i686
Server = http://mirrors.gigenet.com/archlinux/$repo/os/i686
Server = ftp://archlinux.igor.onlinedirect.bg/linux/archlinux/$repo/os/i686
Server = ftp://mirrors.hosef.org/archlinux/$repo/os/i686
Server = ftp://ftp.spline.inf.fu-berlin.de/mirrors/archlinux/$repo/os/i686
Server = ftp://mirror.archlinux.cl/$repo/os/i686
Server = http://archlinux.unixheads.org/$repo/os/i686
Server = http://public.gooth.cn/archlinux/$repo/os/i686/
Server = ftp://cle.linux.org.tw/pub/ArchLinux/$repo/os/i686
Server = http://public.gooth.cn/archlinux/$repo/os/i686
Server = ftp://ftp.indochinalinux.com/archlinux/$repo/i686
Server = ftp://archlinux.puzzle.ch/$repo/os/i686
Server = http://mirror.archlinux.no/$repo/os/i686
Server = ftp://ftp.ntua.gr/pub/linux/archlinux/$repo/os/i686
Server = http://archlinux.umflint.edu/$repo/os/i686
#China
Server = http://mirrors.lcuc.org.cn/archlinux/
Server = http://mirror.lupaworld.com/archlinux/
Server = http://public.gooth.cn/archlinux/
Server = http://mirrors.163.com/archlinux/$repo/os/i686/
Server = http://mirror.cs.vt.edu/$repo/os/i686
Server = http://mirror.isoc.org.il/pub/archlinux/$repo/os/i686
Server = http://archlinux.freeside.ru/$repo/os/i686
Server = http://mirror.archlinux.no/$repo/os/i686
Server = ftp://ftp.rez-gif.supelec.fr/Linux/archlinux/$repo/os/i686
Server = http://mirror.umoss.org/archlinux/$repo/os/i686
Server =http://ftp.ibiblio.org/$repo/os/i686
Server = http://mirrors.163.com/archlinux/$repo/os/i686
4. 最后就是测试速度了,如下代码,只是下载一个大包软件到你的缓存目录中,放心,不会安装这个大包软件的。

代码: 全选

 powerpill -Sw --cachedir /tmp openoffice-base(双短线,应该是英文格式记得自己改,但是如果在这里用两个英文短线会被解释成一个短线。)
最后,嘿嘿,不要骂我,要提醒一点,就是powerpill由于要分析很多镜像服务器,然后再进行多点并行下载,分析时间会比较长一些,这也根据你mirrorlist中镜像源的多少和快慢了,以及和你的~/.config/powerpill/powerpill.conf的配置。嘿嘿,大家去看看那个配置文件吧,还很容易看明白,然后大家可以提出自己相应的配置,实现是powerpill更快速度!

代码: 全选

# Make sure that you have several mirrors uncommented in your mirrorlist.
# I would recomment at least 10 but you could just as well uncomment
# all of them.


# Global concurrent connection limit. This sets the total number of
# simultaneous connections, not downloads. If set to 0, it will let
# aria2 decide.
# Default: 10
TOTAL_CONNECTIONS = 0 //我改了这里,不知道,可不可能加快。

# Minimum size in MB for using multiple connection to download a file.
# Files smaller than this will NOT be split (not worth it on small files).
# Default: 5 MB
MINIMUM_SIZE = 5

# Maximum number of connections per single file (only applies to files
# equal to or larger than MINIMUM_SIZE). If set to 0, it will let aria2
# decide.
# Default: 0
CONNECTIONS_PER_FILE = 0

# Maximum download speed in bytes/s (0 = unlimited)
# Add 'K' for kB or 'M' for MB, e.g. ('1048576' = '1024K' = '1M')
# Default: 0
MAX_SPEED = 0

# Minimum download speed (0 = no minimum)
# Add 'K' for kB or 'M' for MB, e.g. ('1048576' = '1024K' = '1M')
# Default: 0
MIN_SPEED = 0

# Server timeout
# Default: 15
TIMEOUT = 15

# Maximum tries per download (0 = unlimited)
# Default: 5
MAX_TRIES = 5

# Interval between retries
# Default: 5
RETRY_WAIT = 5

# Passive FTP ('yes'/'no')
# This is overridden by settings in pacman.conf
# Default: yes
PASSIVE_FTP = yes

# Log output ('yes'/'no')
# Default: no
ENABLE_LOG = no

# Log file if logging is enabled
# Default: /var/log/powerpill.log
LOG = /var/log/powerpill.log

# Enable verbose aria2 output?
# Default: no
ARIA2_VERBOSE = no

# Pre-allocate file space? ('none' or 'prealloc')
# Slow and unnecessary for lots of small files.
# Default:  none
FILE_ALLOC = none

# Overwrite existing files ('true' or 'false')
# If true, this will overwrite existing cache files even if their
# checksums match, which is rather pointless. See the following
# option for a better alternative.
# Default: false
OVERWRITE = false

# When parsing the requested files, powerpill checks the database
# to get the MD5 checksums  and then checks if any of the files
# are already  in the cache. If the checksum of the cached  file
# matches the database, the file is not  downloaded again. If the
# cached file's checksum does NOT match the database, you can set
# powerpill to automatically delete it and redownload it, ask you
# what to do for each file, or leave the file in the cache and
# skip the download.
#
# What to do with cached files with bad checksums ('delete', 'ask', 'leave')
# Default: ask
BAD_CHECKSUM_ACTION = ask

# Use colored messages ('yes' or 'no')
# Default: yes
USE_COLOR = yes

# Show size of individual packages before downloading ('yes' or 'no')
# The total file download size will always be shown. If set to 'no',
# this may be overridden by 'ShowSize' in pacman.conf.
# Default: yes
SHOW_FILE_SIZES = yes

# Additional command line arguments that you always wish to include
# when powerpill is invoked, such as "--nomessages" when wrapping
# powerpill with another script.
# Default: ''
ADDITIONAL_POWERPILL_ARGUMENTS = ''

# Additional arguments to aria2c. Check the aria2 man page.
# Default: '--use-head=false'
ADDITIONAL_ARIA2C_ARGUMENTS = '--use-head=false'

# full path to the pacman binary
# default: /usr/bin/pacman
PACMAN = /usr/bin/pacman

# full path to the aria2c binary
# default: /usr/bin/aria2c
ARIA2C = /usr/bin/aria2c

# Set the pacman configuration file path.
# default: /etc/pacman.conf
DEFAULT_CONF = /etc/pacman.conf

# Set the cache and database paths. These paths are taken relative
# to the specified root (see "man pacman" for more details).
# Normally, these will be relative to "/", so DO NOT PREPEND A
# SLASH ("/").
# default cache: var/cache/pacman/pkg/
# default database: var/lib/pacman/
DEFAULT_CACHE = var/cache/pacman/pkg/
DEFAULT_DATABASE = var/lib/pacman/

二、archlinux中用powerpill加速yaourt
http://cnshzj007.gicp.net/wordpress/200 ... %9Fyaourt/
直接讲安装配置,使用powerpill加速pacman,请看我这一篇,可以同时使用的。

1. 编辑/etc/yaourtrc,如果这里没有这个yaourt的配置文件,那么试试~/.yaourtrc,增加如下代码:

代码: 全选

PacmanBin /usr/bin/powerpill
2. 打完收工,就这么简单。

PS:安装yaourt方法
在/etc/pacman.conf中增加一个软件源。

代码: 全选

[archlinuxfr]
Server = http://repo.archlinux.fr/i686
然后执行如下代码:

代码: 全选

pacman -Sy yaourt
上次由 cnshzj007 在 2010-02-13 13:42,总共编辑 22 次。
我只是一个ARCH的FANS,来自RH和UBUNTU的滋润!
头像
HuntXu
论坛版主
帖子: 5778
注册时间: 2007-09-29 3:09
送出感谢: 0
接收感谢: 6 次

Re: [自我推荐]powerpill加速你的pacman和yaourt撑满你带宽

#2

帖子 HuntXu » 2009-04-10 22:53

其实在我这一直是满速...
HUNT Unfortunately No Talent...
头像
adagio
论坛版主
帖子: 22120
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球
送出感谢: 7 次
接收感谢: 74 次

Re: [推荐最快的“源”]powerpill加速pacman和yaourt撑满带宽

#3

帖子 adagio » 2009-04-10 23:18

支持 :em11 支持
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
头像
cnshzj007
帖子: 685
注册时间: 2006-05-24 21:38
来自: 上海
送出感谢: 0
接收感谢: 0
联系:

Re: [推荐最快的“源”]powerpill加速pacman和yaourt撑满带宽

#4

帖子 cnshzj007 » 2009-04-10 23:26

adagio 写了:支持 :em11 支持
看到我修改17次的苦力上,我也谢谢你。 :em11
我只是一个ARCH的FANS,来自RH和UBUNTU的滋润!
头像
qiang_liu8183
论坛版主
帖子: 10672
注册时间: 2006-09-10 22:36
来自: 北京
送出感谢: 1 次
接收感谢: 6 次

Re: [自我推荐]powerpill加速你的pacman和yaourt撑满你带宽

#5

帖子 qiang_liu8183 » 2009-04-10 23:42

HuntXu 写了:其实在我这一直是满速...
看破、放下、自在、随缘、念佛
真诚、清净、平等、正觉、慈悲
头像
cnshzj007
帖子: 685
注册时间: 2006-05-24 21:38
来自: 上海
送出感谢: 0
接收感谢: 0
联系:

Re: [自我推荐]powerpill加速你的pacman和yaourt撑满你带宽

#6

帖子 cnshzj007 » 2009-04-11 9:58

qiang_liu8183 写了:
HuntXu 写了:其实在我这一直是满速...
嘿嘿,总有人不是满速了。
我只是一个ARCH的FANS,来自RH和UBUNTU的滋润!
头像
bocelli99
帖子: 525
注册时间: 2007-07-10 12:16
送出感谢: 0
接收感谢: 0

Re: [推荐最快的“源”]powerpill加速pacman和yaourt撑满带宽

#7

帖子 bocelli99 » 2009-04-11 10:21

就它了

代码: 全选

XferCommand = /usr/bin/aria2c --no-conf -s 2 -m 2 -d / -o %o %u
:em03
像一条秋天的道路:还未来得及扫干净,它又为干枯的树叶所覆盖。

The Kafka Project http://www.kafka.org
头像
Jarson
帖子: 2371
注册时间: 2008-07-21 9:44
来自: 深圳
送出感谢: 0
接收感谢: 0
联系:

Re: [推荐最快的“源”]powerpill加速pacman和yaourt撑满带宽

#8

帖子 Jarson » 2009-04-14 20:44

用上了,速度真的暴快 :em11

貌似我的系统里没有yaourt这个东东,用

代码: 全选

pacman -S yaourt
提示找不到软件包 :em20
头像
cnshzj007
帖子: 685
注册时间: 2006-05-24 21:38
来自: 上海
送出感谢: 0
接收感谢: 0
联系:

Re: [推荐最快的“源”]powerpill加速pacman和yaourt撑满带宽

#9

帖子 cnshzj007 » 2009-04-14 21:51

fhc2007 写了:用上了,速度真的暴快 :em11

貌似我的系统里没有yaourt这个东东,用

代码: 全选

pacman -S yaourt
提示找不到软件包 :em20
编辑/etc/pacman.conf
增加如下代码后就可以用你的pacman -Sy yaourt了,注意多了个参数。

代码: 全选

[archlinuxfr]
Server = http://repo.archlinux.fr/i686
我只是一个ARCH的FANS,来自RH和UBUNTU的滋润!
头像
Jarson
帖子: 2371
注册时间: 2008-07-21 9:44
来自: 深圳
送出感谢: 0
接收感谢: 0
联系:

Re: [推荐最快的“源”]powerpill加速pacman和yaourt撑满带宽

#10

帖子 Jarson » 2009-04-14 22:17

cnshzj007 写了:
编辑/etc/pacman.conf
增加如下代码后就可以用你的pacman -Sy yaourt了,注意多了个参数。

代码: 全选

[archlinuxfr]
Server = http://repo.archlinux.fr/i686
谢谢,装上了

看了一下yaourt的man,yaourt貌似很强大~~ :em05
yaourt — more than a frontend to pacman
头像
davidlone
帖子: 626
注册时间: 2007-03-06 18:14
来自: 常德--重庆
送出感谢: 0
接收感谢: 0
联系:

Re: [推荐最快的“源”]powerpill加速pacman和yaourt撑满带宽

#11

帖子 davidlone » 2009-04-14 23:59

这个帖子不错,支持~
ABIT Rocket AV8 ,AMD3500,创见DDR433 1GB,希捷IDE250GB,MSI6200a,7130电视卡,Archlinux
头像
cnshzj007
帖子: 685
注册时间: 2006-05-24 21:38
来自: 上海
送出感谢: 0
接收感谢: 0
联系:

Re: [推荐最快的“源”]powerpill加速pacman和yaourt撑满带宽

#12

帖子 cnshzj007 » 2009-04-15 18:47

davidlone 写了:这个帖子不错,支持~
:em03 谢谢了!
我只是一个ARCH的FANS,来自RH和UBUNTU的滋润!
dongfanglu
帖子: 523
注册时间: 2007-12-13 23:34
送出感谢: 0
接收感谢: 0
联系:

Re: [推荐最快的“源”]powerpill加速pacman和yaourt撑满带宽

#13

帖子 dongfanglu » 2009-04-23 12:39

同样是上海交大的源,ubuntu和archlinux相差很大,这个是什么原因呢
ubuntu很快,archlinux 却很慢,
XDG3669
帖子: 380
注册时间: 2006-07-10 22:50
送出感谢: 0
接收感谢: 0
联系:

Re: [推荐最快的“源”]powerpill加速pacman和yaourt撑满带宽

#14

帖子 XDG3669 » 2009-05-01 21:46

自Archlinux镜像检测网中同步最快最稳定


用reflector检测网中同步最快最稳定Archlinux镜像!

http://xyne.archlinux.ca/info/reflector
头像
lerosua
论坛版主
帖子: 8455
注册时间: 2007-11-29 9:41
送出感谢: 0
接收感谢: 0
联系:

Re: [推荐最快的“源”]powerpill加速pacman和yaourt撑满带宽

#15

帖子 lerosua » 2009-05-01 22:06

我满速也只不过是30k左右
回复

回到 “Arch发行版”