4

I want to download packages from the Ubuntu archive without fully installing them. The default sudo apt install downloads and installs them. I only want to download them. Is this possible?

CC BY-SA 4.0
1

1 Answer 1

8

Yes it is possible to download packages without installing them. This is often used in cases where internet access on another computer is not available, and one needs to be able to sideload the packages onto the machine. Here is what you do:

  1. Remove any packages currently saved in the cache by running sudo apt clean.
  2. Include --download-only in the command, e.g: sudo apt install --download-only <NameOfPackage>. This also works for multiple packages, e.g: sudo apt install --download-only <package1> <package2> <package3>

All packages downloaded via this method will be saved in the /var/cache/apt/archives directory. You'll be able to copy them to your desired location or leave them there for future sudo apt install operations.

CC BY-SA 4.0
3

Not the answer you're looking for? Browse other questions tagged or ask your own question.