How do I download a package from apt-get without installing it?

Manuel de Leon picture Manuel de Leon · Dec 11, 2010 · Viewed 191.3k times · Source

I have a computer without a NIC, and I want to install some programs in it via USB memory, but how can I download a program from apt-get without installing it?

Answer

Marcus Borkenhagen picture Marcus Borkenhagen · Dec 11, 2010

Try

apt-get -d install <packages>

It is documented in man apt-get.

Just for clarification; the downloaded packages are located in the apt package cache at

/var/cache/apt/archives