From owner-freebsd-questions@FreeBSD.ORG Sun Mar 25 20:38:42 2007 Return-Path: X-Original-To: freebsd-questions@FreeBSD.ORG Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 634FA16A401 for ; Sun, 25 Mar 2007 20:38:42 +0000 (UTC) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (dsl231-043-140.sea1.dsl.speakeasy.net [216.231.43.140]) by mx1.freebsd.org (Postfix) with ESMTP id 070D813C4B0 for ; Sun, 25 Mar 2007 20:38:41 +0000 (UTC) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (localhost [127.0.0.1]) by tao.thought.org (8.13.8/8.13.1) with ESMTP id l2PKdHAC068886; Sun, 25 Mar 2007 12:39:17 -0800 (PST) (envelope-from kline@tao.thought.org) Received: (from kline@localhost) by tao.thought.org (8.13.8/8.13.1/Submit) id l2PKdG9U068873; Sun, 25 Mar 2007 12:39:16 -0800 (PST) (envelope-from kline) Date: Sun, 25 Mar 2007 12:39:16 -0800 From: Gary Kline To: Randy Pratt Message-ID: <20070325203916.GA67757@thought.org> References: <20070325003758.GA812@thought.org> <20070324214131.e953233b.bsd-unix@earthlink.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070324214131.e953233b.bsd-unix@earthlink.net> User-Agent: Mutt/1.4.2.2i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: Observing twenty years of service to the Unix community Cc: Gary Kline , FreeBSD Mailing List Subject: Re: auto-removal of earlier package?? 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: Sun, 25 Mar 2007 20:38:42 -0000 On Sat, Mar 24, 2007 at 09:41:31PM -0400, Randy Pratt wrote: > On Sat, 24 Mar 2007 16:37:58 -0800 > Gary Kline wrote: > > > > > Guys, > > > > Can anybody suggest ascript means to rm -i a whole slew of > > packages I am collection in /usr/ports/packages/All/? > > > > On some of my i686's I have collected as many as three versions > > of some *tbz files. Other than doing this by-hand on four > > boxens, I'd have automate. pkgdb -F will ask if the user wants > > to delete (the earlier) of two packages with an [n]. I'd rather > > not reinvent the wheel. > > > > (I *thought* I was nearly finished updating this machine; > > suddenty I've got 50 new ones!! ) > > You might try "portsclean -P". I've not used it but it looks like > it might be what you're looking for. You can also test it by > adding the "-n" (no execute) to see if it will do what you want, > ie "portsclean -nP" for a dry run. Looks like you've got it right, thanks for the tip. I did copy my entire slew of *.tbz packages to a server with lots of room before I did the test run. I'll diff a ls -l of the directories when portsclean -P finishes. gary > > Randy > -- -- Gary Kline kline@thought.org www.thought.org Public Service Unix