From owner-freebsd-questions@FreeBSD.ORG Sat Apr 5 15:19:58 2003 Return-Path: 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 BA8A037B401 for ; Sat, 5 Apr 2003 15:19:58 -0800 (PST) Received: from mail.gmx.net (mail.gmx.de [213.165.65.60]) by mx1.FreeBSD.org (Postfix) with SMTP id 8CAA743FA3 for ; Sat, 5 Apr 2003 15:19:57 -0800 (PST) (envelope-from blueeskimo@gmx.net) Received: (qmail 11636 invoked by uid 65534); 5 Apr 2003 23:19:56 -0000 Received: from i216-58-29-174.gta.igs.net (EHLO [216.58.29.174]) (216.58.29.174) by mail.gmx.net (mp001-rz3) with SMTP; 06 Apr 2003 01:19:56 +0200 From: Adam To: Mike Meyer In-Reply-To: <16015.24559.667912.675361@guru.mired.org> References: <1049438180.27963.60.camel@jake> <1049582306.91991.30.camel@jake> <16015.24559.667912.675361@guru.mired.org> Content-Type: text/plain Organization: Message-Id: <1049584789.91991.32.camel@jake> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4 Date: 05 Apr 2003 18:19:49 -0500 Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: How to list installed ports that have no dependant ports X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Apr 2003 23:19:59 -0000 On Sat, 2003-04-05 at 17:59, Mike Meyer wrote: > Here's a simple python script for you. You'll need python 2.2 if you > haven't got it already. Feed it the output of "pkg_info -a -R" on > standard in, and it'll output the package names of all packages that > aren't required by other packages. > > Don't forget that you may have packages which are only required by > packages that you don't want, so you need to iterate over the deletion > process multiple times. Thanks, the script works great .. I'll be making heavy use of this .. ;p -- Adam