1dpkg-name(1)                      dpkg suite                      dpkg-name(1)
2
3
4

NAME

6       dpkg-name - rename Debian packages to full package names
7

SYNOPSIS

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

DESCRIPTION

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.package-type as
15       specified in the control file of the package. The version part  of  the
16       filename  consists  of  the  upstream  version  information  optionally
17       followed by a hyphen and the  revision  information.  The  package-type
18       part comes from that field if present or fallbacks to deb.
19

OPTIONS

21       -a, --no-architecture
22              The   destination   filename  will  not  have  the  architecture
23              information.
24
25       -k, --symlink
26              Create a symlink, instead of moving.
27
28       -o, --overwrite
29              Existing files will be overwritten if they have the same name as
30              the destination filename.
31
32       -s, --subdir [dir]
33              Files  will be moved into a subdirectory. If the directory given
34              as argument exists the files will be moved into  that  directory
35              otherwise the name of the target directory is extracted from the
36              section field in the control part of  the  package.  The  target
37              directory  will  be  «unstable/binary-architecture/section».  If
38              the section is not found in  the  control,  then  no-section  is
39              assumed,  and in this case, as well as for sections non-free and
40              contrib the target directory  is  «section/binary-architecture».
41              The section field is not required so a lot of packages will find
42              their way to the no-section area.  Use this  option  with  care,
43              it's messy.
44
45       -c, --create-dir
46              This  option  can  used together with the -s option. If a target
47              directory isn't found it will  be  created  automatically.   Use
48              this option with care.
49
50       -?, --help
51              Show the usage message and exit.
52
53       -v, --version
54              Show the version and exit.
55

BUGS

57       Some      packages      don't     follow     the     name     structure
58       package_version_architecture.deb.  Packages renamed by  dpkg-name  will
59       follow  this  structure.  Generally  this  will  have  no impact on how
60       packages are installed by dselect(1)/dpkg(1),  but  other  installation
61       tools might depend on this naming structure.
62

EXAMPLES

64       dpkg-name bar-foo.deb
65              The  file  bar-foo.deb will be renamed to bar-foo_1.0-2_i386.deb
66              or something similar (depending on whatever  information  is  in
67              the control part of bar-foo.deb).
68
69       find /root/debian/ -name '*.deb' | xargs -n 1 dpkg-name -a
70              All  files  with the extension deb in the directory /root/debian
71              and its subdirectory's will be renamed by dpkg-name if  required
72              into names with no architecture information.
73
74       find -name '*.deb' | xargs -n 1 dpkg-name -a -o -s -c
75              Don't  do  this.   Your  archive  will  be  messed up completely
76              because a lot of packages don't come with  section  information.
77              Don't do this.
78
79       dpkg-deb --build debian-tmp && dpkg-name -o -s .. debian-tmp.deb
80              This can be used when building new packages.
81

SEE ALSO

83       deb(5), deb-control(5), dpkg(1), dpkg-deb(1), find(1), xargs(1).
84
85
86
871.18.25                           2018-06-26                      dpkg-name(1)
Impressum