rmadison1
Usage
rmadison[OPTIONS] PACKAGE ...
Overview
dak ls queries the Debian archive database ("projectb") and displays which package version is registered per architecture/component/suite. The CGI at https://qa.debian.org/madison.php provides that service without requiring SSH access to ftp-master.debian.org or the mirror on mirror.ftp-master.debian.org. This script, rmadison, is a command line frontend to this CGI.
Options
-
-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
-
-s, --suite=SUITE -
only show info for this suite
-
-r, --regex -
treat PACKAGE as a regex
Note:Since-rcan easily DoS the database ("-r ."), this option is not supported by the CGI on qa.debian.org and most other installations.
-
-S, --source-and-binary -
show info for the binary children of source pkgs
-
-t, --time -
show projectb snapshot and reload time (not supported by all archives)
-u,--url=URL[,URL ...]-
use URL for the query. Supported shorthands are
debianhttps://api.ftp-master.debian.org/madison
newhttps://api.ftp-master.debian.org/madison?s=new
qahttps://qa.debian.org/madison.php
ubuntuhttps://ubuntu-archive-team.ubuntu.com/madison.cgi
uddhttps://qa.debian.org/cgi-bin/madison.cgi
allhttps://qa.debian.org/cgi-bin/madison.cgi?table=all
archivehttps://qa.debian.org/cgi-bin/madison.cgi?table=archived
portshttps://qa.debian.org/cgi-bin/madison.cgi?table=portsSee the
RMADISON_URL_MAP_variable below for a method to add new shorthands.
-
--version -
show version and exit
-
--no-conf, --noconf -
don't read the devscripts configuration files
ARCH, COMPONENT and SUITE can be comma (or space) separated lists, e.g. --architecture=amd64,i386
Configuration variables
The two configuration files /etc/devscripts.conf and ~/.devscripts are sourced by a shell in that order to set configuration variables. Command line options can be used to override configuration file settings. Environment variable settings are ignored for this purpose. The currently recognised variables are:
RMADISON_URL_MAP_SHORTHAND=URL-
Add an entry to the set of shorthand URLs listed above. SHORTHAND should be replaced with the shorthand form to be used to refer to URL.
Multiple shorthand entries may be specified by using multiple
RMADISON_URL_MAP_*variables.
RMADISON_DEFAULT_URL=URL-
Set the default URL to use unless overridden by a command line option. For Debian this defaults to debian. For Ubuntu this defaults to ubuntu.
RMADISON_ARCHITECTURE=ARCH-
Set the default architecture to use unless overridden by a command line option. To run an unrestricted query when
RMADISON_ARCHITECTUREis set, use--architecture='*'.
RMADISON_SSL_CA_FILE=FILE-
Use the specified CA file instead of the default CA bundle for curl/wget, passed as --cacert to curl, and as --ca-certificate to wget.
RMADISON_SSL_CA_PATH=PATH-
Use the specified CA directory instead of the default CA bundle for curl/wget, passed as --capath to curl, and as --ca-directory to wget.
Notes
dak ls was formerly called madison.
The protocol used by rmadison is fairly simple, the CGI accepts query the parameters a, b, c, g, G, r, s, S, t, and package. The parameter text is passed to enable plain-text output.
Releases
10 releases since Debian 4.0 (Etch); the text changed 9 times.
--no-conf since Debian 5.0 (Lenny);
--noconf since Debian 5.0 (Lenny);
--regex since Debian 8 (Jessie);
--time since Debian 5.0 (Lenny);
-r since Debian 9 (Stretch);
-t since Debian 5.0 (Lenny).
--url until Debian 6.0 (Squeeze);
-u until Debian 6.0 (Squeeze).