From owner-freebsd-questions@FreeBSD.ORG Sun Mar 25 01:05:44 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 AFD6616A401 for ; Sun, 25 Mar 2007 01:05:44 +0000 (UTC) (envelope-from freebsd@dfwlp.com) Received: from pollux.dfwlp.com (rrcs-64-183-212-242.sw.biz.rr.com [64.183.212.242]) by mx1.freebsd.org (Postfix) with ESMTP id 8129813C44B for ; Sun, 25 Mar 2007 01:05:44 +0000 (UTC) (envelope-from freebsd@dfwlp.com) Received: from athena.dfwlp.com (athena.dfwlp.com [192.168.125.83]) (authenticated bits=0) by pollux.dfwlp.com (8.13.8/8.13.8) with ESMTP id l2P15gVh035771 for ; Sat, 24 Mar 2007 20:05:42 -0500 (CDT) (envelope-from freebsd@dfwlp.com) Date: Sat, 24 Mar 2007 20:05:42 -0500 From: Jonathan Horne To: freebsd-questions@freebsd.org Message-Id: <20070324200542.dafafe49.freebsd@dfwlp.com> In-Reply-To: <20070325003758.GA812@thought.org> References: <20070325003758.GA812@thought.org> X-Mailer: Sylpheed 2.3.1 (GTK+ 2.10.9; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=3.6 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on pollux.dfwlp.com 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 01:05:45 -0000 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!! ) > > tia, > > gary > > > > -- > Gary Kline kline@thought.org www.thought.org Public Service Unix > out of curiosity, whats stopping from 'rm -rf /usr/ports/*' , and pulling down a whole new ports tree? otherwise, check into 'portsclean -C' and 'portsclean -D'. the -D should do the trick for you, but the -C might also be of use to you too. cheers, jonahtan