rmadison でパッケージのバージョンを確認

Twitterで rmadison というコマンドを教えてもらいました.

rmadison はリモートのデータベースにアクセスしてパッケージのバージョン情報を表示してくれるコマンドで,Debianでは devscripts パッケージに含まれています.

$ rmadison --help
Usage: rmadison [OPTION] PACKAGE[...]
Display information about PACKAGE(s).

  -a, --architecture=ARCH    only show info for ARCH(s)
  -b, --binary-type=TYPE     only show info for binary TYPE
  -c, --component=COMPONENT  only show info for COMPONENT(s)
  -g, --greaterorequal       show buildd 'dep-wait pkg >= {highest version}' info
  -G, --greaterthan          show buildd 'dep-wait pkg >> {highest version}' info
  -h, --help                 show this help and exit
  -r, --regex                treat PACKAGE as a regex [not supported everywhere]
  -s, --suite=SUITE          only show info for this suite
  -S, --source-and-binary    show info for the binary children of source pkgs
  -t, --time                 show projectb snapshot date
  -u, --url=URL              use URL instead of debian

  --noconf, --no-conf        don't read devscripts configuration files

ARCH, COMPONENT and SUITE can be comma (or space) separated lists, e.g.
    --architecture=m68k,i386

Aliases for URLs:
        debian  https://api.ftp-master.debian.org/madison
        new     https://api.ftp-master.debian.org/madison?s=new
        qa      https://qa.debian.org/madison.php
        ubuntu  https://people.canonical.com/~ubuntu-archive/madison.cgi
        udd     https://qa.debian.org/cgi-bin/madison.cgi

例えば OpenSSH を指定するとこんな感じでtesting以降に 8.9p1 が来ているのが分かります.

a$ rmadison openssh
openssh    | 1:6.7p1-5+deb8u4   | oldoldoldstable        | source
openssh    | 1:7.4p1-10+deb9u7  | oldoldstable           | source
openssh    | 1:7.4p1-10+deb9u7  | oldoldstable-debug     | source
openssh    | 1:7.9p1-10+deb10u2 | oldstable              | source
openssh    | 1:7.9p1-10+deb10u2 | oldstable-debug        | source
openssh    | 1:8.4p1-2~bpo10+1  | buster-backports       | source
openssh    | 1:8.4p1-2~bpo10+1  | buster-backports-debug | source
openssh    | 1:8.4p1-5          | stable                 | source
openssh    | 1:8.8p1-1          | testing                | source
openssh    | 1:8.9p1-3          | unstable               | source
openssh    | 1:8.9p1-3          | unstable-debug         | source

urlを指定することでUbuntuの情報も

$ rmadison -u https://people.canonical.com/~ubuntu-archive/madison.cgi openssh
 openssh | 1:6.6p1-2ubuntu1    | trusty          | source
 openssh | 1:6.6p1-2ubuntu2.13 | trusty-security | source
 openssh | 1:6.6p1-2ubuntu2.13 | trusty-updates  | source
 openssh | 1:7.2p2-4           | xenial          | source
 openssh | 1:7.2p2-4ubuntu2.8  | xenial-security | source
 openssh | 1:7.2p2-4ubuntu2.10 | xenial-updates  | source
 openssh | 1:7.6p1-4           | bionic          | source
 openssh | 1:7.6p1-4ubuntu0.5  | bionic-security | source
 openssh | 1:7.6p1-4ubuntu0.6  | bionic-proposed | source
 openssh | 1:7.6p1-4ubuntu0.6  | bionic-updates  | source
 openssh | 1:8.2p1-4           | focal           | source
 openssh | 1:8.2p1-4ubuntu0.2  | focal-security  | source
 openssh | 1:8.2p1-4ubuntu0.4  | focal-updates   | source
 openssh | 1:8.4p1-6ubuntu2    | impish          | source
 openssh | 1:8.4p1-6ubuntu2.1  | impish-updates  | source
 openssh | 1:8.8p1-1           | jammy           | source
 openssh | 1:8.9p1-3           | jammy-proposed  | source

リモートの情報を取得しに行くので回線がないと使えません.

$ https_proxy='dummy' rmadison openssh
curl: (5) Could not resolve proxy: dummy

こういった情報はこれまで https://packages.debian.org/ にアクセスして確認していたので便利になりました :)

$ w3m -dump https://packages.debian.org/openssh-server | grep ^Package\ openssh-server$ -A24
Package openssh-server

  • stretch (oldoldstable) (net): secure shell (SSH) server, for secure access
    from remote machines
    1:7.4p1-10+deb9u7: amd64 arm64 armel armhf i386 mips mips64el mipsel
    ppc64el s390x
  • buster (oldstable) (net): secure shell (SSH) server, for secure access from
    remote machines
    1:7.9p1-10+deb10u2: amd64 arm64 armel armhf i386 mips mips64el mipsel
    ppc64el s390x
  • buster-backports (net): secure shell (SSH) server, for secure access from
    remote machines
    1:8.4p1-2~bpo10+1: amd64 arm64 armel armhf i386 mips mips64el mipsel
    ppc64el s390x
  • bullseye (stable) (net): secure shell (SSH) server, for secure access from
    remote machines
    1:8.4p1-5: amd64 arm64 armel armhf i386 mips64el mipsel ppc64el s390x
  • bookworm (testing) (net): secure shell (SSH) server, for secure access from
    remote machines
    1:8.8p1-1: amd64 arm64 armel armhf i386 mips64el mipsel ppc64el s390x
  • sid (unstable) (net): secure shell (SSH) server, for secure access from
    remote machines
    1:8.9p1-3: alpha amd64 arm64 armel armhf hppa i386 ia64 m68k mips64el
    mipsel ppc64 ppc64el riscv64 s390x sh4 sparc64 x32
環境
dison --version
rmadison 0.4 (devscripts 2.22.1)
(C) 2006-2010 Christoph Berg <myon@debian.org>
(C) 2010 Uli Martens <uli@youam.net>
$ dpkg-query -W devscripts
devscripts      2.22.1
$ lsb_release -dr
Description:    Debian GNU/Linux bookworm/sid
Release:        unstable
$ arch
x86_64

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です