From owner-freebsd-questions@FreeBSD.ORG Mon Jun 2 17:27:03 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 649EB37B401 for ; Mon, 2 Jun 2003 17:27:03 -0700 (PDT) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id D5A7043F93 for ; Mon, 2 Jun 2003 17:27:01 -0700 (PDT) (envelope-from kitsune@gmx.co.uk) Received: (qmail 896 invoked by uid 65534); 3 Jun 2003 00:27:00 -0000 Received: from ip68-109-49-234.lu.dl.cox.net (HELO fortytwo.) (68.109.49.234) by mail.gmx.net (mp015) with SMTP; 03 Jun 2003 02:27:00 +0200 Date: Tue, 3 Jun 2003 20:26:18 -0500 From: kitsune To: freebsd-questions@freebsd.org Message-Id: <20030603202618.5528adff.kitsune@gmx.co.uk> In-Reply-To: <1054590763.16970.5.camel@jake> References: <1054590763.16970.5.camel@jake> X-Mailer: Sylpheed version 0.8.2claws (GTK+ 1.2.10; i386-portbld-freebsd4.7) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: 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: Tue, 03 Jun 2003 00:27:03 -0000 cd /var/db/pkg/ ls On 02 Jun 2003 17:52:43 -0400 Adam wrote: > 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 > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"