version 4, including all changes.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
dpkg-name |
|
|
2 |
!!!dpkg-name |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
EXAMPLES |
|
|
7 |
BUGS |
|
|
8 |
SEE ALSO |
|
|
9 |
COPYRIGHT |
|
|
10 |
---- |
|
|
11 |
!!NAME |
|
|
12 |
|
|
|
13 |
|
|
|
14 |
dpkg-name - rename Debian packages to full package names |
|
|
15 |
!!SYNOPSIS |
|
|
16 |
|
|
|
17 |
|
|
|
18 |
__dpkg-name__ [[-a|--no-architecture] [[-o|--overwrite] |
|
|
19 |
[[-s|--subdir [[dir]] [[-c|--create-dir] [[-h|--help] |
|
|
20 |
[[-v|--version] [[-l|--license] [[-k|--symlink] [[-[[--] |
|
|
21 |
[[files] |
|
|
22 |
!!DESCRIPTION |
|
|
23 |
|
|
|
24 |
|
|
|
25 |
This manual page documents the __dpkg-name__ sh script |
|
|
26 |
which provides an easy way to rename __Debian__ packages |
|
|
27 |
into their full package names. A full package name consists |
|
|
28 |
of |
|
|
29 |
__ |
|
|
30 |
!!EXAMPLES |
|
|
31 |
|
|
|
32 |
|
|
|
33 |
__dpkg-name bar-foo.deb__ |
|
|
34 |
|
|
|
35 |
|
|
|
36 |
The file `bar-foo.deb' will be renamed to |
|
|
37 |
bar-foo_1.0-2_i386.deb or something similar (depending on |
|
|
38 |
whatever information is in the control part of |
|
|
39 |
`bar-foo.deb'). |
|
|
40 |
|
|
|
41 |
|
|
|
42 |
__find /root/debian/ -name '*.deb' | xargs -n 1 dpkg-name |
|
|
43 |
-a__ |
|
|
44 |
|
|
|
45 |
|
|
|
46 |
All files with the extension `deb' in the directory |
|
|
47 |
/root/debian and its subdirectory's will be renamed by |
|
|
48 |
dpkg-name if required into names with no architecture |
|
|
49 |
information. |
|
|
50 |
|
|
|
51 |
|
|
|
52 |
__find -name '*.deb' | xargs -n 1 dpkg-name -a -o -s |
|
|
53 |
-c__ |
|
|
54 |
|
|
|
55 |
|
|
|
56 |
__Don't do this.__ Your archive will be messed up |
|
|
57 |
completely because a lot of packages don't come with section |
|
|
58 |
information. __Don't do this.__ |
|
|
59 |
|
|
|
60 |
|
|
|
61 |
__dpkg --build debian-tmp |
|
|
62 |
__ |
|
|
63 |
|
|
|
64 |
|
|
|
65 |
This can be used when building new packages. |
|
|
66 |
|
|
|
67 |
|
|
|
68 |
__OPTIONS__ |
|
|
69 |
|
|
|
70 |
|
|
|
71 |
__-a, --no-architecture__ |
|
|
72 |
|
|
|
73 |
|
|
|
74 |
The destination filename will not have the architecture |
|
|
75 |
information. |
|
|
76 |
|
|
|
77 |
|
|
|
78 |
__-k, --symlink__ |
|
|
79 |
|
|
|
80 |
|
|
|
81 |
Create a symlink, instead of moving. |
|
|
82 |
|
|
|
83 |
|
|
|
84 |
__-o, --overwrite__ |
|
|
85 |
|
|
|
86 |
|
|
|
87 |
Existing files will be overwritten if they have the same |
|
|
88 |
name as the destination filename. |
|
|
89 |
|
|
|
90 |
|
|
|
91 |
__-s, --subdir [[dir]__ |
|
|
92 |
|
|
|
93 |
|
|
|
94 |
Files will be moved into subdir. If directory given as |
|
|
95 |
argument exists the files will be moved into that direcotory |
|
|
96 |
otherswise the name of the target directory is extracted |
|
|
97 |
from the section field in the control part of the package. |
|
|
98 |
The target directory will be |
|
|
99 |
`unstable/binary- |
|
|
100 |
|
|
|
101 |
|
|
|
102 |
__-c, --create-dir__ |
|
|
103 |
|
|
|
104 |
|
|
|
105 |
This option can used together with the -s option. If a |
|
|
106 |
target directory isn't found it will be created |
|
|
107 |
automatically. __Use this option with |
|
|
108 |
care.__ |
|
|
109 |
|
|
|
110 |
|
|
|
111 |
__-h, --help__ |
|
|
112 |
|
|
|
113 |
|
|
|
114 |
Print a usage message and exit successfully. |
|
|
115 |
|
|
|
116 |
|
|
|
117 |
__-v, --version__ |
|
|
118 |
|
|
|
119 |
|
|
|
120 |
Print version information and exit |
|
|
121 |
successfully. |
|
|
122 |
|
|
|
123 |
|
|
|
124 |
__-l, --license__ |
|
|
125 |
|
|
|
126 |
|
|
|
127 |
Print copyright information and (a reference to GNU) license |
|
|
128 |
information and exit successfully. |
|
|
129 |
!!BUGS |
|
|
130 |
|
|
|
131 |
|
|
|
132 |
Some packages don't follow the name structure |
|
|
133 |
!!SEE ALSO |
|
|
134 |
|
|
|
135 |
|
4 |
perry |
136 |
deb(5), deb-control(5), dpkg(5), |
|
|
137 |
dpkg(8), dpkg-deb(1), find(1), |
1 |
perry |
138 |
xargs(1). |
|
|
139 |
!!COPYRIGHT |
|
|
140 |
|
|
|
141 |
|
|
|
142 |
Copyright 1995,1996 Erick Branderhorst. __dpkg-name__ is |
|
|
143 |
free software; see the GNU General Public Licence version 2 |
|
|
144 |
or later for copying conditions. There is __no__ |
|
|
145 |
warranty. |
|
|
146 |
---- |