# man > dget(1)

---
type: CommandReference
command: dget
mode: man
section: 1
source: man-pages
---

## Quick Reference

- `dget {{package}}` — Download a binary package
- `dget {{http://deb.debian.org/debian/pool/main/h/haskell-tldr/haskell-tldr_0.4.0-2.dsc}}` — Download and extract a package source from its `.dsc` file
- `dget -d {{http://deb.debian.org/debian/pool/main/h/haskell-tldr/haskell-tldr_0.4.0-2.dsc}}` — Download a package source tarball from its `.dsc` file but don't extract it

## Name

`dget` — Download Debian source and binary packages

## Synopsis

shell
dget [options] URL ...
dget [options] [--all] package[=version] ...
## Options

- `-a, --all` — Interpret package as a source package name and download all binaries found in `apt-cache showsrc package`. If arch-qualified, only binaries matching the architecture are downloaded.
- `-b, --backup` — Move files that would be overwritten to `./backup`.
- `-q, --quiet` — Suppress wget/curl non-error output.
- `-d, --download-only` — Do not run `dpkg-source -x` on the downloaded source package. Only usable with the first form (URL).
- `-x, --extract` — Run `dpkg-source -x` to unpack the source package. Default with the first form.
- `-u, --allow-unauthenticated` — Do not verify integrity of downloaded source packages using `dscverify`.
- `--build` — Run `dpkg-buildpackage -b -uc` on the downloaded source package.
- `--path DIR[:DIR...]` — Colon-separated list of additional directories to search for files with matching md5sum (e.g., `--path /srv/pbuilder/result:/home/cb/UploadQueue`). May be specified multiple times.
- `--insecure` — Allow SSL connections to untrusted hosts.
- `--no-cache` — Bypass server-side HTTP caches by sending `Pragma: no-cache` header.
- `-h, --help` — Show help message.
- `-V, --version` — Show version information.

Configuration variables (set in `/etc/devscripts.conf` or `~/.devscripts`):
- `DGET_PATH` — Colon-separated list of directories to search for files (same as `--path`).
- `DGET_UNPACK` — Set to `no` to disable extracting downloaded source packages (default: `yes`).
- `DGET_VERIFY` — Set to `no` to disable checking signatures (default: `yes`).

## Examples

Download all `.deb` files for the previous version of a package and run `debdiff` on them:

shell
dget --all mypackage=1.2-1
debdiff --from *_1.2-1_*.deb --to *_1.2-2_*.deb
## See Also

[apt-get(1)](https://www.chedong.com/phpMan.php/man/apt-get/1/markdown), [curl(1)](https://www.chedong.com/phpMan.php/man/curl/1/markdown), [debcheckout(1)](https://www.chedong.com/phpMan.php/man/debcheckout/1/markdown), [debdiff(1)](https://www.chedong.com/phpMan.php/man/debdiff/1/markdown), [dpkg-source(1)](https://www.chedong.com/phpMan.php/man/dpkg-source/1/markdown), [wget(1)](https://www.chedong.com/phpMan.php/man/wget/1/markdown)