From owner-freebsd-questions@FreeBSD.ORG Sun Apr 3 06:56:12 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7FD5316A4CE for ; Sun, 3 Apr 2005 06:56:12 +0000 (GMT) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 55F2B43D49 for ; Sun, 3 Apr 2005 06:56:12 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: from ringworm.mechee.com ([4.27.46.32])0.04 <0IEC00CX8Z9NUF34@vms044.mailsrvcs.net> for questions@freebsd.org; Sun, 03 Apr 2005 00:56:11 -0600 (CST) Received: by ringworm.mechee.com (Postfix, from userid 1001) id E63012CE93F; Sat, 02 Apr 2005 14:23:29 -0800 (PST) Date: Sat, 02 Apr 2005 14:23:28 -0800 From: "Michael C. Shultz" In-reply-to: <424EEB21.1010109@mail.ru> To: questions@freebsd.org Message-id: <200504021423.28745.ringworm01@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=windows-1251 Content-transfer-encoding: 7bit Content-disposition: inline References: <424EEB21.1010109@mail.ru> User-Agent: KMail/1.8 Subject: Re: Some kind of intranet update system for FreeBSD? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Apr 2005 06:56:12 -0000 On Saturday 02 April 2005 10:57 am, Andrew P. wrote: > Hello! > > I know this has been brought up a number of times > and I doubt that it is the right place to post to > or even a right subject to raise, but still. > > It seems we lack some update system in FreeBSD. I > have only 2 freebsd boxes, one serving as an > internet gateway for the other. And whenever I want > to update the latter one, I think about all the > traffic that I'm gonna waste and CPU time to build > and my own time to get some distros from one machine > to another. > > I dream about a server running on my main machine, > which gets queries from intranet freebsd boxes that > want to be updated. The server negotiates with each > client and acts as requested: > 1.1) fetches a binary package, or > 1.2) fetches a source package, or > 1.3) finds a binary/source in its cache, and > 2) builds a package if needed, and > 3) gives binary/source to the client > > Is that so difficult? C'mon guys, just one step > forward to perfection :) > > Very best wishes, > Andrew P. Its doable, providing both boxes have identical CPU's and the port build options on both have the same options. If the CPU's are not identical are you willing to build every thing to the lowest common denominator such as CPUTYPE?=i486 ? If this is the case then really all you have to do is make sure you have a /usr/ports/packages dir on one machine then upgrade portmanager -u. This will put a package for everything upgraded into /usr/ports/packages/All. nfs share /usr/ports/packages/All directory with the other machine and on that one upgrade with something like portupgrade -aP. -Mike