[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Linux 的论坛好像有点问题了



刘世伟 写道:
Group shall be understood as neither given nor endorsed by it.
其实我考虑很久了,为什么APT的设计不可以做成P2P模式呢?下载包的列表和MD5
可以从信任服务器上获得(而且还有签名),拿到包的过程就不用非服务器不可了
吧?如果可以通过安装一个包,并且适当配置,将我们使用的客户机变成P2P的客
户端(其实只要让这个包依赖ftpd,然后将本地的apt缓存池发布到ftp的特定位
置,最后再将ftp的发布地址和可用包注册到服务器上。下载的时候按照可用包查
询可用服务器),我相信有很多人愿意贡献出自己的机器。更重要的是,如果我需
要批量装一堆机器,那么更新过程只要下载一次数据就可以了。现在的配置方式太
过繁琐了。
有没有人准备做这么套东西?


liushiwei@files2:~$ aptitude show apt-p2p
软件包:apt-p2p
新: 是
状态: 未安装
版本号:0.1.5
优先级:可选
部分:net
维护者:Cameron Dale <camrdale@gmail.com>
未压缩尺寸:542k
依赖于: python, python-support (>= 0.7.1), python-twisted-web2 (>= 8.0),
adduser, python-debian (>= 0.1.4), python-apt (>= 0.6.20),
        python-pysqlite2 (>= 2.1)
提供: python-apt-p2p, python-apt-p2p-khashmir
描述:apt helper for peer-to-peer downloads of Debian packages
 Apt-P2P is a helper for downloading Debian packages files with APT. It
will download any needed files from other Apt-P2P peers in a
 peer-to-peer manner, and so reduce the strain on the Debian mirrors.

 The Apt-P2P daemon runs automatically on startup and listens for
requests from APT for files, as well as maintaining membership in a
 Distributed Hash Table (DHT). For any files which have a hash available
(most files), peers that have the file are looked for in the DHT.
 The file can then be downloaded from them, using the uploading
bandwidth of other peers while reducing the demand on the Debian mirror
 network. However, if a package can not be found on any peers, Apt-P2P
will fall back to downloading from a mirror to ensure all packages
 are downloaded. Once downloaded, the file is hash checked and added to
the DHT so that other peers can download it without the mirror.

 The configuration is very simple, and only involves prepending
'localhost' and the port to your current sources.list lines (similar to
 other apt-proxy-like software).
主页:http://www.camrdale.org/apt-p2p.html



还真没注意到这个包。
那aptitude,synaptic之类的呢?也会自动使用这个包?


Reply to: