1DPKG-DEPCHECK(1)                    DEBIAN                    DPKG-DEPCHECK(1)
2
3
4

NAME

6       dpkg-depcheck - determine packages used to execute a command
7

SYNOPSIS

9       dpkg-depcheck [options] command
10

DESCRIPTION

12       This  program  runs  the specified command under strace and then deter‐
13       mines and outputs the packages used in the process.  The  list  can  be
14       trimmed  in  various  ways  as  described in the options below.  A good
15       example  of  this  program  would  be  the  command  dpkg-depcheck   -b
16       debian/rules  build, which would give a good first approximation to the
17       Build-Depends line needed by a Debian  package.   Note,  however,  that
18       this  does  not  give  any  direct  information on versions required or
19       architecture-specific packages.
20

OPTIONS

22       -a, --all
23              Report all packages used to run command.  This  is  the  default
24              behaviour.   If  used  in  conjunction  with -b, -d or -m, gives
25              additional  information  on  those  packages  skipped  by  these
26              options.
27
28       -b, --build-depends
29              Do not report any build-essential or essential packages used, or
30              any of their (direct or indirect) dependencies.
31
32       -d, --ignore-dev-deps
33              Do not show packages used which are direct dependencies of  -dev
34              packages used.  This implies -b.
35
36       -m, --min-deps
37              Output  a  minimal  set  of packages needed, taking into account
38              direct dependencies.  Using -m implies -d and also -b.
39
40       -C, --C-locale
41              Run command with the C locale.
42
43       --no-C-locale
44              Don't change locale when running command.
45
46       -l, --list-files
47              Also report the list of files used in each package.
48
49       --no-list-files
50              Do not report the files used in  each  package.   Cancels  a  -l
51              option.
52
53       -o, --output=FILE
54              Output the package diagnostics to FILE instead of stdout.
55
56       -O, --strace-output=FILE
57              Write  the strace output to FILE when tracing command instead of
58              using a temporary file.
59
60       -I, --strace-input=FILE
61              Get strace output from FILE instead of tracing  command;  strace
62              must have be run with the -f -q options for this to work.
63
64       -f, --features=LIST
65              Enable or disabled features given in the comma-separated LIST as
66              follows.  A feature is enabled with +feature or just feature and
67              disabled with -feature.  The currently recognised features are:
68              warn-local
69                     Warn  if  files  in  /usr/local  or  /var/local are used.
70                     Enabled by default.
71              discard-check-version
72                     Discards execve when only a --version argument  is  given
73                     to  the program; this works around some configure scripts
74                     that check for binaries they don't actually use.  Enabled
75                     by default.
76              trace-local
77                     Also   try  to  identify  files  which  are  accessed  in
78                     /usr/local and /var/local.  Not usually very  useful,  as
79                     Debian  does  not place files in these directories.  Dis‐
80                     abled by default.
81              catch-alternatives
82                     Warn about access  to  files  controlled  by  the  Debian
83                     alternatives mechanism.  Enabled by default.
84              discard-sgml-catalogs
85                     Discards  access  to  SGML catalogs; some SGML tools read
86                     all the registered catalogs at startup.   Files  matching
87                     the  regexp  /usr/share/sgml/.*\.cat  are  recognised  as
88                     catalogs.  Enabled by default.
89
90       --no-conf, --noconf
91              Do not read any configuration files.  This can only be  used  as
92              the first option given on the command-line.
93
94       -h, --help
95              Display usage information and exit.
96
97       -v, --version
98              Display version and copyright information and exit.
99

CONFIGURATION VARIABLES

101       The  two configuration files /etc/devscripts.conf and ~/.devscripts are
102       sourced in that order to set  configuration  variables.   Command  line
103       options  can be used to override configuration file settings.  Environ‐
104       ment variable settings are ignored for  this  purpose.   The  currently
105       recognised variable is:
106
107       DPKG_DEPCHECK_OPTIONS
108              These  are  options  which  are  parsed  before the command-line
109              options.  For example,
110
111              DPKG_DEPCHECK_OPTIONS="-b -f-catch-alternatives"
112
113              which passes these options to dpkg-depcheck before any  command-
114              line  options  are processed.  You are advised not to try tricky
115              quoting, because of the vagaries of shell quoting!
116

SEE ALSO

118       dpkg(1), strace(1), devscripts.conf(5), update-alternatives(8)
119

COPYING

121       Copyright 2001  Bill  Allombert  <ballombe@debian.org>.   Modifications
122       copyright  2002,2003  Julian Gilbey <jdg@debian.org>.  dpkg-depcheck is
123       free software, covered by the GNU General Public License, version 2  or
124       (at  your  option)  any later version, and you are welcome to change it
125       and/or distribute copies of it  under  certain  conditions.   There  is
126       absolutely no warranty for dpkg-depcheck.
127
128
129
130dpkg-depcheck                     March 2002                  DPKG-DEPCHECK(1)
Impressum