.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" 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 .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . 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 2024-01-19 1.22.3 "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 NAME dpkg\-name \- rename Debian packages to full package names .SH SYNOPSIS .IX Header "SYNOPSIS" \&\fBdpkg-name\fR [\fIoption\fR...] [\fB\-\-\fR] \&\fIfile\fR... .SH DESCRIPTION .IX Header "DESCRIPTION" This manual page documents the \&\fBdpkg-name\fR program which provides an easy way to rename \&\fBDebian\fR packages into their full package names. A full package name consists of \&\fIpackage\fR\fB_\fR\fIversion\fR\fB_\fR\fIarchitecture\fR\fB.\fR\fIpackage-type\fR as specified in the control file of the package. The \fIversion\fR part of the filename consists of the upstream version information optionally followed by a hyphen and the revision information. The \fIpackage-type\fR part comes from that field if present or fallbacks to \fBdeb\fR. .SH OPTIONS .IX Header "OPTIONS" .IP "\fB\-a\fR, \fB\-\-no\-architecture\fR" 4 .IX Item "-a, --no-architecture" The destination filename will not have the architecture information. .IP "\fB\-k\fR, \fB\-\-symlink\fR" 4 .IX Item "-k, --symlink" Create a symlink, instead of moving. .IP "\fB\-o\fR, \fB\-\-overwrite\fR" 4 .IX Item "-o, --overwrite" Existing files will be overwritten if they have the same name as the destination filename. .IP "\fB\-s\fR, \fB\-\-subdir\fR [\fIdir\fR]" 4 .IX Item "-s, --subdir [dir]" 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: Use this option with care, it is messy. .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: Use this option with care. .IP "\fB\-?\fR, \fB\-\-help\fR" 4 .IX Item "-?, --help" Show the usage message and exit. .IP "\fB\-v\fR, \fB\-\-version\fR" 4 .IX Item "-v, --version" Show the version and exit. .SH ENVIRONMENT .IX Header "ENVIRONMENT" .IP \fBDPKG_COLORS\fR 4 .IX Item "DPKG_COLORS" Sets the color mode (since dpkg 1.18.5). The currently accepted values are: \fBauto\fR (default), \fBalways\fR and \&\fBnever\fR. .IP \fBDPKG_NLS\fR 4 .IX Item "DPKG_NLS" If set, it will be used to decide whether to activate Native Language Support, also known as internationalization (or i18n) support (since dpkg 1.19.0). The accepted values are: \fB0\fR and \fB1\fR (default). .SH BUGS .IX Header "BUGS" Some packages don't follow the name structure \&\fIpackage\fR\fB_\fR\fIversion\fR\fB_\fR\fIarchitecture\fR\fB.deb\fR. Packages renamed by \fBdpkg-name\fR will follow this structure. Generally this will have no impact on how packages are installed by \&\fBdselect\fR\|(1)/\fBdpkg\fR\|(1), but other installation tools might depend on this naming structure. .SH EXAMPLES .IX Header "EXAMPLES" .IP "\fBdpkg-name bar\-foo.deb\fR" 4 .IX Item "dpkg-name bar-foo.deb" The file \fBbar\-foo.deb\fR will be renamed to bar\-foo_1.0\-2_i386.deb or something similar (depending on whatever information is in the control part of \fBbar\-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" All files with the extension \fBdeb\fR in the directory /root/debian and its subdirectory's will be renamed by \fBdpkg-name\fR if required into names with no architecture information. .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" \&\fBDon't do this.\fR Your archive will be messed up completely because a lot of packages don't come with section information. \&\fBDon't do this.\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" This can be used when building new packages. .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBdeb\fR\|(5), \&\fBdeb\-control\fR\|(5), \&\fBdpkg\fR\|(1), \&\fBdpkg\-deb\fR\|(1), \&\fBfind\fR\|(1), \&\fBxargs\fR\|(1).