{
    "mode": "man",
    "parameter": "DGET",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/DGET/1/json",
    "generated": "2026-06-10T16:10:51Z",
    "synopsis": "dget [options] URL ...\ndget [options] [--all] package[=version] ...",
    "sections": {
        "NAME": {
            "content": "dget - Download Debian source and binary packages\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "dget [options] URL ...\ndget [options] [--all] package[=version] ...\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "dget downloads Debian packages.  In the first form, dget fetches the requested URLs.  If this\nis a .dsc or .changes file, then dget acts as a source-package aware form of wget: it also\nfetches any files referenced in the .dsc/.changes file.  The downloaded source is then\nchecked with dscverify and, if successful, unpacked by dpkg-source.\n\nIn the second form, dget downloads a binary package (i.e., a .deb file) from the Debian\nmirror configured in /etc/apt/sources.list(.d).  Unlike apt-get install -d, it does not\nrequire root privileges, writes to the current directory, and does not download dependencies.\nIf a version number is specified, this version of the package is requested.  With --all, the\nlist of all binaries for the source package package is extracted from the output of\n\"apt-cache showsrc package\".\n\nIn both cases dget is capable of getting several packages and/or URLs at once.\n\n(Note that .udeb packages used by debian-installer are located in separate packages files\nfrom .deb packages. In order to use .udebs with dget, you will need to have configured apt to\nuse a packages file for component/debian-installer).\n\nBefore downloading files listed in .dsc and .changes files, and before downloading binary\npackages, dget checks to see whether any of these files already exist.  If they do, then\ntheir md5sums are compared to avoid downloading them again unnecessarily.  dget also looks\nfor matching files in /var/cache/apt/archives and directories given by the --path option or\nspecified in the configuration files (see below).  Finally, if downloading (.orig).tar.gz or\n.diff.gz files fails, dget consults apt-get source --print-uris.  Download backends used are\ncurl and wget, looked for in that order.\n\ndget was written to make it easier to retrieve source packages from the web for sponsor\nuploads.  For checking the package with debdiff, the last binary version is available via\ndget package, the last source version via apt-get source package.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-a --all",
                    "content": "Interpret package as a source package name, and download all binaries as found in the\noutput of \"apt-cache showsrc package\".  If package is arch-qualified, then only binary\npackages which are \"Arch: all\", \"Arch: any\", or \"Arch: $arch\" will be downloaded.\n",
                    "flag": "-a",
                    "long": "--all"
                },
                {
                    "name": "-b --backup",
                    "content": "Move files that would be overwritten to ./backup.\n",
                    "flag": "-b",
                    "long": "--backup"
                },
                {
                    "name": "-q --quiet",
                    "content": "Suppress wget/curl non-error output.\n",
                    "flag": "-q",
                    "long": "--quiet"
                },
                {
                    "name": "-d --download-only",
                    "content": "Do not run dpkg-source -x on the downloaded source package.  This can only be used with\nthe first method of calling dget.\n",
                    "flag": "-d",
                    "long": "--download-only"
                },
                {
                    "name": "-x --extract",
                    "content": "Run dpkg-source -x on the downloaded source package to unpack it.  This option is the\ndefault and can only be used with the first method of calling dget.\n",
                    "flag": "-x",
                    "long": "--extract"
                },
                {
                    "name": "-u --allow-unauthenticated",
                    "content": "Do not attempt to verify the integrity of downloaded source packages using dscverify.\n",
                    "flag": "-u",
                    "long": "--allow-unauthenticated"
                },
                {
                    "name": "--build",
                    "content": "Run dpkg-buildpackage -b -uc on the downloaded source package.\n\n--path DIR[:DIR ...]\nIn addition to /var/cache/apt/archives, dget uses the colon-separated list given as\nargument to --path to find files with a matching md5sum.  For example: \"--path\n/srv/pbuilder/result:/home/cb/UploadQueue\".  If DIR is empty (i.e., \"--path ''\" is\nspecified), then any previously listed directories or directories specified in the\nconfiguration files will be ignored.  This option may be specified multiple times, and\nall of the directories listed will be searched; hence, the above example could have been\nwritten as: \"--path /srv/pbuilder/result --path /home/cb/UploadQueue\".\n",
                    "long": "--build"
                },
                {
                    "name": "--insecure",
                    "content": "Allow SSL connections to untrusted hosts.\n",
                    "long": "--insecure"
                },
                {
                    "name": "--no-cache",
                    "content": "Bypass server-side HTTP caches by sending a Pragma: no-cache header.\n",
                    "long": "--no-cache"
                },
                {
                    "name": "-h --help",
                    "content": "Show a help message.\n",
                    "flag": "-h",
                    "long": "--help"
                },
                {
                    "name": "-V --version",
                    "content": "Show version information.\n",
                    "flag": "-V",
                    "long": "--version"
                }
            ]
        },
        "CONFIGURATION VARIABLES": {
            "content": "The two configuration files /etc/devscripts.conf and ~/.devscripts are sourced by a shell in\nthat order to set configuration variables.  Command line options can be used to override\nconfiguration file settings.  Environment variable settings are ignored for this purpose.\nThe currently recognised variable is:\n\nDGETPATH\nThis can be set to a colon-separated list of directories in which to search for files in\naddition to the default /var/cache/apt/archives.  It has the same effect as the --path\ncommand line option.  It is not set by default.\n\nDGETUNPACK\nSet to 'no' to disable extracting downloaded source packages.  Default is 'yes'.\n\nDGETVERIFY\nSet to 'no' to disable checking signatures of downloaded source packages.  Default is\n'yes'.\n",
            "subsections": []
        },
        "EXAMPLES": {
            "content": "Download all .deb files for the previous version of a package and run debdiff on them:\n\ndget --all mypackage=1.2-1\ndebdiff --from *1.2-1*.deb --to *1.2-2*.deb\n",
            "subsections": []
        },
        "BUGS AND COMPATIBILITY": {
            "content": "dget package should be implemented in apt-get install -d.\n\nBefore devscripts version 2.10.17, the default was not to extract the downloaded source. Set\nDGETUNPACK=no to revert to the old behaviour.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "This program is Copyright (C) 2005-2013 by Christoph Berg <myon@debian.org>.  Modifications\nare Copyright (C) 2005-06 by Julian Gilbey <jdg@debian.org>.\n\nThis program is licensed under the terms of the GPL, either version 2 of the License, or (at\nyour option) any later version.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "apt-get(1), curl(1), debcheckout(1), debdiff(1), dpkg-source(1), wget(1)\n\n\n\nDebian Utilities                             2026-03-04                                      DGET(1)",
            "subsections": []
        }
    },
    "summary": "dget - Download Debian source and binary packages",
    "flags": [
        {
            "flag": "-a",
            "long": "--all",
            "arg": null,
            "description": "Interpret package as a source package name, and download all binaries as found in the output of \"apt-cache showsrc package\". If package is arch-qualified, then only binary packages which are \"Arch: all\", \"Arch: any\", or \"Arch: $arch\" will be downloaded."
        },
        {
            "flag": "-b",
            "long": "--backup",
            "arg": null,
            "description": "Move files that would be overwritten to ./backup."
        },
        {
            "flag": "-q",
            "long": "--quiet",
            "arg": null,
            "description": "Suppress wget/curl non-error output."
        },
        {
            "flag": "-d",
            "long": "--download-only",
            "arg": null,
            "description": "Do not run dpkg-source -x on the downloaded source package. This can only be used with the first method of calling dget."
        },
        {
            "flag": "-x",
            "long": "--extract",
            "arg": null,
            "description": "Run dpkg-source -x on the downloaded source package to unpack it. This option is the default and can only be used with the first method of calling dget."
        },
        {
            "flag": "-u",
            "long": "--allow-unauthenticated",
            "arg": null,
            "description": "Do not attempt to verify the integrity of downloaded source packages using dscverify."
        },
        {
            "flag": "",
            "long": "--build",
            "arg": null,
            "description": "Run dpkg-buildpackage -b -uc on the downloaded source package. --path DIR[:DIR ...] In addition to /var/cache/apt/archives, dget uses the colon-separated list given as argument to --path to find files with a matching md5sum. For example: \"--path /srv/pbuilder/result:/home/cb/UploadQueue\". If DIR is empty (i.e., \"--path ''\" is specified), then any previously listed directories or directories specified in the configuration files will be ignored. This option may be specified multiple times, and all of the directories listed will be searched; hence, the above example could have been written as: \"--path /srv/pbuilder/result --path /home/cb/UploadQueue\"."
        },
        {
            "flag": "",
            "long": "--insecure",
            "arg": null,
            "description": "Allow SSL connections to untrusted hosts."
        },
        {
            "flag": "",
            "long": "--no-cache",
            "arg": null,
            "description": "Bypass server-side HTTP caches by sending a Pragma: no-cache header."
        },
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "Show a help message."
        },
        {
            "flag": "-V",
            "long": "--version",
            "arg": null,
            "description": "Show version information."
        }
    ],
    "examples": [
        "Download all .deb files for the previous version of a package and run debdiff on them:",
        "dget --all mypackage=1.2-1",
        "debdiff --from *1.2-1*.deb --to *1.2-2*.deb"
    ],
    "see_also": [
        {
            "name": "apt-get",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/apt-get/1/json"
        },
        {
            "name": "curl",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/curl/1/json"
        },
        {
            "name": "debcheckout",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/debcheckout/1/json"
        },
        {
            "name": "debdiff",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/debdiff/1/json"
        },
        {
            "name": "dpkg-source",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/dpkg-source/1/json"
        },
        {
            "name": "wget",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/wget/1/json"
        }
    ],
    "tldr": {
        "source": "official",
        "description": "Download Debian packages.",
        "examples": [
            {
                "description": "Download a binary package",
                "command": "dget {{package}}"
            },
            {
                "description": "Download and extract a package source from its `.dsc` file",
                "command": "dget {{http://deb.debian.org/debian/pool/main/h/haskell-tldr/haskell-tldr_0.4.0-2.dsc}}"
            },
            {
                "description": "Download a package source tarball from its `.dsc` file but don't extract it",
                "command": "dget {{-d|--download-only}} {{http://deb.debian.org/debian/pool/main/h/haskell-tldr/haskell-tldr_0.4.0-2.dsc}}"
            }
        ]
    }
}