From owner-freebsd-questions@FreeBSD.ORG Sun Mar 25 00:38:20 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 33B8216A400 for ; Sun, 25 Mar 2007 00:38:20 +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 A729713C459 for ; Sun, 25 Mar 2007 00:38:13 +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 l2P0cFxM000860 for ; Sat, 24 Mar 2007 16:38:31 -0800 (PST) (envelope-from kline@tao.thought.org) Received: (from kline@localhost) by tao.thought.org (8.13.8/8.13.1/Submit) id l2P0cA2j000859 for freebsd-questions@FreeBSD.ORG; Sat, 24 Mar 2007 16:38:10 -0800 (PST) (envelope-from kline) Date: Sat, 24 Mar 2007 16:37:58 -0800 From: Gary Kline To: FreeBSD Mailing List Message-ID: <20070325003758.GA812@thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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: Subject: 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 00:38:20 -0000 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