R.A. Epigonos et al.

[debian] aptラインからリポジトリにあるパッケージをブラウジング

aptラインを基にしてリポジトリにあるパッケージをブラウジングできる。そのためにはapt-lineからURLに変換したい。

以下のようなaptラインがあったとする。

deb http://mozilla.debian.net/ squeeze-backports iceweasel-3.6

debの後についているURL(baseurl)の後ろにdists/をつければレポジトリの内容をブラウジングできる。

http://mozilla.debian.net/dists/

baseurlの後にあるiceweasel-3.6/(distribution/)をつけ、さらにその後にiceweasel-3.6/(component/)をつければこのコンポーネントの内容がわかる。

http://mozilla.debian.net/dists/squeeze-backports/iceweasel-3.6/

このディレクトリの中には以下のディレクトリが含まれている。

binary-amd64/
binary-i386/
source/

適当なディレクトリ(binary-i386/)を選んで内容を確認すると以下のファイルが含まれていることがわかる。

Packages
Packages.gz
Release
Release.gpg

Packagesの中にコンポーネントの内容が書かれている。例えば以下のような内容が列挙されている。

Package: iceweasel
Version: 3.6.18-1~bpo60+1
Architecture: i386
Maintainer: Maintainers of Mozilla-related packages <pkg-mozilla-maintainers@lists.alioth.debian.org>
Installed-Size: 3972
Depends: libc6 (>= 2.3.6-6~), libgcc1 (>= 1:4.1.1), libglib2.0-0 (>= 2.16.0), libgtk2.0-0 (>= 2.10), libnspr4-0d (>= 1.8.0.10), libstdc++6 (>= 4.1.1), fontconfig, procps, debianutils (>= 1.16), xulrunner-1.9.2 (>= 1.9.2.16)
Suggests: ttf-lyx | latex-xft-fonts, xfonts-mathml, ttf-mathematica4.1, xprint, mozplugger, libgssapi-krb5-2 | libkrb53
Provides: gnome-www-browser, www-browser
Priority: optional
Section: web
Filename: pool/iceweasel-3.6/i/iceweasel/iceweasel_3.6.18-1~bpo60+1_i386.deb
Size: 1098802
SHA256: a7e0c43b087905d0de4ccd4d68d935c01ace7e753018bd580b254059b1369883
SHA1: 612e341fdf47342e12c8c1c2dbe1d7fa38aa8644
MD5sum: 287836c310976a0c16b03af710f535d2
Description: Web browser based on Firefox
 Firefox is a redesign of the Mozilla browser component, similar to
 Galeon, K-Meleon and Camino, but written using the XUL user interface
 language and designed to be lightweight and cross-platform.
 .
 This browser is based on the Firefox source-code, with minor
 modifications. Historically, this browser was previously known as
 Firebird and Phoenix.

これのFilenameフィールドを参照することでdebパッケージのURLが判る。Filenameフィールドの前にbaseurlを加えたものがdebパッケージのURLである。つまり今回の場合は以下がURLである。

http://mozilla.debian.net/pool/iceweasel-3.6/i/iceweasel/iceweasel_3.6.18-1~bpo60+1_i386.deb

リファレンス

  1. Index of /dists
  2. Index of /pool
  3. Debian Mozilla team APT archive
  4. sources.list(5): Package resource list for APT - Linux man page
  5. manpage sources.list - Google 検索

ソーシャルブックマーク

  1. はてなブックマーク
  2. Google Bookmarks
  3. del.icio.us

ChangeLog

  1. Posted: 2010-01-25T16:33:56+09:00
  2. Modified: 2010-01-25T16:33:56+09:00
  3. Generated: 2023-08-27T23:09:17+09:00