kyopages/docs/trucs/rmadison.md

59 lines
2.1 KiB
Markdown
Raw Normal View History

2017-06-13 10:58:48 +02:00
# `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
```
2017-06-13 16:30:27 +02:00
```text
2017-06-13 10:58:48 +02:00
blender | 2.63a-1+deb7u1 | oldstable | source, amd64, i386
blender | 2.72.b+dfsg0-3 | stable | source, amd64, i386
blender | 2.72.b+dfsg0-3 | stable-kfreebsd | source
blender | 2.74+dfsg0-4~bpo8+1 | jessie-backports | source, amd64, i386
blender | 2.78.a+dfsg0-4 | testing | source, amd64, i386
blender | 2.78.a+dfsg0-4 | unstable | source, amd64, i386
```
2017-06-21 16:13:08 +02:00
## 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',
#
# Default architecture to use if none is specified on the command line.
# use --architecture='*' to run an unrestricted query when
# RMADISON_ARCHITECTURE is set.
# defaut RMADISON_ARCHITECTURE=source,i386,amd64,all
```