{
    "mode": "man",
    "parameter": "DSCEXTRACT",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/DSCEXTRACT/1/json",
    "generated": "2026-06-15T14:39:00Z",
    "synopsis": "dscextract [options] dscfile file",
    "sections": {
        "NAME": {
            "content": "dscextract - extract a single file from a Debian source package\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "dscextract [options] dscfile file\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "dscextract  reads  a single file from a Debian source package.  The idea is to only look into\n.diff.gz files (source format 1.0) or .debian.tar.gz/bz2 files (source format 3.0) where pos‐\nsible,  hence  avoiding to unpack large tarballs.  It is most useful for files in the debian/\nsubdirectory.\n\nfile is relative to the first level directory contained in the package, i.e. with  the  first\ncomponent stripped.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-f",
                    "content": "if file was not found in the .diff.gz.  (For 3.0 packages, it is assumed that debian/*\nare exactly the contents of debian.tar.gz/bz2.)\n",
                    "flag": "-f"
                }
            ]
        },
        "EXIT STATUS": {
            "content": "0      file was extracted.\n\n1      file was not found in the source package.\n\n2      An error occurred, like dscfile was not found.\n",
            "subsections": []
        },
        "EXAMPLE": {
            "content": "dscextract dds2.1.1+ddd105-2.dsc debian/watch || test $? = 1\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "dscextract was written by Christoph Berg <myon@debian.org>.\n\n\n\nDEBIAN                                    Debian Utilities                             DSCEXTRACT(1)",
            "subsections": []
        }
    },
    "summary": "dscextract - extract a single file from a Debian source package",
    "flags": [
        {
            "flag": "-f",
            "long": null,
            "arg": null,
            "description": "if file was not found in the .diff.gz. (For 3.0 packages, it is assumed that debian/* are exactly the contents of debian.tar.gz/bz2.)"
        }
    ],
    "examples": [
        "dscextract dds2.1.1+ddd105-2.dsc debian/watch || test $? = 1"
    ],
    "see_also": []
}