武藤@Debianぷろじぇくとです。
手近なDebian JPのmirrorサーバーのapt lineをsources.listに追加するツール
を作ってみました。
#JPのほうのnew package freezeはないよね? :-)
PerlのスクリプトでライセンスはGPLです。
----------------------------------------
Package: apt-mirrorfind
Version: 1.1-1
Priority: optional
Section: net
Maintainer: Kenshi Muto <kmuto@debian.org>
Depends: traceroute-nanog, perl|perl5
Architecture: all
Filename: dists/unstable/main/binary-i386/apt-mirrorfind_1.1-1_all.deb
Size: 6324
MD5sum: 52d6e1f4b8f4bdf52aaf00ea84556124
Description: Find fastest Debian mirror site for your host
This tool helps search your best apt-line.
.
You can choose non-free, non-US and Debian JP by adding options.
----------------------------------------
Too debian-jp specificな実装なので、Debian JPだけの提供です :-)
現在は
deb http://www.topstudio.co.jp/~kmuto/debian/private unstable main
から取得できます。
potato(-t unstable)でnon-free含む(-n)でJPパッケージ含む(-j)でnon-US含む
(-u)なら、次のように実行します。
/usr/sbin/apt-mirrorfind -n -u -j -t unstable
これで一番応答の早かった3つのサーバー(現在のところ、リストには
ftp.debian.orgとringサーバーを登録しています)のapt-lineをsources.listに
記述します(最速のもの以外の2つはコメントアウトします)。
また、デバッグ用に -g オプションを付ければsources.listの結果をファイルで
はなく画面に表示します。
#potatoがstableになるという想定のもとに組んでるので、現在の
#stable(slink)のnon-USのラインは正しく記述しません。
P.S.
「速い」というのを調べるのは難しいですね。「経路的に近い」のほうがいいか
なぁ。
--
武藤 健志@Debian/JPプロジェクト (kmuto@debian.org, kmuto@debian.or.jp)
日本いそたーねっと協会 (kmuto@xxxxxxxxxxxxx)
有限会社トップスタジオ (kmuto@xxxxxxxxxxxxxxx)
URI: http://www.topstudio.co.jp/~kmuto/ (Debianな話題など)
Attachment:
pgpIuuOGYJPHo.pgp
Description: PGP signature