LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Update/upgrade cluster through one node? (https://www.linuxquestions.org/questions/debian-26/update-upgrade-cluster-through-one-node-378442/)

jford_oldman 10-30-2005 07:00 PM

Update/upgrade cluster through one node?
 
I'm pretty much a newbie at Linux. I've got four rather old PCs, each running Debian 3.1, all connected to a system running XP with freeproxy serving to allow access to the 'net. I will shortly reconfigure this cluster so that one Debian system will run Apache 2 as a web server, and - hopefully - provide IP Masquerading for the internal cluster.

My question is this: right now, I regularly use apt-get update and apt-get upgrade to keep the software current. It occurred to me today (slow learner, sorry) that each system is going out on the net and contacting the repositories, even though the first system upgraded pretty much has all the software the subsequent systems need. When I reconfigure the cluster, is there a way I can configure it so that the "Apache" system - the one providing the link between the external web and the internal network - serves as the repository for subsequent systems?

I tried searching, but I don't know enough to know what exactly I should be search for, so even advice along that line would be appreciated.

TIA.

jlinkels 10-30-2005 08:51 PM

Information about this you might find in the Debian Reference Manual, chapter 6 "Debian Package Management"

I think you should try to create something that is named a local repository. I tried it once and I failed, but that might be because I did something wrong. I would be interested in your experiences if you succeeded, since I have more or less the same situation as you with multiple machines running Debian on the LAN

jlinkels

jford_oldman 11-01-2005 07:34 AM

Thanks for the pointer. I will let you know if I get it working, but I probably won't have time until Christmas to work on this.

I did find "How to build a local apt-get mirror", which describes what I think is a possible solution. And the apt-get info suggests that I should be able to installing an http or ftp daemon on the "main" node - and it will be running Apache2. However, I'm more interested in the possibility of using the file options in the sources.list files on the "other" nodes.

I'll let you know.

Wells 11-01-2005 10:26 AM

Something else you could give a shot is sharing out /var/cache/apt via NFS to the other machines in the same location. This way only one machine is actually holding onto the cached files. I have no idea whether or not this will work, however, so if it doesn't work, you may want to have the old directory lying around somewhere so that you can repair the damage this may cause.

jford_oldman 11-01-2005 11:34 AM

This is more in line with what I'd like to do, if I'm able to figure it out. The docs say that the sources.list can include nfs: repositories as well as http: and ftp: repositories. I just haven't seen any examples of that actually being done.

yanik 11-01-2005 11:43 AM

Look at apt-proxy

Quote:

apt-proxy automatically builds a Debian HTTP mirror based
on requests which pass through the proxy. It's great for
multiple Debian machines on the same network with a slower
internet link.
.
The archive is automatically kept up to date using http,
ftp or rsync. Cache cleaning of unused and old versions
is configurable. You can also import the contents of
your apt cache into the archive using apt-proxy-import.
.
For more information, see the apt-proxy homepage at
http://apt-proxy.sourceforge.net
You just have to change the /etc/apt/sources.list on the clients to point to the apt-proxy machine.

jford_oldman 11-01-2005 07:13 PM

This sounds very good. Thanks a lot.

Wells 11-02-2005 10:15 AM

Oooh...nice! This looks like an automated version of what I was talking about, sort of.

jlinkels 11-02-2005 07:09 PM

I haven't tried it, but it looks very good... exactly the thing I was looking for.

jlinkels


All times are GMT -5. The time now is 10:51 PM.