Linux "dpkg-name" Command Line Options and Examples
rename Debian packages to full package names

This manual page documents the dpkg-name program which provides an easy way to rename Debian packages into their full package names. A full package name consists of package_version_architecture.package-type as specified in the control file of the package.


Usage:

dpkg-name [option...] [--] file...






Command Line Options:

-a
The destination filename will not have the architecture information.
dpkg-name -a ...
-k
Create a symlink, instead of moving.
dpkg-name -k ...
-o
Existing files will be overwritten if they have the same name as the destination filename.
dpkg-name -o ...
-s
Files will be moved into a subdirectory. If the directory given as argument exists the files will be moved into that directoryotherwise the name of the target directory is extracted from the section field in the control part of the package. The targetdirectory will be «unstable/binary-architecture/section». If the section is not found in the control, then no-section isassumed, and in this case, as well as for sections non-free and contrib the target directory is «section/binary-architecture».The section field is not required so a lot of packages will find their way to the no-section area. Use this option with care,it's messy.
dpkg-name -s ...
-c
This option can used together with the -s option. If a target directory isn't found it will be created automatically. Usethis option with care.
dpkg-name -c ...
-?
Show the usage message and exit.
dpkg-name -? ...
-v
Show the version and exit.BUGSSome packages don't follow the name structure package_version_architecture.deb. Packages renamed by dpkg-name will follow thisstructure. Generally this will have no impact on how packages are installed by dselect(1)/dpkg(1), but other installation tools mightdepend on this naming structure.EXAMPLESdpkg-name bar-foo.debThe file bar-foo.deb will be renamed to bar-foo_1.0-2_i386.deb or something similar (depending on whatever information is inthe control part of bar-foo.deb).find /root/debian/ -name '*.deb' | xargs -n 1 dpkg-name -aAll files with the extension deb in the directory /root/debian and its subdirectory's will be renamed by dpkg-name if requiredinto names with no architecture information.find -name '*.deb' | xargs -n 1 dpkg-name -a -o -s -cDon't do this. Your archive will be messed up completely because a lot of packages don't come with section information.Don't do this.dpkg-deb --build debian-tmp && dpkg-name -o -s .. debian-tmp.debThis can be used when building new packages.
dpkg-name -v ...