From owner-freebsd-questions@FreeBSD.ORG Fri Apr 4 00:34:08 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 D71E437B401 for ; Fri, 4 Apr 2003 00:34:08 -0800 (PST) Received: from falcon.midgard.homeip.net (h76n3fls20o913.telia.com [213.67.148.76]) by mx1.FreeBSD.org (Postfix) with SMTP id E94F543F85 for ; Fri, 4 Apr 2003 00:34:06 -0800 (PST) (envelope-from ertr1013@student.uu.se) Received: (qmail 80109 invoked by uid 1001); 4 Apr 2003 08:34:04 -0000 Date: Fri, 4 Apr 2003 10:34:04 +0200 From: Erik Trulsson To: Adam Message-ID: <20030404083404.GA80068@falcon.midgard.homeip.net> Mail-Followup-To: Adam , freebsd-questions@freebsd.org References: <1049438180.27963.60.camel@jake> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1049438180.27963.60.camel@jake> User-Agent: Mutt/1.5.3i 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: Fri, 04 Apr 2003 08:34:09 -0000 On Fri, Apr 04, 2003 at 01:36:20AM -0500, Adam wrote: > (/usr/ports) - (eskimo@ttypb.jake) - (01:31:37) > -$ pkg_info |wc -l > 488 > > As you can see, I need to clean up my system quite a bit. I've got a ton > of things installed, most of which were installed as dependencies for > ports that have since been uninstalled. > > So, what I'd like to do is list all the ports installed on my box that > have nothing dependant on them. In this way, I could start removing > things that I don't need anymore. > > Is there any clever way to do this? I've toyed around with a few ideas, > but haven't been able to come up with anything that works nicely. Look at the output from 'pkg_info -a -R'. -- Erik Trulsson ertr1013@student.uu.se