{
    "mode": "man",
    "parameter": "dcmd",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/dcmd/1/json",
    "generated": "2026-06-02T21:25:56Z",
    "synopsis": "dcmd [options] [command] [changes-file|dsc-file] ...",
    "sections": {
        "NAME": {
            "content": "dcmd - expand file lists of .dsc/.changes files in the command line\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "dcmd [options] [command] [changes-file|dsc-file] ...\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "dcmd  replaces  any reference to a .dsc or .changes file in the command line with the list of\nfiles in its 'Files' section, plus the file itself.  It allows easy manipulation of  all  the\nfiles involved in an upload (for .changes files) or a source package (for .dsc files).\n\nIf  command is omitted (that is the first argument is an existing .dsc or .changes file), the\nexpanded list of files is printed to stdout, one file by line. Useful for usage in backticks.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "There are a number of options which may be used in order to select only a subset of the files\nlisted  in the .dsc or .changes file. If a requested file is not found, an error message will\nbe printed.\n\n--dsc         Select the .dsc file.\n\n--schanges    Select .changes files for the 'source' architecture.\n\n--bchanges    Select .changes files for binary architectures.\n\n--changes     Select .changes files. Implies --schanges and --bchanges.\n\n--archdeb     Select architecture-dependent binary packages (.deb files).\n\n--indepdeb    Select architecture-independent binary packages (.deb files).\n\n--deb         Select binary packages (.deb files). Implies --archdeb and --indepdeb.\n\n--archudeb    Select architecture-dependent .udeb binary packages.\n\n--indepudeb   Select architecture-independent .udeb binary packages.\n\n--udeb        Select .udeb binary packages. Implies --archudeb and --indepudeb.\n\n--tar, --orig Select the upstream .tar file.\n\n--diff, --debtar\nSelect the Debian .debian.tar or .diff file.\n\nEach option may be prefixed by --no to indicate that all files not matching the specification\nshould be selected.\n\nIt  is not possible to combine positive filtering options (e.g. --dsc) and negative filtering\noptions (e.g. --no-changes) in the same dcmd invocation.\n\n--no-fail-on-missing, -r\nIf any of the requested files were not found, do not output an error.\n\n--package, -p\nOutput package name part only.\n\n--sort, -s\nSort output alphabetically.\n\n--tac, -t\nReverse output order.\n\n",
            "subsections": []
        },
        "EXAMPLES": {
            "content": "Copy the result of a build to another machine:\n\n$ dcmd scp rcs5.7-23amd64.changes elegiac:/tmp\nrcs5.7-23.dsc                  100%  490     0.5KB/s   00:00\nrcs5.7-23.diff.gz              100%   12KB  11.7KB/s   00:00\nrcs5.7-23amd64.deb            100%  363KB 362.7KB/s   00:00\nrcs5.7-23amd64.changes        100% 1095     1.1KB/s   00:00\n$\n\n$ dcmd --diff --deb scp rcs5.7-23amd64.changes elegiac:/tmp\nrcs5.7-23.diff.gz              100%   12KB  11.7KB/s   00:00\nrcs5.7-23amd64.deb            100%  363KB 362.7KB/s   00:00\n$\n\nCheck the contents of a source package:\n\n$ dcmd md5sum rcs5.7-23.dsc\n8fd09ea9654cda128f8d5c337d3b8de7  rcs5.7.orig.tar.gz\nf0ceeae96603e823eacba6721a30b5c7  rcs5.7-23.diff.gz\n5241db1e231b1f43ae5514b63d2523f8  rcs5.7-23.dsc\n$\n\n$ dcmd --no-diff md5sum rcs5.7-23.dsc\n8fd09ea9654cda128f8d5c337d3b8de7  rcs5.7.orig.tar.gz\n5241db1e231b1f43ae5514b63d2523f8  rcs5.7-23.dsc\n$\n\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "dpkg-genchanges(1), dpkg-source(1)\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "This program was written by Romain Francoise <rfrancoise@debian.org> and  is  released  under\nthe GPL, version 2 or later.\n\n\n\nDEBIAN                                    Debian Utilities                                   DCMD(1)",
            "subsections": []
        }
    },
    "summary": "dcmd - expand file lists of .dsc/.changes files in the command line",
    "flags": [],
    "examples": [
        "Copy the result of a build to another machine:",
        "$ dcmd scp rcs5.7-23amd64.changes elegiac:/tmp",
        "rcs5.7-23.dsc                  100%  490     0.5KB/s   00:00",
        "rcs5.7-23.diff.gz              100%   12KB  11.7KB/s   00:00",
        "rcs5.7-23amd64.deb            100%  363KB 362.7KB/s   00:00",
        "rcs5.7-23amd64.changes        100% 1095     1.1KB/s   00:00",
        "$ dcmd --diff --deb scp rcs5.7-23amd64.changes elegiac:/tmp",
        "rcs5.7-23.diff.gz              100%   12KB  11.7KB/s   00:00",
        "rcs5.7-23amd64.deb            100%  363KB 362.7KB/s   00:00",
        "Check the contents of a source package:",
        "$ dcmd md5sum rcs5.7-23.dsc",
        "8fd09ea9654cda128f8d5c337d3b8de7  rcs5.7.orig.tar.gz",
        "f0ceeae96603e823eacba6721a30b5c7  rcs5.7-23.diff.gz",
        "5241db1e231b1f43ae5514b63d2523f8  rcs5.7-23.dsc",
        "$ dcmd --no-diff md5sum rcs5.7-23.dsc",
        "8fd09ea9654cda128f8d5c337d3b8de7  rcs5.7.orig.tar.gz",
        "5241db1e231b1f43ae5514b63d2523f8  rcs5.7-23.dsc"
    ],
    "see_also": [
        {
            "name": "dpkg-genchanges",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/dpkg-genchanges/1/json"
        },
        {
            "name": "dpkg-source",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/dpkg-source/1/json"
        }
    ]
}