dpkg-deb8
Debian package archive (.deb) manipulation tool
Usage
dpkg-deb {-b | --build
directory
[archive]}
dpkg-deb {-I | --info
archive
[control-file-name
..]}
dpkg-deb {-f | --field
archive
[control-field-name ...]}
dpkg-deb {-c | --contents
archive}
dpkg-deb {-x | --extract | -X | --vextract
archive
directory}
dpkg-deb --fsys-tarfile
archive
dpkg-deb --control
archive
directory
Overview
dpkg-deb packs, unpacks and provides information about Debian archives.
Use dpkg to install and remove packages from your system.
You can also invoke dpkg-deb by calling dpkg with whatever options you want to pass to dpkg-deb. dpkg will spot that you wanted dpkg-deb and run it for you.
Options
-
-b, --build -
Creates a debian archive from the filesystem tree stored in directory. directory must have a DEBIAN subdirectory, which contains the control information files such as the control file itself. This directory will not appear in the binary package's filesystem archive, but instead the files in it will be put in the binary package's control information area.
Unless you specify
--no-check,dpkg-debwill readDEBIAN/controland parse it. It will check it for syntax errors and other problems, and display the name of the binary package being built.dpkg-debwill also check the permissions of the maintainer scripts and other files found in the DEBIAN control information directory.If no archive is specified then
dpkg-debwill write the package into the file directory.deb.If the archive to be created already exists it will be overwritten.
-
--info, -I -
Provides information about a binary package archive.
If no control-file-names are specified then it will print a summary of the contents of the package as well as its control file.
If any control-file-names are specified then
dpkg-debwill print them in the order they were specified; if any of the components weren't present it will print an error message to stderr about each one and exit with status 2.
-
--field, -f -
Extracts control file information from a binary package archive.
If no
control-file-fields are specified then it will print the whole control file.If any are specified then
dpkg-debwill print their contents, in the order in which they appear in the control file. If more than onecontrol-file-fieldis specified thendpkg-debwill precede each with its field name (and a colon and space).No errors are reported for fields requested but not found.
-
--contents, -c -
Lists the contents of the filesystem tree archive portion of the package archive. It is currently produced in the format generated by
tar's verbose listing.
-
--extract, -x, --vextract, -X -
Extracts the filesystem tree from a package archive into the specified directory.
--vextract(-X) prints a listing of the files extracted as it goes, while--extract(-x) is silent unless an error occurs.Note that extracting a package to the root directory will not result in a correct installation ! Use
dpkgto install packages.directory (but not its parents) will be created if necessary.
-
--fsys-tarfile -
Extracts the filesystem tree data from a binary package and sends it to standard output in
tarformat. Together withtarthis can be used to extract a particular file from a package archive.
-
--control, -e -
Extracs the control information files from a package archive into the specified directory.
If no directory is specified then a subdirectory DEBIAN in the current directory is used.
The target directory (but not its parents) will be created if necessary.
-
--help, -h -
Prints
dpkg-deb's usage message, giving a summary of its options and their uses.
-
--version -
Prints
dpkg-deb's version number.
-
--licence -
Prints information about
dpkg-deb's copyright licensing and lack of warranty. (The American spelling--licenseis also supported.)
Options
-
--new -
Ensures that
dpkg-debbuilds a `new' format archive. This is the default.
-
--old -
Forces
dpkg-debto build an `old' format archive. This old archive format is less easily parsed by non-Debian tools and is now obsolete; its only use is when building packages to be parsed by versions of dpkg older than 0.93.76 (September 1995), which was released as i386 a.out only.
-
--no-check -
Inhibit's dpkg-deb --build's usual checks on the proposed contents of an archive. You can build any archive you want, no matter how broken, this way.
-
--debug, -D -
Enables debugging output. This is not very interesting.