From owner-freebsd-questions Sun Feb 24 22: 2:19 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mired.org (dsl-64-192-6-133.telocity.com [64.192.6.133]) by hub.freebsd.org (Postfix) with SMTP id 429EA37B402 for ; Sun, 24 Feb 2002 22:02:13 -0800 (PST) Received: (qmail 64078 invoked by uid 100); 25 Feb 2002 06:02:11 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15481.54114.915563.522868@guru.mired.org> Date: Mon, 25 Feb 2002 00:02:10 -0600 To: Morten Grunnet Buhl Cc: questions@freebsd.org Subject: Re: Installing ports in multiplplaces In-Reply-To: <12396781@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: "Mike Meyer" X-Delivery-Agent: TMDA/0.46 (Python 2.2; freebsd-4.5-STABLE-i386) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Morten Grunnet Buhl types: > Hey y'all > Does anyone know if its possible to intall a port in multiple places. > 'make install DESTDIR=/nfs/machine1 /nfs/machine2 /nfs/machine3 /' > or do I have to make separat installs for every DESTDIR? I don't think the syntax you have will work. I believe what you're asking is whether or not: make for DESTDIR in /nfs/machine1 /nfs/machine2 /nfs/machine3 / do make install DESTDIR=$DESTDIR done (or words to that effect) will work or not. I believe the answer is yes, that will do what you want, in that it will install the packages in /usr/local (or /usr/X11R6) under each DESTDIR. On the other hand, I suspect that as others have indicated, path names and dependencies will not work out cleanly. > - Okey thanks, Its just that I would like to have one place where I > can check if any ports on all my systems needs to be updated. In > this way I would only need to compare versions on one system insted > of having to check versions on each system. Is there an easy way of > doing this or am I looking for trouble? No, you're not looking for trouble. Assuming your systems are all very similar, you nave a number of options. One is, as others have pointed out, to keep a collection of the most recent packages on a shared NFS file system. Point PACKAGES in /etc/make.conf to your shared file system. Add to that keeping /usr/ports mounted r/o on all those places - believe me, you do *not* want to build in the same tree on multiple machines - and then set the weekly_status_pkg_enable to "YES" in /etc/periodic. That way each machine will generate a list of out of date packages installed on it every week. You can use the portupgrade version of the same, which should be faster. Finally, you can do what we used to do back in the days when machines were identical and disk space was expensive - more than $10/MB - and put /usr/local - and /usr/X11R6 if needed - on the shared NFS file system, and just have every machine mount that. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message