1dpkg-name(1) dpkg utilities dpkg-name(1)
2
3
4
6 dpkg-name - rename Debian packages to full package names
7
9 dpkg-name [options] [--] files
10
12 This manual page documents the dpkg-name program which provides an easy
13 way to rename Debian packages into their full package names. A full
14 package name consists of <package>_<version>_<architecture>.<pack‐
15 age_type> as specified in the control file of the package. The <ver‐
16 sion> part of the filename consists of the upstream version information
17 optionally followed by a hyphen and the revision information. The
18 <package_type> part comes from that field if present or fallbacks to
19 deb.
20
22 -a, --no-architecture
23 The destination filename will not have the architecture informa‐
24 tion.
25
26 -k, --symlink
27 Create a symlink, instead of moving.
28
29 -o, --overwrite
30 Existing files will be overwritten if they have the same name as
31 the destination filename.
32
33 -s, --subdir [dir]
34 Files will be moved into a subdirectory. If the directory given
35 as argument exists the files will be moved into that directory
36 otherwise the name of the target directory is extracted from the
37 section field in the control part of the package. The target
38 directory will be `unstable/binary-<architecture>/<section>'. If
39 the section is not found in the control, then `no-section' is
40 assumed, and in this case, as well as for sections `non-free'
41 and `contrib' the target directory is `<section>/binary-<archi‐
42 tecture>'. The section field isn't required so a lot of packages
43 will find their way to the `no-section' area. Use this option
44 with care, it's messy.
45
46 -c, --create-dir
47 This option can used together with the -s option. If a target
48 directory isn't found it will be created automatically. Use
49 this option with care.
50
51 -h, --help
52 Show the usage message and exit.
53
54 -v, --version
55 Show the version and exit.
56
57 -l, --license
58 Show the copyright licensing terms and exit.
59
61 dpkg-name bar-foo.deb
62 The file `bar-foo.deb' will be renamed to bar-foo_1.0-2_i386.deb
63 or something similar (depending on whatever information is in
64 the control part of `bar-foo.deb').
65
66 find /root/debian/ -name '*.deb' | xargs -n 1 dpkg-name -a
67 All files with the extension `deb' in the directory /root/debian
68 and its subdirectory's will be renamed by dpkg-name if required
69 into names with no architecture information.
70
71 find -name '*.deb' | xargs -n 1 dpkg-name -a -o -s -c
72 Don't do this. Your archive will be messed up completely
73 because a lot of packages don't come with section information.
74 Don't do this.
75
76 dpkg --build debian-tmp && dpkg-name -o -s .. debian-tmp.deb
77 This can be used when building new packages.
78
80 Some packages don't follow the name structure <package>_<ver‐
81 sion>_<architecture>.deb. Packages renamed by dpkg-name will follow
82 this structure. Generally this will have no impact on how packages are
83 installed by dselect(1)/ dpkg(1), but other installation tools might
84 depend on this naming structure.
85
87 deb(5), deb-control(5), dpkg(1), dpkg-deb(1), find(1), xargs(1).
88
90 Copyright © 1995,1996 Erick Branderhorst
91
92 This is free software; see the GNU General Public Licence version 2 or
93 later for copying conditions. There is NO WARRANTY.
94
95
96
97Debian Project 2008-08-18 dpkg-name(1)