From owner-freebsd-questions Sat Jan 12 10:44: 6 2002 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-31-201-166.mmcable.com [65.31.201.166]) by hub.freebsd.org (Postfix) with SMTP id C41F037B417 for ; Sat, 12 Jan 2002 10:44:00 -0800 (PST) Received: (qmail 67268 invoked by uid 100); 12 Jan 2002 18:43:59 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15424.33775.318793.410303@guru.mired.org> Date: Sat, 12 Jan 2002 12:43:59 -0600 To: Gabriel Ambuehl Cc: questions@freebsd.org Subject: Re: Re[4]: "Cluster" administration software... In-Reply-To: <149328578911.20020112133439@buz.ch> References: <15424.7894.915725.194805@guru.mired.org> <149328578911.20020112133439@buz.ch> 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.43 (Python 2.2; freebsd-4.4-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 Gabriel Ambuehl types: > 12 Jan 2002, 12:32:38, you wrote: > > Portupgrade can do part of that for you. If you tell it to use > > packages, it will check for them locally, and if that fails it uses > > pkg_fetch to fetch the package. pkg_fetch, like pkg_add, uses the > > environment variable PACKAGEROOT to specify where to look for > > packages. So the syntax is something like > > > PACKAGEROOT=http://myrepository/packages portupgrade > > --use-packages-only --all > > > That leaves the problem of installing the package the first time, > > and ignores the *other* problems you've pointed out with > > portupgrade. > > I know about that solution, but it doesn't work on a machine without > an up to data ports tree which means that one has to track ports from > CVS on each and every machine (or mount it via NFS) which definitely > is suboptimal... That's part of the "other" problems I mentioned. pkg_add supports PACKAGEROOT as well. What portupgrade solves for you is deciding when things need to be updated. Hmm - I think you could almost do this with diff and ftp. Assume the list of installed packages is in DIR/packages. Then you want to do something like: mv packages packages.old sort packages.new > packages diff -u packages.old packages > packages.diff pkg_delete -fd `grep ^- packages.diff | sed s/^-//` pkg_add `grep ^+ packages.diff | sed s/^+//` on a regular basis. The /var/db/pkg dependencies will be screwed up on the client systems, but you probably don't care about 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