Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 945  / 1 Year ago, sun, april 23, 2023, 2:27:38

Imagine, I have all packages to install, say, ddd.

If I copy all ddd packages to /var/cache/apt/archives and run sudo apt-get install ddd in terminal, will apt-get re-download the packages or skip them?



PS I currently have ddd installed, so I can't (won't) test it myself. So I need some expert to tell me what would happen :)


More From » apt

 Answers
7

Yes it will, but only if the package is part of any lists that where downloaded while doing a apt-get update, eg:




  • You get a package that comes from a PPA that you want to use and you add the package manually to /var/cache/apt/archives, because the version of the package is not present on any package list from your sources it will not be used.



Packages are also signed, so if the signature from the package does not match the expected signature then it will be downloaded again, package identification does not depend on the name of the file only.



Making it short: if the manually added package version and signature match anything in your sources package list then that package will be used, else it will be downloaded again.


[#26882] Monday, April 24, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
aveerakfas

Total Points: 106
Total Questions: 148
Total Answers: 129

Location: Monaco
Member since Sun, Jan 1, 2023
1 Year ago
;