Skip to content

Instantly share code, notes, and snippets.

@david-wm-sanders
Last active November 21, 2017 11:40
Show Gist options
  • Save david-wm-sanders/54d36d079d1547f62dcdb7fb2d72bc33 to your computer and use it in GitHub Desktop.
Save david-wm-sanders/54d36d079d1547f62dcdb7fb2d72bc33 to your computer and use it in GitHub Desktop.

apt-get download will download the package, but not its dependencies, to the current directory.
Use if you want to download a .deb to then tinker with it (uncompress it, poke at it with dpkg, whatever).

apt-get -d install will download the given package and all missing dependencies to the system packages directory (/var/cache/apt/archives).
Use the second if you want to "pre-download" a set of packages for later installation.

(Derived from a comment on askubuntu: https://askubuntu.com/questions/463380/difference-between-apt-get-d-install-apt-get-download/463391#463391)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment