Monday, May 6, 2024
14
rated 0 times [  14] [ 0]  / answers: 1 / hits: 26807  / 1 Year ago, mon, march 20, 2023, 6:03:44

How can I direct apt-get install package_name to download package and its dependencies to some other location instead of /var/cache/apt/archives?


More From » installation

 Answers
3

You can download a package and all its dependencies with the following command, provided neither the package nor its dependencies are installed in the machine:



sudo apt-get --download-only -o Dir::Cache="/path/to/destination/dir/" 
-o Dir::Cache::archives="./" install package_name

[#41953] Wednesday, March 22, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nerta

Total Points: 414
Total Questions: 103
Total Answers: 97

Location: England
Member since Wed, Apr 19, 2023
1 Year ago
;