From owner-freebsd-questions@FreeBSD.ORG Thu Sep 29 09:35:39 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 C61A616A41F for ; Thu, 29 Sep 2005 09:35:39 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4118243D4C for ; Thu, 29 Sep 2005 09:35:39 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: by zproxy.gmail.com with SMTP id z31so191914nzd for ; Thu, 29 Sep 2005 02:35:38 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=iqXDi8A9t3FXMCzl1JfSRkaZ33XJaNPdrMYtotGliwkiQtZkOf+OHRQxwnTe9OcchVpQTCrMIJDcMBav/ggcxYo0jtO459Zi7RzZN6xsaFNxS7B/9QEEIiy+sQpabg8nqTSf8vTPb17JPFyMc2mUaFzmvVfSXx2GtNsqiKAJgKU= Received: by 10.36.71.6 with SMTP id t6mr4298241nza; Thu, 29 Sep 2005 02:35:38 -0700 (PDT) Received: by 10.37.20.34 with HTTP; Thu, 29 Sep 2005 02:35:38 -0700 (PDT) Message-ID: Date: Thu, 29 Sep 2005 13:35:38 +0400 From: "Andrew P." To: Robert Marella In-Reply-To: <20050927101602.7c6845ef@p4> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050927101602.7c6845ef@p4> 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 Reply-To: "Andrew P." List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2005 09:35:40 -0000 On 9/28/05, Robert Marella wrote: > 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'] =3D '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.t= bz > -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 > Glad to be helpful, Robert! Sure, there's an easy way, just run # portsclean -P and all your outdated packages are gone. "man portsclean" for details. Cheerz, Andrew P.