MADISON-LITE(1)

πŸ’– madison-lite β€” the manual page, but make it cute πŸ’–

okay so bestie, welcome to MADISON-LITE(1) β€” it lives in section 1 of the manual (that's the LOCAL one, iykyk), and it's genuinely one of the most useful little tools out here. let's get into it ✨


🌸 NAME 🌸

madison-lite β€” display versions of Debian packages in an archive


πŸŽ€ SYNOPSIS πŸŽ€

madison-lite [--config-file file] [--mirror directory] [--nocache]
             [--update] [-S] [-r] [-a architecture[,...]]
             [-c component[,...]] [-s suite[,...]] package [...]

✨ DESCRIPTION ✨

okay so here's the vibe. madison-lite goes and inspects a local Debian package archive and shows you the versions of whatever packages you name β€” for each suite they show up in (think stable, testing, unstable, the whole squad). and it presents it in a brief-but-easily-human-readable form, which is exactly the energy we love. πŸ’…

it's aiming to be a drop-in replacement for the madison utility (which has since been renamed to dak ls), from the dak archive management suite that runs on the central Debian archive systems. the glow-up? it can run without access to the archive's SQL database. no database, no problem. πŸ¦‹

the following options are available:

  • --config-file file β€” read configuration from file, and ignore the system configuration file (peep the β€œCONFIGURATION” section below).
  • --mirror directory β€” quick configuration: use directory as the top level of the Debian mirror.
  • --nocache β€” normally, parts of the Packages and Sources files in the archive get cached in ~/.madison-lite/cache for speed. this option disables that behaviour. no cache, just vibes.
  • --update β€” force caches of Packages and Sources files to be updated.
  • -S, --source-and-binary β€” interpret package as a source package name, and display versions of any associated binary packages as well as of the source package.
  • -r, --regex β€” interpret package as a Perl regular expression anchored at the start of the package name rather than as an exact name. make sure to quote any shell metacharacters such as β€˜*’ or β€˜?’ if necessary. fr fr, quote them.
  • -a, --architecture architecture[,...] β€” display only entries for packages built for these architectures. separate multiple architectures with commas or spaces.
  • -c, --component component[,...] β€” display only entries in the given components. separate multiple components with commas or spaces.
  • -s, --suite suite[,...] β€” display only entries in the given suites. separate multiple suites with commas or spaces.

🧚 CONFIGURATION 🧚

madison-lite reads configuration information from the file named by --config-file, or β€” if you didn't supply that β€” from the first one of ~/.madison-lite/config and /etc/madison-lite/config that exists.

the following configuration directives are recognized:

  • mirror directory β€” set the top-level directory of the local Debian mirror. relative directories in the suite directive are interpreted relative to this directory. defaults to the current directory.
  • suite name directory [component [...]] β€” defines the suite name based at directory, containing the specified components (defaulting to all subdirectories of directory). output is displayed following the order of suite directives in the configuration file. if no suite directives are present, then every subdirectory of the dists directory under mirror is treated as a suite, with all of their subdirectories as components.

okay so here's the structural lore: the Debian archive is structured such that the subdirectories of each suite directory identify components (such as main). each of those in turn has subdirectories for each architecture (binary-i386, and so on), each of which contains any or all of Packages, Packages.gz, Packages.bz2, and Packages.xz files listing binary packages; it also has a subdirectory called source which contains any or all of Sources, Sources.gz, Sources.bz2, and Sources.xz files listing source packages.

the configuration file may contain comment lines, which start with a β€˜#’ character.


🌈 EXAMPLES 🌈

show versions of the coreutils package:

$ madison-lite coreutils

show versions of all binary packages on powerpc produced by the glibc source package:

$ madison-lite -S -a powerpc glibc

show versions of all packages in the unstable suite whose names begin with β€˜man’:

$ madison-lite -s unstable -r 'man.*'

an example configuration file for a simple local mirror:

mirror /mirror/debian
suite unstable dists/unstable main
suite unstable-non-US non-US/dists/unstable non-US/main

πŸ‘‘ SEE ALSO πŸ‘‘

dpkg-scanpackages(8), dpkg-scansources(8), apt-ftparchive(1)


πŸ’œ AUTHORS πŸ’œ

madison-lite was written by Colin Watson <cjwatson@debian.org>. the interface mirrors that of madison (since renamed to dak ls), written by James Troup.


and that's the whole page, bestie 🫢 this one came from the Debian crew, dated August 1, 2007, and it's filed under MADISON-LITE(1). iconic behavior honestly. go read your packages. πŸ’…βœ¨