From owner-freebsd-stable@FreeBSD.ORG Wed Jun 26 23:20:49 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C78B629D for ; Wed, 26 Jun 2013 23:20:49 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id 53D8D162A for ; Wed, 26 Jun 2013 23:20:48 +0000 (UTC) Received: from ur.dons.net.au (ppp118-210-92-241.lns20.adl2.internode.on.net [118.210.92.241]) (authenticated bits=0) by cain.gsoft.com.au (8.14.4/8.14.3) with ESMTP id r5QNKHVe044096 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 27 Jun 2013 08:50:23 +0930 (CST) (envelope-from doconnor@gsoft.com.au) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: portupgrade(1) | portmaster(8) -- which is more effective for large upgrade? From: "Daniel O'Connor" In-Reply-To: <20130626202332.GB80235@icarus.home.lan> Date: Thu, 27 Jun 2013 08:50:16 +0930 Content-Transfer-Encoding: 7bit Message-Id: <0E80C8BC-2CE5-4D52-9A42-326481DA343E@gsoft.com.au> References: <5e20544e3580a75759c3858f31894dc9.authenticated@ultimatedns.net> <20130626202332.GB80235@icarus.home.lan> To: Jeremy Chadwick X-Mailer: Apple Mail (2.1508) X-Spam-Score: 0.163 () BAYES_00,RDNS_DYNAMIC X-Scanned-By: MIMEDefang 2.67 on 203.31.81.10 Cc: Chris H , freebsd-stable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jun 2013 23:20:49 -0000 On 27/06/2013, at 5:53, Jeremy Chadwick wrote: > cd /usr/ports/whatever > make install clean > {lather rinse repeat until done} The faster version of this is find /usr/ports -maxdepth 3 -name work -type d -print0 | xargs -0 rm -rf Simpler is to put.. WRKDIRPREFIX=/foo/bar in /etc/make.conf Then you can just rm -rf /foo/bar/work to delete all of the port build goop. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C