# `rmadison` Objectif: récupérer la dernière version du script perl `rmadison` sans installer le paquet `devscripts` **rmadison** permet d'interroger à distance les bases des dépôts debian sur les paquets disponibles * dépendances `liburi-perl` et `wget` ou `curl`, normalement installées par défaut * le script est installé à son emplacement habituel, et une préférence sera placée dans `/etc/devscripts.conf` (créé au besoin) pour n'afficher que les architectures `source,i386,amd64` ## installation ```shell su wget -O rmadison "https://anonscm.debian.org/git/collab-maint/devscripts.git/plain/scripts/rmadison.pl" chmod +x rmadison mv rmadison /usr/bin/rmadison exit ``` ## utilisation `rmadison paquet`, exemple: ```shell rmadison blender ``` ```text blender | 2.63a-1+deb7u1 | oldoldstable | source, amd64, armel, armhf, i386, ia64, kfreebsd-amd64, kfreebsd-i386, mips, mipsel, powerpc, s390, s390x, sparc blender | 2.72.b+dfsg0-3 | oldstable | source, amd64, arm64, armel, armhf, i386, mips, mipsel, powerpc, ppc64el, s390x blender | 2.72.b+dfsg0-3 | oldstable-kfreebsd | source, kfreebsd-amd64, kfreebsd-i386 blender | 2.74+dfsg0-4~bpo8+1 | jessie-backports | source, amd64, arm64, armel, armhf, i386, kfreebsd-amd64, kfreebsd-i386, mips, mipsel, powerpc, ppc64el, s390x blender | 2.78.a+dfsg0-4 | stable | source, amd64, arm64, armel, armhf, i386, mips, mips64el, mipsel, ppc64el, s390x blender | 2.78.a+dfsg0-4 | testing | source, amd64, arm64, armel, armhf, i386, mips, mips64el, mipsel, ppc64el, s390x blender | 2.78.a+dfsg0-4 | unstable | source, arm64, armel, armhf blender | 2.78.c+dfsg0-2 | buildd-unstable | source, amd64, armel, hurd-i386, i386, kfreebsd-amd64, kfreebsd-i386, mips, mips64el, mipsel, powerpc, ppc64el, s390x blender | 2.78.c+dfsg0-2 | unstable | source, amd64, armel, hurd-i386, i386, kfreebsd-amd64, kfreebsd-i386, mips, mips64el, mipsel, powerpc, ppc64el, s390x ``` ## configuration la configuration peut être modifiée en ajoutant un fichier `/etc/devscripts.conf` par défaut: ```text ##### rmadison # # Add a custom URL to the default list of shorthands so one # can use it with -u without having to specify the full URL # # RMADISON_URL_MAP_EXAMPLE=http://example.com/madison.cgi # # Default URL to use if none is specified on the command line. # RMADISON_DEFAULT_URL=debian # 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 "http://people.canonical.com/~ubuntu-archive/madison.cgi", # udd 'https://qa.debian.org/cgi-bin/madison.cgi', # use --url=ubuntu to query ubuntu instead debian # # Default architecture to use if none is specified on the command line. # use --architecture='*' to run an unrestricted query when # RMADISON_ARCHITECTURE is set. ``` ## config adaptée pour éviter un affichage de toutes les architectures possibles: ```shell su echo 'RMADISON_ARCHITECTURE=source,i386,amd64,all' >> /etc/devscripts.conf exit ``` seul les sources, et les architectures i386, amd64 et all seront affichées. pas d'espaces après les virgules. `rmadison paquet`, exemple: ```shell rmadison blender ``` ```text blender | 2.63a-1+deb7u1 | oldoldstable | source, amd64, i386 blender | 2.72.b+dfsg0-3 | oldstable | source, amd64, i386 blender | 2.72.b+dfsg0-3 | oldstable-kfreebsd | source blender | 2.74+dfsg0-4~bpo8+1 | jessie-backports | source, amd64, i386 blender | 2.78.a+dfsg0-4 | stable | source, amd64, i386 blender | 2.78.a+dfsg0-4 | testing | source, amd64, i386 blender | 2.78.c+dfsg0-2 | buildd-unstable | source blender | 2.78.c+dfsg0-2 | unstable | source blender | 2.78.c+dfsg0-2+b1 | buildd-unstable | amd64, i386 blender | 2.78.c+dfsg0-2+b1 | unstable | amd64, i386 ```