From owner-freebsd-questions@FreeBSD.ORG Tue Sep 27 20:16:06 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 B85B316A41F for ; Tue, 27 Sep 2005 20:16:06 +0000 (GMT) (envelope-from rmarella@gmail.com) Received: from ms-smtp-03-eri0.socal.rr.com (ms-smtp-03-qfe0.socal.rr.com [66.75.162.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A7D343D49 for ; Tue, 27 Sep 2005 20:16:06 +0000 (GMT) (envelope-from rmarella@gmail.com) Received: from p4 (cpe-70-93-57-42.hawaii.res.rr.com [70.93.57.42]) by ms-smtp-03-eri0.socal.rr.com (8.12.10/8.12.7) with ESMTP id j8RKG3gQ000794; Tue, 27 Sep 2005 13:16:03 -0700 (PDT) Date: Tue, 27 Sep 2005 10:16:02 -1000 From: Robert Marella To: "Andrew P." Message-ID: <20050927101602.7c6845ef@p4> In-Reply-To: References: X-Mailer: Sylpheed-Claws 1.9.14 (GTK+ 2.6.10; i386-portbld-freebsd5.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine Cc: freebsd-questions@freebsd.org, Gordon Ross Subject: Re: Sharing /usr/ports X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2005 20:16:06 -0000 On Tue, 27 Sep 2005 12:46:49 +0400 "Andrew P." wrote: > On 9/24/05, Gordon Ross wrote: > > I've got two FreeBSD 5.4 machines. One is a server, the other is a > > desktop. > > > > Like others have already told you here, the best solution > is packaging. There is a problem though - you can't make > a package without installing the port first. > > If you're using portupgrade the whole thing is very simple. > You mount /usr/ports from your file server on every client > machine, and 'setenv WRKDIRPREFIX /usr/local/mywrk'. > > Then you just always run portupgrade with the -p switch > on your fast machines, and use -PP (double P) switch > on your slow machines. If they are all of single architecture > and you don't put some very custom stuff in /etc/make.conf, > it'll all work completely hassle-free. > > You'll also want to ensure that portupgrade uses the same > ports db driver on all machines. dbm_hash is probably the > most portable one, so you can place > ENV['PORTS_DBDRIVER'] = 'dbm_hash' > in /usr/local/etc/pkgtools.conf on every machine. > > >From then on you can "portsnap fetch && portsnap update \ > && portsdb -uUF && portupgrade -arRF" every morning, > "portupgrade -aprR" on your build boxes, "portupgrade -arRPP" > on your other boxes - and then just relax sit back and enjoy > the magical feeling of being up-to-date. > > > Cheerz, > Andrew P. Thank you for posting this Andrew. I have been messing with keeping my slower systems updated for awhile. This will make it quicker. I have one question. Is there an easy way to keep the /usr/ports/packages/All directory clean? This is an example of what I mean: p4# cd /usr/ports/packages/All p4# ls -l xfce* -rw-r--r-- 1 root wheel 2886 Mar 18 2005 xfce-4.2.0_1.tbz -rw-r--r-- 1 root wheel 2893 Apr 7 18:33 xfce-4.2.1.1.tbz -rw-r--r-- 1 root wheel 2246 Sep 27 08:41 xfce-4.2.2.tbz -rw-r--r-- 1 root wheel 94955 Mar 18 2005 xfce4-appfinder-4.2.0_1.tbz -rw-r--r-- 1 root wheel 95435 Apr 7 17:42 xfce4-appfinder-4.2.1.tbz -rw-r--r-- 1 root wheel 203207 Sep 27 08:43 xfce4-appfinder-4.2.2.tbz -rw-r--r-- 1 root wheel 2100621 Mar 18 2005 xfce4-desktop-4.2.0_1.tbz -rw-r--r-- 1 root wheel 2125020 Apr 7 17:52 xfce4-desktop-4.2.1.tbz -rw-r--r-- 1 root wheel 2344995 Sep 27 08:47 xfce4-desktop-4.2.2.tbz -rw-r--r-- 1 root wheel 1962410 Mar 18 2005 xfce4-fm-4.2.0_1.tbz -rw-r--r-- 1 root wheel 1966223 Apr 7 17:38 xfce4-fm-4.2.1.tbz -rw-r--r-- 1 root wheel 3162381 Sep 27 08:45 xfce4-fm-4.2.2.tbz etcetera, etcetera, etcetera. The old packages can start to take up a lot of space. Thanks Robert