Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm experimenting with a possible answer for add packages to squid-deb-proxy cache, wherein I am trying to add files downloaded on a different network to the squid-deb-proxy cache. It occurred to me that if I could stick a downloaded package into apt's partial downloads cache, installing it would then add it to the squid-deb-proxy cache. My question, then, is this:

I have two computers, a laptop and a desktop. How can I add a package downloaded on the laptop to apt's partial downloads cache on the desktop?

I've tried simply putting it in /var/cache/apt/archives/partial, but when I go to install it, apt-get simply overwrites the file and tries to download it anew.

share|improve this question
add comment

1 Answer

Packages that have finished downloading are not stored in the partial folder, they are stored in the /var/cache/apt/archives/ folder. Also, apt looks for the package (with the proper version) in the same folder (and not the partial folder) before trying a download. Also, putting a completely downloaded package in the partial folder doesn't sound proper, maybe that's why apt ignores it.

share|improve this answer
    
Right, but it doesn't get downloaded if it's in /var/cache/apt/archives. I need it to be downloaded so it goes in squid(-deb-proxy)'s cache. Good point about fully downloaded packages, though; I'll have to try editing out the last byte and seeing what happens. (Now I just have to upgrade my proxy machine to 12.04 . . .) –  zpletan May 8 '12 at 23:40
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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