{
    "mode": "man",
    "parameter": "dpkg-depcheck",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/dpkg-depcheck/1/json",
    "generated": "2026-06-15T14:42:35Z",
    "synopsis": "dpkg-depcheck [options] command",
    "sections": {
        "NAME": {
            "content": "dpkg-depcheck - determine packages used to execute a command\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "dpkg-depcheck [options] command\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This  program  runs  the  specified  command under strace and then determines and outputs the\npackages used in the process.  The list can be trimmed in various ways as  described  in  the\noptions  below.   A  good  example  of this program would be the command dpkg-depcheck -b de‐‐\nbian/rules build, which would give a good  first  approximation  to  the  Build-Depends  line\nneeded by a Debian package.  Note, however, that this does not give any direct information on\nversions required or architecture-specific packages.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-a --all",
                    "content": "Report all packages used to run command.  This is the default behaviour.  If  used  in\nconjunction  with -b, -d or -m, gives additional information on those packages skipped\nby these options.\n",
                    "flag": "-a",
                    "long": "--all"
                },
                {
                    "name": "-b --build-depends",
                    "content": "Do not report any build-essential or essential packages used, or any of their  (direct\nor indirect) dependencies.\n",
                    "flag": "-b",
                    "long": "--build-depends"
                },
                {
                    "name": "-d --ignore-dev-deps",
                    "content": "Do  not  show packages used which are direct dependencies of -dev packages used.  This\nimplies -b.\n",
                    "flag": "-d",
                    "long": "--ignore-dev-deps"
                },
                {
                    "name": "-m --min-deps",
                    "content": "Output a minimal set of packages needed, taking into account direct dependencies.  Us‐\ning -m implies -d and also -b.\n",
                    "flag": "-m",
                    "long": "--min-deps"
                },
                {
                    "name": "-C --C-locale",
                    "content": "Run command with the C locale.\n",
                    "flag": "-C",
                    "long": "--C-locale"
                },
                {
                    "name": "--no-C-locale",
                    "content": "Don't change locale when running command.\n",
                    "long": "--no-C-locale"
                },
                {
                    "name": "-l --list-files",
                    "content": "Also report the list of files used in each package.\n",
                    "flag": "-l",
                    "long": "--list-files"
                },
                {
                    "name": "--no-list-files",
                    "content": "Do not report the files used in each package.  Cancels a -l option.\n",
                    "long": "--no-list-files"
                },
                {
                    "name": "-o --output=",
                    "content": "Output the package diagnostics to FILE instead of stdout.\n",
                    "flag": "-o"
                },
                {
                    "name": "-O --strace-output=",
                    "content": "Write  the  strace  output  to  FILE when tracing command instead of using a temporary\nfile.\n",
                    "flag": "-O"
                },
                {
                    "name": "-I --strace-input=",
                    "content": "Get strace output from FILE instead of tracing command; strace must have be  run  with\nthe -f -q options for this to work.\n",
                    "flag": "-I"
                },
                {
                    "name": "-f --features=",
                    "content": "Enable  or  disabled features given in the comma-separated LIST as follows.  A feature\nis enabled with +feature or just feature and disabled with  -feature.   The  currently\nrecognised features are:\nwarn-local\nWarn if files in /usr/local or /var/local are used.  Enabled by default.\ndiscard-check-version\nDiscards  execve  when  only a --version argument is given to the program; this\nworks around some configure scripts that check for binaries they don't actually\nuse.  Enabled by default.\ntrace-local\nAlso  try  to  identify  files which are accessed in /usr/local and /var/local.\nNot usually very useful, as Debian does not place files in  these  directories.\nDisabled by default.\ncatch-alternatives\nWarn  about  access  to  files controlled by the Debian alternatives mechanism.\nEnabled by default.\ndiscard-sgml-catalogs\nDiscards access to SGML catalogs; some SGML tools read all the registered cata‐\nlogs  at startup.  Files matching the regexp /usr/share/sgml/.*\\.cat are recog‐\nnised  as catalogs.  Enabled by default.\n\n--no-conf, --noconf\nDo not read any configuration files.  This can only be used as the first option  given\non the command-line.\n",
                    "flag": "-f"
                },
                {
                    "name": "-h --help",
                    "content": "Display usage information and exit.\n",
                    "flag": "-h",
                    "long": "--help"
                },
                {
                    "name": "-v --version",
                    "content": "Display version and copyright information and exit.\n",
                    "flag": "-v",
                    "long": "--version"
                }
            ]
        },
        "CONFIGURATION VARIABLES": {
            "content": "The  two configuration files /etc/devscripts.conf and ~/.devscripts are sourced in that order\nto set configuration variables.  Command line options can be used to  override  configuration\nfile  settings.   Environment  variable settings are ignored for this purpose.  The currently\nrecognised variable is:\n\nDPKGDEPCHECKOPTIONS\nThese are options which are parsed before the command-line options.  For example,\n\nDPKGDEPCHECKOPTIONS=\"-b -f-catch-alternatives\"\n\nwhich passes these options to dpkg-depcheck before any command-line options  are  pro‐\ncessed.   You  are advised not to try tricky quoting, because of the vagaries of shell\nquoting!\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "dpkg(1), strace(1), devscripts.conf(5), update-alternatives(8)\n",
            "subsections": []
        },
        "COPYING": {
            "content": "Copyright 2001 Bill Allombert <ballombe@debian.org>.  Modifications copyright  2002,2003  Ju‐\nlian  Gilbey  <jdg@debian.org>.   dpkg-depcheck  is free software, covered by the GNU General\nPublic License, version 2 or (at your option) any later  version,  and  you  are  welcome  to\nchange  it  and/or  distribute copies of it under certain conditions.  There is absolutely no\nwarranty for dpkg-depcheck.\n\n\n\ndpkg-depcheck                                March 2002                             DPKG-DEPCHECK(1)",
            "subsections": []
        }
    },
    "summary": "dpkg-depcheck - determine packages used to execute a command",
    "flags": [
        {
            "flag": "-a",
            "long": "--all",
            "arg": null,
            "description": "Report all packages used to run command. This is the default behaviour. If used in conjunction with -b, -d or -m, gives additional information on those packages skipped by these options."
        },
        {
            "flag": "-b",
            "long": "--build-depends",
            "arg": null,
            "description": "Do not report any build-essential or essential packages used, or any of their (direct or indirect) dependencies."
        },
        {
            "flag": "-d",
            "long": "--ignore-dev-deps",
            "arg": null,
            "description": "Do not show packages used which are direct dependencies of -dev packages used. This implies -b."
        },
        {
            "flag": "-m",
            "long": "--min-deps",
            "arg": null,
            "description": "Output a minimal set of packages needed, taking into account direct dependencies. Us‐ ing -m implies -d and also -b."
        },
        {
            "flag": "-C",
            "long": "--C-locale",
            "arg": null,
            "description": "Run command with the C locale."
        },
        {
            "flag": "",
            "long": "--no-C-locale",
            "arg": null,
            "description": "Don't change locale when running command."
        },
        {
            "flag": "-l",
            "long": "--list-files",
            "arg": null,
            "description": "Also report the list of files used in each package."
        },
        {
            "flag": "",
            "long": "--no-list-files",
            "arg": null,
            "description": "Do not report the files used in each package. Cancels a -l option."
        },
        {
            "flag": "-o",
            "long": null,
            "arg": null,
            "description": "Output the package diagnostics to FILE instead of stdout."
        },
        {
            "flag": "-O",
            "long": null,
            "arg": null,
            "description": "Write the strace output to FILE when tracing command instead of using a temporary file."
        },
        {
            "flag": "-I",
            "long": null,
            "arg": null,
            "description": "Get strace output from FILE instead of tracing command; strace must have be run with the -f -q options for this to work."
        },
        {
            "flag": "-f",
            "long": null,
            "arg": null,
            "description": "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-local Warn if files in /usr/local or /var/local are used. Enabled by default. discard-check-version 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. trace-local 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. catch-alternatives Warn about access to files controlled by the Debian alternatives mechanism. Enabled by default. discard-sgml-catalogs Discards access to SGML catalogs; some SGML tools read all the registered cata‐ logs at startup. Files matching the regexp /usr/share/sgml/.*\\.cat are recog‐ nised as catalogs. Enabled by default. --no-conf, --noconf Do not read any configuration files. This can only be used as the first option given on the command-line."
        },
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "Display usage information and exit."
        },
        {
            "flag": "-v",
            "long": "--version",
            "arg": null,
            "description": "Display version and copyright information and exit."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "dpkg",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/dpkg/1/json"
        },
        {
            "name": "strace",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/strace/1/json"
        },
        {
            "name": "devscripts.conf",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/devscripts.conf/5/json"
        },
        {
            "name": "update-alternatives",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/update-alternatives/8/json"
        }
    ]
}