OS Manuals

/usr/bin/dpkg-deb

The Debian Package Manager

From dpkg 1.23.11-r3 (os), captured 2026-11-05 by running dpkg-deb --help (exit 0). permalink

Usage: dpkg-deb [<option>...] <command>

Commands:
  -b, --build <directory> [<deb>]
          Build an archive.
  -c, --contents <deb>
          List archive filesystem contents.
  -I, --info <deb> [<cfile>...]
          Show archive metadata information.
  -W, --show <deb>
          Show archive metadata information, with specified format.
  -f, --field <deb> [<cfield>...]
          Show archive metadata fields.
  -e, --control <deb> [<directory>]
          Extract archive metadata files.
  -x, --extract <deb> <directory>
          Extract archive filesystem files.
  -X, --vextract <deb> <directory>
          Extract and list archive filesystem files.
  -R, --raw-extract <deb> <directory>
          Extract archive metadata and filesystem files.
      --ctrl-tarfile <deb>
          Output archive control tarfile.
      --fsys-tarfile <deb>
          Output archive filesystem tarfile.
  -?, --help
          Show this help message.
      --version
          Show the version.

<deb> is the filename of a Debian format archive.
<cfile> is the name of an administrative file component.
<cfield> is the name of a field in the main 'control' file.

Options:
      --showformat=<format>
          Use alternative format for --show.
      --deb-format=<format>
          Select archive format. Allowed values:
            0.939000, 2.0 (default).
      --no-check
          Suppress all checks (build bad packages).
      --nocheck
          Alias for --no-check.
      --root-owner-group
          Forces the owner and groups to root.
      --threads-max=<threads>
          Use at most <threads> with compressor.
          [env: DPKG_DEB_THREADS_MAX=]
  -Z, --compression=<compressor>
          Set build compression type. Allowed types:
            gzip, xz, zstd, none.
          [env: DPKG_DEB_COMPRESSOR_TYPE=]
  -z, --compression-level=<level>
          Set build compression level.
          [env: DPKG_DEB_COMPRESSOR_LEVEL=]
  -S, --compression-strategy=<name>
          Set build compression strategy. Allowed values:
            none; extreme (xz); filtered, huffman, rle, fixed (gzip).
      --uniform-compression
          Use the compression parameters on all members.
      --no-uniform-compression
          Use the compression parameters only on the data.tar member.
  -v, --verbose
          Enable verbose mode.
  -D, --debug
          Enable debugging mode.

Format syntax:
  A format is a string that will be output for each package. The format
  can include the standard escape sequences \n (newline), \r (carriage
  return) or \\ (plain backslash). Package information can be included
  by inserting variable references to package fields using the ${var[;width]}
  syntax. Fields will be right-aligned unless the width is negative in which
  case left alignment will be used.

Use 'dpkg' to install and remove packages from the system, or
'apt' or 'aptitude' for user-friendly package management. Packages
unpacked using 'dpkg-deb --extract' will be incorrectly installed !
Options (19)
OptionDescriptionSource
-c, --contents debList archive filesystem contents.help
-W, --show debShow archive metadata information, with specified format.help
--ctrl-tarfile debOutput archive control tarfile.help
--fsys-tarfile debOutput archive filesystem tarfile.help
-?, --helpShow this help message.help
--versionShow the version.help
--showformat formatThis option is used to specify the format of the output --show will produce.help + man
--deb-format formatSet the archive format version used when building.help + man
--no-checkInhibits dpkg-deb --build's usual checks on the proposed contents of an archive.help + man
--nocheckThis is an alias for --no-check.help + man
--root-owner-groupSet the owner and group for each entry in the filesystem tree data to root with id 0.help + man
--threads-max threadsSets the maximum number of threads allowed for compressors that support multi-threaded operations.help + man
-Z, --compression compressorSpecify which compression type to use when building a package.help + man
-z, --compression-level levelSpecify which compression level to use on the compressor backend, when building a package (default is 9 for gzip, 6 for xz, 3 for zstd).help + man
-S, --compression-strategy nameSpecify which compression strategy to use on the compressor backend, when building a package.help + man
--uniform-compressionSpecify that the same compression parameters should be used for all archive members (i.e. control.tar and data.tar).help + man
--no-uniform-compressionSpecify that only the data.tar archive member will use the compression parameters specified.help + man
-v, --verboseEnables verbose output.help + man
-D, --debugEnables debugging output.help + man
Exit status (2) from the manual page
0The requested action was successfully performed.
2Fatal or unrecoverable error due to invalid command-line usage, or interactions with the system, such as accesses to the database, memory allocations, etc.

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.