.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "dpkg-name 1" .TH dpkg-name 1 "2022-09-01" "1.20.12" "dpkg suite" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NOM" .IX Header "NOM" dpkg-name \- Redonne aux paquets Debian leur nom complet .SH "SYNOPSIS" .IX Header "SYNOPSIS" \&\fBdpkg-name\fR [\fIoption\fR...] [\fB\-\-\fR] \fIfichier\fR... .SH "DESCRIPTION" .IX Header "DESCRIPTION" Cette page de manuel documente le programme \fBdpkg-name\fR qui fournit une fa\(,con simple de redonner aux paquets \fBDebian\fR leur nom complet. Ce nom consiste en une cha\(^ine \&\fIpaquet\fR\fB_\fR\fIversion\fR\fB_\fR\fIarchitecture\fR\fB.\fR\fItype-de-paquet\fR telle qu'elle est indiqu\('ee dans le fichier \(Fo control \(Fc du paquet. La partie \&\fIversion\fR du nom est compos\('ee d'informations sur la version originelle qui peuvent ou non \(^etre suivies d'un trait d'union et d'informations sur la r\('evision. La partie \fItype-de-paquet\fR provient de ce champ s'il existe. La valeur par d\('efaut est \fBdeb\fR. .SH "OPTIONS" .IX Header "OPTIONS" .IP "\fB\-a\fR, \fB\-\-no\-architecture\fR" 4 .IX Item "-a, --no-architecture" Le nom du fichier n'aura pas l'information sur l'architecture. .IP "\fB\-k\fR, \fB\-\-symlink\fR" 4 .IX Item "-k, --symlink" Fait un lien symbolique plut\(^ot qu'une transposition. .IP "\fB\-o\fR, \fB\-\-overwrite\fR" 4 .IX Item "-o, --overwrite" Remplace des fichiers existants s'ils ont le m\(^eme nom que le fichier de destination. .IP "\fB\-s\fR, \fB\-\-subdir\fR [\fIrep\fR]" 4 .IX Item "-s, --subdir [rep]" Files will be moved into a subdirectory. If the directory given as argument exists the files will be moved into that directory otherwise the name of the target directory is extracted from the section field in the control part of the package. The target directory will be \(Founstable/binary\-\fIarchitecture\fR/\fIsection\fR\(Fc. If the section is not found in the control, then \fBno-section\fR is assumed, and in this case, as well as for sections \fBnon-free\fR and \fBcontrib\fR the target directory is \(Fo\fIsection\fR/binary\-\fIarchitecture\fR\(Fc. The section field is not required so a lot of packages will find their way to the \fBno-section\fR area. .Sp \&\fBWarning:\fR \fIUse this option with care, it is messy.\fR .IP "\fB\-c\fR, \fB\-\-create\-dir\fR" 4 .IX Item "-c, --create-dir" This option can used together with the \fB\-s\fR option. If a target directory isn't found it will be created automatically. .Sp \&\fBWarning:\fR \fIUse this option with care.\fR .IP "\fB\-?\fR, \fB\-\-help\fR" 4 .IX Item "-?, --help" Affiche un message d'aide puis quitte. .IP "\fB\-v\fR, \fB\-\-version\fR" 4 .IX Item "-v, --version" Affiche le num\('ero de version puis quitte. .SH "ENVIRONNEMENT" .IX Header "ENVIRONNEMENT" .IP "\fB\s-1DPKG_COLORS\s0\fR" 4 .IX Item "DPKG_COLORS" D\('efinit le mode de couleur (depuis dpkg 1.18.5). Les valeurs actuellement accept\('ees sont \fBauto\fR (par d\('efaut), \fBalways\fR et \fBnever\fR. .IP "\fB\s-1DPKG_NLS\s0\fR" 4 .IX Item "DPKG_NLS" Si cette variable est d\('efinie, elle sera utilis\('ee pour d\('ecider l'activation de la prise en charge des langues (\s-1NLS\s0 \(en Native Language Support), connu aussi comme la gestion de l'internationalisation (ou i18n) (depuis dpkg 1.19.0). Les valeurs permises sont : \fB0\fR et \fB1\fR (par d\('efaut). .SH "BOGUES" .IX Header "BOGUES" Certains paquets ne respectent pas l'organisation \&\fIpaquet\fR\fB_\fR\fIversion\fR\fB_\fR\fIarchitecture\fR\fB.deb\fR. Les paquets trait\('es par \&\fBdpkg-name\fR la respectent. Cela n'a pas de cons\('equence sur la fa\(,con dont \&\fBdselect\fR(1) ou \fBdpkg\fR(1) installent les paquets, mais il se peut que d'autres syst\(`emes d'installation aient besoin de cette organisation. .SH "EXEMPLES" .IX Header "EXEMPLES" .IP "\fBdpkg-name bar\-foo.deb\fR" 4 .IX Item "dpkg-name bar-foo.deb" Le nom du fichier \fIbar\-foo.deb\fR devient \fIbar\-foo_1.0\-2_i386.deb\fR ou quelque chose de similaire suivant les renseignements que contient la partie de contr\(^ole de \fIbar\-foo.deb\fR. .IP "\fBfind /root/debian/ \-name '*.deb' | xargs \-n 1 dpkg-name \-a\fR" 4 .IX Item "find /root/debian/ -name '*.deb' | xargs -n 1 dpkg-name -a" Cette commande \fBdpkg-name\fR redonne leur nom complet \(`a tous les fichiers qui se trouvent dans le r\('epertoire /root/debian et ses sous\-r\('epertoires et qui poss\(`edent une extension \fBdeb\fR, mais supprime l'information sur l'architecture. .IP "\fBfind \-name '*.deb' | xargs \-n 1 dpkg-name \-a \-o \-s \-c\fR" 4 .IX Item "find -name '*.deb' | xargs -n 1 dpkg-name -a -o -s -c" \&\fBNe faites pas \(,ca !\fR L'archive sera compl\(`etement g\(^ach\('ee par des paquets qui ne poss\(`edent pas d'informations sur la section. \fBNe faites pas \(,ca !\fR .IP "\fBdpkg-deb \-\-build debian-tmp && dpkg-name \-o \-s .. debian\-tmp.deb\fR" 4 .IX Item "dpkg-deb --build debian-tmp && dpkg-name -o -s .. debian-tmp.deb" On peut se servir de cette commande lors de la construction d'un nouveau paquet. .SH "VOIR AUSSI" .IX Header "VOIR AUSSI" \&\fBdeb\fR(5), \fBdeb-control\fR(5), \fBdpkg\fR(1), \fBdpkg-deb\fR(1), \fBfind\fR(1), \&\fBxargs\fR(1). .SH "TRADUCTION" .IX Header "TRADUCTION" Ariel \s-1VARDI\s0 , 2002. Philippe Batailler, 2006. Nicolas Fran\(,cois, 2006. Veuillez signaler toute erreur \(`a .