OpenVZ Forum


Home » General » Support » apt-get package cache
apt-get package cache [message #33674] Fri, 31 October 2008 10:12 Go to next message
Gabor_Laszlo is currently offline  Gabor_Laszlo
Messages: 11
Registered: October 2008
Location: Munich, Germany
Junior Member
Hi,

I'd like to set up a package cache on the vzserver for the containers, so I can run something like a general update/upgrade of all machines without having to download repositories and packages for each container.

Has anybody already tried this? The server and all the containers are running debian-4-x86_64.
Re: apt-get package cache [message #33686 is a reply to message #33674] Fri, 31 October 2008 13:22 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hello,

unfortunately, there is no native OpenVZ tool for these purposes. But don't you want to set up repository cache with apt-cacher inside one of your VE?
Re: apt-get package cache [message #33687 is a reply to message #33686] Fri, 31 October 2008 13:24 Go to previous messageGo to next message
Gabor_Laszlo is currently offline  Gabor_Laszlo
Messages: 11
Registered: October 2008
Location: Munich, Germany
Junior Member
How would that solve the problem, and how do I do it?
Re: apt-get package cache [message #33688 is a reply to message #33687] Fri, 31 October 2008 13:26 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
http://www.debuntu.org/how-to-set-up-a-repository-cache-with -apt-cacher
Re: apt-get package cache [message #33689 is a reply to message #33688] Fri, 31 October 2008 13:35 Go to previous messageGo to next message
Gabor_Laszlo is currently offline  Gabor_Laszlo
Messages: 11
Registered: October 2008
Location: Munich, Germany
Junior Member
I see. I suppose there's no reason it can't be on the vzserver, and putting
for i in `vzlist|grep running|awk '{print $1}'`;do vzctl exec $i 'apt-get update && apt-get upgrade'; done
in a cronjob would do what I need?

[Updated on: Fri, 31 October 2008 15:19]

Report message to a moderator

Re: apt-get package cache [message #33691 is a reply to message #33689] Fri, 31 October 2008 13:44 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Only if you set up apt-cacher and update sources.list inside containers because you have a request:
Quote:


without having to download repositories and packages for each container.

Re: apt-get package cache [message #33693 is a reply to message #33691] Fri, 31 October 2008 13:51 Go to previous message
Gabor_Laszlo is currently offline  Gabor_Laszlo
Messages: 11
Registered: October 2008
Location: Munich, Germany
Junior Member
Yes, that was implied Smile Thanks!
Previous Topic: iptables fail in CT lastest OVZ kernel
Next Topic: shorewall + OpenVZ. What set in interfaces file for correct work?
Goto Forum:
  


Current Time: Sat Nov 09 18:09:44 GMT 2024

Total time taken to generate the page: 0.03303 seconds