From owner-freebsd-questions@FreeBSD.ORG Thu Apr 3 22:36:27 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 8F07937B401 for ; Thu, 3 Apr 2003 22:36:27 -0800 (PST) Received: from mail.gmx.net (mail.gmx.net [213.165.65.60]) by mx1.FreeBSD.org (Postfix) with SMTP id 6086543FA3 for ; Thu, 3 Apr 2003 22:36:26 -0800 (PST) (envelope-from blueeskimo@gmx.net) Received: (qmail 20784 invoked by uid 65534); 4 Apr 2003 06:36:22 -0000 Received: from i216-58-29-174.gta.igs.net (EHLO [216.58.29.174]) (216.58.29.174) by mail.gmx.net (mp005-rz3) with SMTP; 04 Apr 2003 08:36:22 +0200 From: Adam To: freebsd-questions@freebsd.org Content-Type: text/plain Organization: Message-Id: <1049438180.27963.60.camel@jake> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 Date: 04 Apr 2003 01:36:20 -0500 Content-Transfer-Encoding: 7bit Subject: 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 06:36:27 -0000 (/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. -- Adam