| 1 |
.ds command dcut |
| 2 |
.ds COMMAND DCUT |
| 3 |
.\" ========== |
| 4 |
.TH "\*[COMMAND]" 1 "2026-05-14" "Debian" |
| 5 |
. |
| 6 |
.\" ========== |
| 7 |
.SH NAME |
| 8 |
.B \*[command] |
| 9 |
\- Debian command upload tool for the archive upload queue |
| 10 |
. |
| 11 |
.\" ========== |
| 12 |
.SH SYNOPSIS |
| 13 |
. |
| 14 |
.SY \*[command] |
| 15 |
.OP \-Pds |
| 16 |
.OP \-c CONFIGFILE |
| 17 |
.OP \-k KEYID |
| 18 |
.OP \-m MAINTAINER |
| 19 |
.OP \-O COMMANDFILE |
| 20 |
\f[R][\f[] |
| 21 |
.RB [ \-\-host ] |
| 22 |
.IR HOSTNAME ] |
| 23 |
.I COMMAND |
| 24 |
.RB [ , |
| 25 |
.IR COMMAND ] |
| 26 |
\f[R].\|.\|.\f[] |
| 27 |
.YS |
| 28 |
. |
| 29 |
.SY \*[command] |
| 30 |
.OP \-Pds |
| 31 |
.OP \-c CONFIGFILE |
| 32 |
.OP \-k KEYID |
| 33 |
.OP \-m MAINTAINER |
| 34 |
.OP \-O COMMANDFILE |
| 35 |
\f[R][\f[] |
| 36 |
.RB [ \-\-host ] |
| 37 |
.IR HOSTNAME ] |
| 38 |
.B \-i |
| 39 |
.I CHANGESFILE |
| 40 |
.YS |
| 41 |
. |
| 42 |
.SY \*[command] |
| 43 |
.OP \-Pds |
| 44 |
.OP \-c CONFIGFILE |
| 45 |
\f[R][\f[] |
| 46 |
.RB [ \-\-host ] |
| 47 |
.IR HOSTNAME ] |
| 48 |
.B \-U |
| 49 |
.I COMMANDFILE |
| 50 |
.YS |
| 51 |
. |
| 52 |
.SY \*[command] |
| 53 |
.B \-h |
| 54 |
.YS |
| 55 |
. |
| 56 |
.SY \*[command] |
| 57 |
.B \-v |
| 58 |
.YS |
| 59 |
. |
| 60 |
.\" ========== |
| 61 |
.SH DESCRIPTION |
| 62 |
. |
| 63 |
.P |
| 64 |
.B \*[command] |
| 65 |
creates and / or uploads Debian queue commands files for a Debian |
| 66 |
repository upload queue. |
| 67 |
. |
| 68 |
It is a companion for |
| 69 |
.BR dput (1) |
| 70 |
and uses dput configuration files (see \f[B]FILES\f[], below). |
| 71 |
. |
| 72 |
.P |
| 73 |
The normal workflow is: |
| 74 |
. |
| 75 |
.IP \[bu] |
| 76 |
Determine the queue control commands. |
| 77 |
. |
| 78 |
.IP \[bu] |
| 79 |
Compose the batch of commands to upload. |
| 80 |
. |
| 81 |
.IP \[bu] |
| 82 |
Determine the hostname of the queue host. |
| 83 |
. |
| 84 |
.IP \[bu] |
| 85 |
Upload the commands to the queue host. |
| 86 |
. |
| 87 |
.SS Determine queue control commands |
| 88 |
. |
| 89 |
.P |
| 90 |
In the default command-line syntax, parse each command-line argument |
| 91 |
\f[I]COMMAND\f[], in the format needed by a Debian archive queue |
| 92 |
manager. |
| 93 |
. |
| 94 |
Multiple queue commands must be separated by a comma |
| 95 |
.RB ( , ) |
| 96 |
as a separate word between each command. |
| 97 |
. |
| 98 |
.P |
| 99 |
See \f[B]COMMANDS\f[] below for valid queue commands. |
| 100 |
. |
| 101 |
.P |
| 102 |
When the \f[I]CHANGESFILE\f[] parameter is specified, instead parse |
| 103 |
that file and compose a \f[B]rm\f[] command for each file specified in |
| 104 |
\f[I]CHANGESFILE\f[]. |
| 105 |
. |
| 106 |
.P |
| 107 |
If the |
| 108 |
.B \-\-upload |
| 109 |
.RB ( \-U ) |
| 110 |
option is specified, instead read the queue control commands from the |
| 111 |
file \f[I]COMMANDFILE\f[]. |
| 112 |
. |
| 113 |
.SS Compose the batch of commands |
| 114 |
. |
| 115 |
.P |
| 116 |
The \f[B]Uploader\f[] field in the batch is set to the package |
| 117 |
maintainer specification \f[I]MAINTAINER\f[]. |
| 118 |
. |
| 119 |
If not specified, the value of \f[I]MAINTAINER\f[] is derived from |
| 120 |
environment variables (see \f[B]ENVIRONMENT\f[], below). |
| 121 |
. |
| 122 |
.P |
| 123 |
The \f[B]Commands\f[] field in the batch is set to the sequence of |
| 124 |
queue control commands determined. |
| 125 |
. |
| 126 |
.P |
| 127 |
If the |
| 128 |
.B \-\-output |
| 129 |
.RB ( \-O ) |
| 130 |
option is specified, write the batch to the file named by its |
| 131 |
\f[I]COMMANDFILE\f[] argument. |
| 132 |
. |
| 133 |
Otherwise, write the batch to a temporary file and remove it after |
| 134 |
upload. |
| 135 |
. |
| 136 |
.P |
| 137 |
After writing the batch of commands to a file, sign the file with |
| 138 |
.BR debsign (1). |
| 139 |
. |
| 140 |
The \f[I]MAINTAINER\f[] and \f[I]KEYID\f[] parameters, if specified, |
| 141 |
are passed to the |
| 142 |
.B debsign |
| 143 |
command. |
| 144 |
. |
| 145 |
.P |
| 146 |
If the |
| 147 |
.B \-\-upload |
| 148 |
.RB ( \-U ) |
| 149 |
option is specified, do not compose the batch of commands; instead use |
| 150 |
the content of its \f[I]COMMANDFILE\f[] argument as the name of the |
| 151 |
command file to upload to the queue host. |
| 152 |
. |
| 153 |
.SS Determine the queue host |
| 154 |
. |
| 155 |
The \f[I]HOSTNAME\f[] must match one of the named hosts in the |
| 156 |
configuration (see |
| 157 |
.BR dput.cf (5)). |
| 158 |
. |
| 159 |
The value is determined as follows: |
| 160 |
. |
| 161 |
.IP \[bu] |
| 162 |
If the \f[B]\-\-host\f[] option is specified, use that option's |
| 163 |
\f[I]HOSTNAME\f[] argument. |
| 164 |
. |
| 165 |
.IP \[bu] |
| 166 |
If the first non-option argument is not a valid queue command, that is |
| 167 |
interpreted as the \f[I]HOSTNAME\f[]. |
| 168 |
. |
| 169 |
.IP \[bu] |
| 170 |
Otherwise, \f[I]HOSTNAME\f[] defaults to the value of the |
| 171 |
.B default_host_main |
| 172 |
configuration parameter. |
| 173 |
. |
| 174 |
.SS Upload queue commands |
| 175 |
. |
| 176 |
.P |
| 177 |
Upload the composed batch of queue commands to the queue host |
| 178 |
\f[I]HOSTNAME\f[], using the parameters in the |
| 179 |
.BR dput.cf (5) |
| 180 |
configuration for that host. |
| 181 |
. |
| 182 |
.P |
| 183 |
If the |
| 184 |
.B \-\-output |
| 185 |
.RB ( \-O ) |
| 186 |
option is specified, do not upload the commands to the queue host. |
| 187 |
Instead, leave the composed file \f[I]COMMANDFILE\f[] on the |
| 188 |
filesystem. |
| 189 |
. |
| 190 |
.\" ========== |
| 191 |
.SH COMMANDS |
| 192 |
. |
| 193 |
.P |
| 194 |
Presently supported commands are: |
| 195 |
. |
| 196 |
.TP |
| 197 |
.B rm |
| 198 |
Remove files from the UploadQueue directories. |
| 199 |
. |
| 200 |
\f[B]\*[command]\f[] generates commands that search the subdirectories |
| 201 |
automatically, but you can also specify \f[B]\-\-nosearchdirs\f[] and |
| 202 |
then target individual UploadQueue directories, i.e. either filenames |
| 203 |
without path for regular incoming or |
| 204 |
\f[B]DELAYED/\f[]\f[I]DAYS\f[]\f[B]-day\f[]\f[B]/\f[]\f[I]filename\f[]. |
| 205 |
. |
| 206 |
Wildcards are accepted. |
| 207 |
. |
| 208 |
.TP |
| 209 |
.BI reschedule " CHANGESFILE_NAME DAYS" -day |
| 210 |
Move an upload from any \f[B]DEFERRED\f[] queue to |
| 211 |
.IB DAYS -day |
| 212 |
(use \fB0-day\fR for immediate processing). |
| 213 |
. |
| 214 |
.TP |
| 215 |
.BI cancel " CHANGESFILE_NAME" |
| 216 |
Cancels an upload from \fBDEFERRED\fR. |
| 217 |
. |
| 218 |
.P |
| 219 |
Both \fBreschedule\fR and \fBcancel\fR use the \f[I]CHANGESFILE_NAME\f[] |
| 220 |
argument as the base filename of a changes file in the queue. |
| 221 |
. |
| 222 |
.P |
| 223 |
The authoritative documentation for the commands interface |
| 224 |
can be found at |
| 225 |
.UR https://salsa.debian.org\:/ftp-team/dak/-/raw/master\:/tools/debianqueued-0.9/\:Queue.README |
| 226 |
.UE . |
| 227 |
. |
| 228 |
.\" ========== |
| 229 |
.SH OPTIONS |
| 230 |
. |
| 231 |
.TP |
| 232 |
.BI \-c " CONFIGFILE" |
| 233 |
.TQ |
| 234 |
.BI \-\-config " CONFIGFILE" |
| 235 |
Use the file \f[I]CONFIGFILE\f[] for configuration. |
| 236 |
. |
| 237 |
See |
| 238 |
.BR dput.cf (5) |
| 239 |
for the specification of this file format. |
| 240 |
. |
| 241 |
.TP |
| 242 |
.B \-d |
| 243 |
.TQ |
| 244 |
.B \-\-debug |
| 245 |
Display debugging messages. |
| 246 |
. |
| 247 |
.TP |
| 248 |
.B \-h |
| 249 |
.TQ |
| 250 |
.B \-\-help |
| 251 |
Display help information, then exit. |
| 252 |
. |
| 253 |
.TP |
| 254 |
.BI \-\-host " HOSTNAME" |
| 255 |
Specify the \f[I]HOSTNAME\f[] unambiguously. |
| 256 |
. |
| 257 |
This allows naming a host that may be ambiguous with a queue command. |
| 258 |
. |
| 259 |
.TP |
| 260 |
.BI \-m " MAINTAINER" |
| 261 |
.TQ |
| 262 |
.BI \-\-maintaineraddress " MAINTAINER" |
| 263 |
Use \f[I]MAINTAINER\f[] for the \f[B]Uploader\f[] field and GnuPG key |
| 264 |
selection. |
| 265 |
. |
| 266 |
This has no effect when \f[B]\-\-upload\f[] is used. |
| 267 |
. |
| 268 |
.TP |
| 269 |
.BI \-k " KEYID" |
| 270 |
.TQ |
| 271 |
.BI \-\-keyid " KEYID" |
| 272 |
Specify the GnuPG key id \f[I]KEYID\f[] to pass to the |
| 273 |
.BR debsign (1) |
| 274 |
command. |
| 275 |
. |
| 276 |
This has no effect when \f[B]\-\-upload\f[] is used. |
| 277 |
. |
| 278 |
.TP |
| 279 |
.BI \-O " COMMANDFILE" |
| 280 |
.TQ |
| 281 |
.BI \-\-output " COMMANDFILE" |
| 282 |
Write commands file to \f[I]COMMANDFILE\f[] instead of uploading. |
| 283 |
. |
| 284 |
You should not specify a \f[I]HOSTNAME\f[] when using this option. |
| 285 |
. |
| 286 |
Also, this option should not be used with \f[B]\-\-upload\f[]. |
| 287 |
. |
| 288 |
.TP |
| 289 |
.B \-P |
| 290 |
.TQ |
| 291 |
.B \-\-passive |
| 292 |
Use passive mode for FTP. |
| 293 |
. |
| 294 |
If not specified, default for FTP is active mode. |
| 295 |
. |
| 296 |
.TP |
| 297 |
.B \-s |
| 298 |
.TQ |
| 299 |
.B \-\-simulate |
| 300 |
Do not actually upload to the queue host. |
| 301 |
. |
| 302 |
.TP |
| 303 |
.BI \-U " COMMANDFILE" |
| 304 |
.TQ |
| 305 |
.BI \-\-upload " COMMANDFILE" |
| 306 |
Instead of composing a new queue command file, upload the existing |
| 307 |
file \f[I]COMMANDFILE\f[]. |
| 308 |
. |
| 309 |
Note: No checks (syntax or presence/validity of signature) are |
| 310 |
currently performed. |
| 311 |
. |
| 312 |
.TP |
| 313 |
.BI \-i " CHANGESFILE" |
| 314 |
.TQ |
| 315 |
.BI \-\-input " CHANGESFILE" |
| 316 |
Do not parse queue commands from the command line. Instead, read the |
| 317 |
package changes file \f[I]CHANGESFILE\f[] and compose a \f[B]rm\f[] |
| 318 |
command for each file specified in \f[I]CHANGESFILE\f[]. |
| 319 |
. |
| 320 |
This has no effect when \f[B]\-\-upload\f[] is used. |
| 321 |
. |
| 322 |
.TP |
| 323 |
.B \-v |
| 324 |
.TQ |
| 325 |
.B \-\-version |
| 326 |
Display version information, then exit. |
| 327 |
. |
| 328 |
.\" ========== |
| 329 |
.SH ENVIRONMENT |
| 330 |
. |
| 331 |
.TP |
| 332 |
.B DEBEMAIL |
| 333 |
.TQ |
| 334 |
.B EMAIL |
| 335 |
. |
| 336 |
If \f[I]MAINTAINER\f[] is not specified, use the first of these which |
| 337 |
has a value to determine the email address portion of |
| 338 |
\f[I]MAINTAINER\f[]. |
| 339 |
. |
| 340 |
.TP |
| 341 |
.B DEBFULLNAME |
| 342 |
. |
| 343 |
If \f[I]MAINTAINER\f[] is not specified, use this value to determine |
| 344 |
the full name portion of \f[I]MAINTAINER\f[]. |
| 345 |
. |
| 346 |
.TP |
| 347 |
.B USER |
| 348 |
. |
| 349 |
If no username is specified for authenticating to the remote host, use |
| 350 |
the value of this variable. |
| 351 |
. |
| 352 |
.\" ========== |
| 353 |
.SH FILES |
| 354 |
. |
| 355 |
.TP |
| 356 |
Configuration |
| 357 |
. |
| 358 |
See |
| 359 |
.BR dput.cf (5) |
| 360 |
for the files to configure |
| 361 |
.B \*[command]. |
| 362 |
. |
| 363 |
.\" ========== |
| 364 |
.SH EXAMPLES |
| 365 |
. |
| 366 |
.P |
| 367 |
To upload a GPG signed commands file that removes \f[B]dput_1.2.3_all.deb\f[] |
| 368 |
file from the queue: |
| 369 |
. |
| 370 |
.P |
| 371 |
.EX |
| 372 |
$ \*[command] rm dput_1.2.3_all.deb |
| 373 |
.EE |
| 374 |
. |
| 375 |
.P |
| 376 |
This creates and uploads a commands file that looks like the following: |
| 377 |
. |
| 378 |
.P |
| 379 |
.EX |
| 380 |
\-\-\-\-\-BEGIN PGP SIGNED MESSAGE\-\-\-\-\- |
| 381 |
Hash: SHA512 |
| 382 |
|
| 383 |
Uploader: Foo Bar <[email protected]> |
| 384 |
Commands: |
| 385 |
rm dput_1.2.3_all.deb |
| 386 |
|
| 387 |
\-\-\-\-\-BEGIN PGP SIGNATURE\-\-\-\-\- |
| 388 |
|
| 389 |
iQIzBAEBCgAdFiEEYVng8p4vpBLgeVxz+bRqrIRCDIIFAmdssocACgkQ+bRqrIRC |
| 390 |
[…] |
| 391 |
7ou1IjMZrvZ9gD3b4DMIKIzy2qWoCcOi+Ki5HQUbr52kJnVQGe4= |
| 392 |
=7c4m |
| 393 |
.EE |
| 394 |
. |
| 395 |
.P |
| 396 |
To upload a GPG signed commands file that removes files named in |
| 397 |
\f[B]dput_1.2.3_amd64.changes\f[] from the queue: |
| 398 |
. |
| 399 |
.P |
| 400 |
.EX |
| 401 |
$ \*[command] \-\-input dput_1.2.3_amd64.changes |
| 402 |
.EE |
| 403 |
. |
| 404 |
.P |
| 405 |
This creates and uploads a commands file that looks like the following: |
| 406 |
. |
| 407 |
.P |
| 408 |
.EX |
| 409 |
\-\-\-\-\-BEGIN PGP SIGNED MESSAGE\-\-\-\-\- |
| 410 |
Hash: SHA512 |
| 411 |
|
| 412 |
Uploader: Foo Bar <[email protected]> |
| 413 |
Commands: |
| 414 |
rm \-\-searchdirs dput_1.2.3.dsc |
| 415 |
rm \-\-searchdirs dput_1.2.3.tar.gz |
| 416 |
rm \-\-searchdirs dput_1.2.3_all.deb |
| 417 |
|
| 418 |
\-\-\-\-\-BEGIN PGP SIGNATURE\-\-\-\-\- |
| 419 |
|
| 420 |
iQIyBAEBCgAdFiEEYVng8p4vpBLgeVxz+bRqrIRCDIIFAmdssyoACgkQ+bRqrIRC |
| 421 |
[…] |
| 422 |
KPoGlBPHHNUIq2UyCR7P4k2V0lmXgQBbkVbB5orPRS4ez3DDIg== |
| 423 |
=Ux4q |
| 424 |
\-\-\-\-\-END PGP SIGNATURE\-\-\-\-\- |
| 425 |
.EE |
| 426 |
. |
| 427 |
.P |
| 428 |
To cancel a package specified in \f[B]dput_1.2.3_amd64.changes\f[] that is |
| 429 |
currently in the \f[B]DEFERRED\f[] queue (perhaps uploaded previously by |
| 430 |
.BR dput (1) |
| 431 |
using the \f[B]\-\-delayed\f[] option): |
| 432 |
. |
| 433 |
.P |
| 434 |
.EX |
| 435 |
$ \*[command] cancel dput_1.2.3_amd64.changes |
| 436 |
.EE |
| 437 |
. |
| 438 |
.P |
| 439 |
This creates and uploads a commands file similar to the previous examples, |
| 440 |
containing \f[B]cancel\f[] commands. |
| 441 |
. |
| 442 |
.\" ========== |
| 443 |
.SH SEE ALSO |
| 444 |
. |
| 445 |
.BR dput (1), |
| 446 |
.BR dput.cf (5), |
| 447 |
.BR debsign (1) |
| 448 |
. |
| 449 |
.P |
| 450 |
.UR ftp://ftp.upload.debian.org/pub/UploadQueue/README |
| 451 |
Read Me document for the Debian upload queue |
| 452 |
.UE . |
| 453 |
. |
| 454 |
.\" Copyright © 2016–2026 Ben Finney <[email protected]> |
| 455 |
. |
| 456 |
.\" This is free software: you may copy, modify, and/or distribute this work |
| 457 |
.\" under the terms of the GNU General Public License as published by the |
| 458 |
.\" Free Software Foundation; version 3 of that license or any later version. |
| 459 |
.\" No warranty expressed or implied. See the file ‘LICENSE.GPL-3’ for details. |
| 460 |
. |
| 461 |
.\" Local variables: |
| 462 |
.\" coding: utf-8 |
| 463 |
.\" mode: nroff |
| 464 |
.\" End: |
| 465 |
.\" vim: fileencoding=utf-8 filetype=nroff : |