Debian Codegraph @

doc/man/dput.1

raw
1 .ds command dput
2 .ds COMMAND DPUT
3 .\" ==========
4 .TH "\*[COMMAND]" 1 "2016-12-31" "Debian"
5 .
6 .\" ==========
7 .SH NAME
8 .B \*[command]
9 \- Debian package upload tool
10 .
11 .\" ==========
12 .SH SYNOPSIS
13 .
14 .SY \*[command]
15 .OP \-DPUVdflosu
16 .OP \-c CONFIGFILE
17 .OP \-e DAYS
18 .RI [ HOSTNAME ]
19 .I CHANGESFILE
20 \f[R].\|.\|.\f[]
21 .YS
22 .
23 .SY \*[command]
24 .OP \-d
25 .OP \-c CONFIGFILE
26 .B \-H
27 .YS
28 .
29 .SY \*[command]
30 .OP \-d
31 .OP \-c CONFIGFILE
32 .B \-p
33 .YS
34 .
35 .SY \*[command]
36 .B \-h
37 .YS
38 .
39 .SY \*[command]
40 .B \-v
41 .YS
42 .
43 .\" ==========
44 .SH DESCRIPTION
45 .
46 .P
47 Upload, to the Debian package upload queue, the files constituting the
48 package specified in each \f[I]CHANGESFILE\f[].
49 .
50 .P
51 A Debian package release comprises several files, specified in the
52 \f[I]CHANGESFILE\f[] for that release. The Debian Package Upload Tool
53 .RB ( \*[command] )
54 performs several verification checks on the package, then (if the
55 verifications succeed) uploads those files to the remote Debian
56 package repository.
57 .
58 See \f[B]VERIFICATION CHECKS\f[], below, for a description of the checks
59 .B \*[command]
60 can perform on each package.
61 .
62 .P
63 \f[I]HOSTNAME\f[] is a name matching a host section in the
64 .BR dput.cf (5)
65 configuration. If not specified, \f[I]HOSTNAME\f[] defaults to the
66 value of the \f[B]default_host_main\f[] configuration parameter.
67 .
68 .P
69 The file transfer method is determined by the \f[B]method\f[]
70 configuration parameter for the specified host. See
71 .BR dput.cf (5)
72 for the set of supported \f[B]method\f[] values.
73 .
74 .P
75 If the configuration specifies a \f[B]pre_upload_command\f[] for the
76 remote host, execute a shell subprocess for that command before
77 attempting to upload each package.
78 .
79 .P
80 If the configuration specifies a \f[B]post_upload_command\f[] for the
81 remote host, execute a shell subprocess for that command after each
82 successful package upload.
83 .
84 .\" ==========
85 .SH VERIFICATION CHECKS
86 .
87 .P
88 Each package release, as specified by a \f[I]CHANGESFILE\f[], is
89 checked to see whether it is suitable for upload. The following checks
90 are available:
91 .
92 .TP
93 Unique upload
94 .
95 The package should not already have been uploaded to the remote host
96 \f[I]HOSTNAME\f[].
97 .
98 .IP ""
99 Check for the log file created when
100 .B \*[command]
101 successfully uploads a package. If the corresponding log file already
102 exists, abort the upload attempt.
103 .
104 This is unique only for the combination of local machine (where the
105 upload log is recorded), the \f[I]CHANGESFILE\f[] name, and the remote
106 \f[I]HOSTNAME\f[].
107 .
108 .IP ""
109 This check is disabled if the \f[B]\-\-force\f[] option is specified.
110 .
111 .TP
112 Required package files
113 .
114 The package should comprise the required files for the type of package.
115 .
116 .IP ""
117 If this is a source package release, and the required source control
118 file (\f[I]….dsc\f[]) is not part of the package, abort the upload
119 attempt.
120 .
121 .IP ""
122 If this is a source package release, and the version string implies
123 that this is the first Debian release for this version, and the
124 corresponding source tarball is not part of the package, abort the
125 upload attempt.
126 .
127 .IP ""
128 If the package contains the upstream source tarball, but this is not
129 required for this release, emit a warning that the upload might be
130 rejected by the remote host.
131 .
132 .IP ""
133 If the package contains the Debian-native source tarball, but this is
134 not required for this release, emit a warning that the upload might be
135 rejected by the remote host.
136 .
137 .TP
138 Successful local install
139 .
140 The package should be successfully installed on the local system.
141 .
142 .IP ""
143 If this is a binary package release, and each binary package
144 (\f[I]…\f[B].deb\f[] file) is not successfully installed on the local
145 system at the specified version, abort the upload.
146 .
147 .IP ""
148 This check is disabled by default. It is enabled when the
149 configuration parameter \f[B]check_version\f[] is true.
150 .
151 .TP
152 Cryptographic signature
153 .
154 The GnuPG signature on the \f[I]CHANGESFILE\f[] should match that file's contents.
155 .
156 If this is a source package release, the GnuPG signature on the source
157 control file (\f[I]…\f[B].dsc\f[]) should match that file's contents.
158 .
159 .IP ""
160 If GnuPG does not report a good signature for these files, abort the upload.
161 .
162 .IP ""
163 This check is disabled when either the \f[B]allow_unsigned_uploads\f[]
164 parameter is true, or the \f[B]\-\-check\-only\f[] option is
165 specified.
166 .
167 .TP
168 Package files content match
169 .
170 The computed size and hash values for each constituent file should
171 match the values specified in \f[I]CHANGESFILE\f[].
172 .
173 .IP ""
174 For each file size and hash value specified in \f[I]CHANGESFILE\f[],
175 compute the size and hash using the corresponding named file's
176 contents on the filesystem.
177 .
178 If any computed size or hash value does not match the corresponding
179 value in \f[I]CHANGESFILE\f[], abort the upload.
180 .
181 .TP
182 Distribution name is permitted for the remote host
183 .
184 The configuration for \f[I]HOSTNAME\f[] should permit the distribution
185 name specified in the package.
186 .
187 .IP ""
188 If the package release's target Debian distribution name is not one
189 specified by the \f[B]distributions\f[] parameter for the
190 \f[I]HOSTNAME\f[], abort the upload attempt.
191 .
192 See
193 .BR dput.cf (5)
194 for the \f[B]distributions\f[] parameter.
195 .
196 .TP
197 Lintian success
198 .
199 The package should get a successful report from Lintian.
200 .
201 .IP ""
202 Invoke the Lintian tool to check the package described by
203 \f[I]CHANGESFILE\f[]. If the check is unsuccessful (exit status
204 non-zero), abort the upload attempt.
205 .
206 .IP ""
207 This check is disabled by default. It is enabled when the
208 configuration parameter \f[B]run_lintian\f[] is true, or the
209 \f[B]\-\-lintian\f[] option is specified.
210 .
211 .\" ==========
212 .SH OPTIONS
213 .
214 .TP
215 .BI \-c " CONFIGFILE"
216 .TQ
217 .BI \-\-config " CONFIGFILE"
218 Use the file \f[I]CONFIGFILE\f[] for configuration.
219 .
220 See
221 .BR dput.cf (5)
222 for the specification of this file format.
223 .
224 .TP
225 .B \-d
226 .TQ
227 .B \-\-debug
228 Display debugging messages.
229 .
230 .TP
231 .B \-D
232 .TQ
233 .B \-\-dinstall
234 Request a dry run of
235 .B dinstall
236 on the remote host after the upload.
237 .
238 .TP
239 .B \-f
240 .TQ
241 .B \-\-force
242 Disable the check for a unique upload.
243 .
244 See
245 .BR "VERIFICATION CHECKS" ,
246 above, for a description of this check.
247 .
248 .TP
249 .B \-h
250 .TQ
251 .B \-\-help
252 Display help information, then exit.
253 .
254 .TP
255 .B \-H
256 .TQ
257 .B \-\-host\-list
258 Display the lists of hosts known to the configuration, then exit.
259 .
260 See
261 .BR dput.cf (5)
262 for the specification of hosts.
263 .
264 .TP
265 .B \-l
266 .TQ
267 .B \-\-lintian
268 Enable the Lintian verification check, and exit if the check fails.
269 .
270 See
271 .BR "VERIFICATION CHECKS" ,
272 above, for a description of this check.
273 .
274 .TP
275 .B \-U
276 .TQ
277 .B \-\-no\-upload\-log
278 Do not write a log file when uploading files.
279 .
280 .IP ""
281 This omits the record used later for checking whether an upload is unique.
282 .
283 See
284 .BR "VERIFICATION CHECKS" ,
285 above, for a description of this check.
286 .
287 .TP
288 .BR \-o
289 .TQ
290 .B \-\-check\-only
291 Do not upload the files, and disable the checks for unique upload and
292 cryptographic signature.
293 .
294 See
295 .BR "VERIFICATION CHECKS" ,
296 above, for a description of these checks.
297 .
298 .TP
299 .B \-p
300 .TQ
301 .B \-\-print
302 Display the configuration that \f[B]\*[command]\f[] is using, then exit.
303 .
304 See
305 .BR dput.cf (5)
306 for the configuration format.
307 .
308 .TP
309 .B \-P
310 .TQ
311 .B \-\-passive
312 Use passive mode for FTP.
313 .
314 If not specified, default for FTP is active mode.
315 .
316 .TP
317 .B \-s
318 .TQ
319 .B \-\-simulate
320 Do not actually upload to the remote host.
321 .
322 .TP
323 .B \-u
324 .TQ
325 .B \-\-unchecked
326 Disable the check for cryptographic signature.
327 .
328 See
329 .BR "VERIFICATION CHECKS" ,
330 above, for a description of this check.
331 .
332 .TP
333 .BI \-e " DAYS"
334 .TQ
335 .BI \-\-delayed " DAYS"
336 Upload to a \f[B]DELAYED\f[] queue, rather than the usual
337 \f[B]Incoming\f[].
338 .
339 This takes a \f[I]DAYS\f[] argument from 0 to 15. Note that a delay of
340 0 is different from no delay at all.
341 .
342 .TP
343 .B \-v
344 .TQ
345 .B \-\-version
346 Display version information, then exit.
347 .
348 .TP
349 .B \-V
350 .TQ
351 .B \-\-check\-version
352 Enable the check for successful local install.
353 .
354 See
355 .BR "VERIFICATION CHECKS" ,
356 above, for a description of this check.
357 .
358 .\" ==========
359 .SH ENVIRONMENT
360 .
361 .TP
362 .B USER
363 .
364 If no username is specified for authenticating to the remote host, use
365 the value of this variable.
366 .
367 .\" ==========
368 .SH FILES
369 .
370 .TP
371 Configuration
372 .
373 See
374 .BR dput.cf (5)
375 for the files to configure
376 .B \*[command].
377 .
378 .TP
379 .B \f[I]path\f[]/\f[I]basename\f[].\f[I]HOSTNAME\f[].upload
380 The log file that contains a record of the successful upload to
381 \f[I]HOSTNAME\f[].
382 .
383 .IP ""
384 \f[I]path\f[] is the directory path of \f[I]CHANGESFILE\f[].
385 .
386 .IP ""
387 \f[I]basename\f[] is derived from the \f[I]CHANGESFILE\f[] filename,
388 by removing the directory path and the \f[B].changes\f[] suffix.
389 .
390 .\" ==========
391 .SH SEE ALSO
392 .
393 .BR dput.cf (5),
394 .BR dcut (1),
395 .BR lintian (1)
396 .
397 .P
398 .UR file:///usr/share/doc/dput/
399 \[oq]dput\[cq] package documentation
400 .UE ,
401 .UR file:///usr/share/dput/
402 \[oq]dput\[cq] program files
403 .UE .
404 .
405 .\" Copyright © 2016–2026 Ben Finney <[email protected]>
406 .
407 .\" This is free software: you may copy, modify, and/or distribute this work
408 .\" under the terms of the GNU General Public License as published by the
409 .\" Free Software Foundation; version 3 of that license or any later version.
410 .\" No warranty expressed or implied. See the file ‘LICENSE.GPL-3’ for details.
411 .
412 .\" Local variables:
413 .\" coding: utf-8
414 .\" mode: nroff
415 .\" End:
416 .\" vim: fileencoding=utf-8 filetype=nroff :