dpkg-depcheck - determine packages used to execute a command
dpkg-depcheck [options] command
This program runs the specified command under strace and then
determines and outputs the packages used in the process. The list can
be trimmed in various ways as described in the options below. A good
example of this program would be the command dpkg-depcheck -b
debian/rules build, which would give a good first approximation to
the Build-Depends line needed by a Debian package. Note, however,
that this does not give any direct information on versions
required or architecture-specific packages.
Report all packages used to run command. This is the default
Do not report any build-essential or essential packages used, or any
of their (direct or indirect) dependencies.
Do not show packages used which are direct dependencies of -dev
packages used. This implies -b.
Output a minimal set of packages needed, taking into account direct
dependencies. Using -m implies -d and also -b.
Run command with the C locale.
Don't change locale when running command.
Also report the list of files used in each package finally reported.
Do not report the files used in each package. Cancels a -l
Output the package diagnostics to FILE instead of stdout.
Write the strace output to FILE when tracing command
instead of using a temporary file.
Get strace output from FILE instead of tracing
command; strace must have be run with the -f -q
options for this to work.
Enable or disabled features given in the comma-separated LIST as
follows. A feature is enabled with +feature or just
feature and disabled with -feature. The currently
recognised features are:
Warn if files in /usr/local or /var/local are used.
Enabled by default.
Discards execve when only a --version argument is given
to the program; this works around some configure scripts that check
for binaries they don't actually use. Enabled by default.
Also try to identify files which are accessed in /usr/local and
/var/local. Not usually very useful, as Debian does not place
files in these directories. Disabled by default.
Warn about access to files controlled by the Debian alternatives
mechanism. Enabled by default.
Display usage information and exit.
Display version and copyright information and exit.
The two configuration files /etc/devscripts.conf and
~/.devscripts are sourced in that order to set configuration
variables. Command line options can be used to override configuration
file settings. Environment variable settings are ignored for this
purpose. The currently recognised variable is:
These are options which are parsed before the command-line options.
which passes these options to dpkg-depcheck before any
command-line options are processed. You are advised not to try tricky
quoting, because of the vagaries of shell quoting!
Copyright 2001 Bill Allombert <email@example.com>.
Modifications copyright 2002 Julian Gilbey <firstname.lastname@example.org>.
dpkg-depcheck is free software, covered by the GNU General
Public License, version 2 or (at your option) any later version,
and you are welcome to change it and/or distribute copies of it under
certain conditions. There is absolutely no warranty for