From owner-freebsd-questions@FreeBSD.ORG Mon Jun 2 14:52:42 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 CA29837B401 for ; Mon, 2 Jun 2003 14:52:42 -0700 (PDT) Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id ABFB143F3F for ; Mon, 2 Jun 2003 14:52:41 -0700 (PDT) (envelope-from blueeskimo@gmx.net) Received: (qmail 8629 invoked by uid 65534); 2 Jun 2003 21:52:40 -0000 Received: from i216-58-29-174.gta.igs.net (EHLO [216.58.29.174]) (216.58.29.174) by mail.gmx.net (mp021) with SMTP; 02 Jun 2003 23:52:40 +0200 From: Adam To: freebsd-questions@freebsd.org Content-Type: text/plain Organization: Message-Id: <1054590763.16970.5.camel@jake> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4 Date: 02 Jun 2003 17:52:43 -0400 Content-Transfer-Encoding: 7bit Subject: Listing installed ports without any ports dependent on it 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: Mon, 02 Jun 2003 21:52:43 -0000 What I need to do is this: For each installed port that has NO other installed ports dependent on it, output the full name of the port In other words, I want a script to generate the list of ports that can be deinstalled without forcing (-f). A few months ago a guy posted a python script to this mailing list that did this, but I've since lost the script and it's too long ago for any of the online archives. If you're the nice guy that shared this script before, would you mind sharing it again? Or, does someone else have a script to do this? I remember it requiring a bit of cleverness to get it to work nicely. Thanks, -- Adam