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 have an ubuntu with three virtual machines running inside running ubuntu also i update the host using

apt-get update

but i can update VM's, it takes a long time + uses a lot of bandwith which i'm running out of,i want to transfer the updated files by apt-get to VMs, could you please tell me where are they?
i'm not talking about the packages themselves stored in /var/cache/apt/archives, i want the file that stores list of available packages on mirror i have selected, thanks lot
ps: i know this question has been asked somewhere but i cant find it!

well, the answer i wanted was this: /var/lib/apt/lists but there is a better solution in the answers here anyway

share|improve this question

4 Answers 4

up vote 7 down vote accepted

Not an explicit answer to your question, but have you considered setting up an apt proxy? I use apt-cacher-ng (apt-get install apt-cacher-ng :D). Prehaps set this up on the VM host, and tell the VMs (and the host) to use this as their proxy (as simple as adding a file (eg 02proxy) to /etc/apt/apt.conf.d/ containing

Acquire::http { Proxy "http://vm host ip:3142"; };

That way you can just do apt-get upgrade without having to manually copy file around. When one computer downloads the debs they will be stored on the proxy for the next computer that requests it. Can handle multiple releases and different architectures, etc

Just a though :D

share|improve this answer
    
niiiiice!! thanks for the tip! –  nathwill Mar 28 '12 at 3:21
    
thanks, such a nice tip! –  loolooyyyy Mar 28 '12 at 5:56
1  
You can even install squid-deb-proxy on the proxy server and squid-deb-proxy-client on others; this will make the proxy detection work transparently (using Avahi), no client-side configuration required. As a bonus, if the proxy server is not found on the local network, the client will connect to the repositories directly (making this suitable even for laptops). –  Piskvor May 23 '13 at 13:55
    
I second the use of Squid-deb-proxy over Apt-cacher. Relevant Q: Best way to cache apt downloads on a LAN? –  gertvdijk May 23 '13 at 14:13

The .deb-files you have allready downloaded are stored in /var/cache/apt/archives/.

share|improve this answer
    
Oooh, beat me by 26 seconds :) –  Naftuli Tzvi Kay Mar 27 '12 at 23:33
1  
That's why I have twice as much reputation ;-P –  turbo Mar 27 '12 at 23:34
    
Oooooohhhh, burrrrn. :) –  Naftuli Tzvi Kay Mar 28 '12 at 1:54

/var/cache/apt/archives is where they should be stored.

share|improve this answer

you can backup all the *.dep.
then copy it into vmware, you can copy it in /root/sw_backup. the folder can not be /var/cache/apt/archives/.

then you can local install it with synaptic . $synaptic "file" menu to find local install. but it also need network, just need to update a little packeage.

share|improve this answer

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.