Wednesday, May 1, 2024
 Popular · Latest · Hot · Upcoming
29
rated 0 times [  29] [ 0]  / answers: 1 / hits: 57515  / 2 Years ago, sun, july 10, 2022, 3:42:52

Apt (Advanced Packaging Tool) has option to download only package by apt-get -d install [pkg-name].
I have also find apt-get download [pkg-name] to download packages.



Then what is the difference between --download-only (apt-get -d install)and download (apt-get download)?



And When should I use between them?


More From » apt

 Answers
3

I could list following:



  1. Try both without sudo, apt-get download will pass and apt-get -d install will fail (root required)



  2. By default apt-get -d install will save .deb in /var/cache/apt/archives and apt-get download in current directory



  3. apt-get download is newer, you wouldn't even find it in the old versions.




From man page:



download download will download the given binary package into the current directory.


-d, --download-only Download only; package files are only retrieved, not unpacked or installed. Configuration Item: APT::Get::Download-Only.



[#25327] Sunday, July 10, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
uffno

Total Points: 283
Total Questions: 93
Total Answers: 111

Location: Saint Vincent and the Grenadines
Member since Thu, Oct 15, 2020
4 Years ago
uffno questions
Thu, Sep 2, 21, 18:08, 3 Years ago
Sun, Apr 2, 23, 15:15, 1 Year ago
Sat, Jan 8, 22, 16:37, 2 Years ago
;