From owner-freebsd-questions@FreeBSD.ORG Wed Feb 2 02:13:12 2005 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 6CF7F16A4CE for ; Wed, 2 Feb 2005 02:13:12 +0000 (GMT) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 266F543D5A for ; Wed, 2 Feb 2005 02:13:12 +0000 (GMT) (envelope-from list-freebsd-2004@morbius.sent.com) Received: from frontend3.messagingengine.com (frontend3.internal [10.202.2.152]) by frontend1.messagingengine.com (Postfix) with ESMTP id AD9F1C5436C for ; Tue, 1 Feb 2005 21:13:10 -0500 (EST) X-Sasl-enc: Qxg9a/5rTxL7HyFuk71Uww 1107310387 Received: from gumby.localhost (dsl-80-41-50-147.access.as9105.com [80.41.50.147]) by frontend3.messagingengine.com (Postfix) with ESMTP id 5A281247F3 for ; Tue, 1 Feb 2005 21:13:07 -0500 (EST) From: RW To: freebsd-questions@freebsd.org Date: Wed, 2 Feb 2005 02:12:52 +0000 User-Agent: KMail/1.7.2 References: <200502010132.j111WhkT007090@smtp3.server.rpi.edu> <20050201080422.GA72681@Klabautermann.ks.se> In-Reply-To: <20050201080422.GA72681@Klabautermann.ks.se> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200502020212.53237.list-freebsd-2004@morbius.sent.com> Subject: Re: Cleaning Out 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: Wed, 02 Feb 2005 02:13:12 -0000 On Tuesday 01 February 2005 08:04, Christopher Illies wrote: > Have a look at /usr/ports/sysutils/pkg_cutleaves. It is a script that > detects and removes orphaned dependencies. Just bear in mind that some of the leaves will be required for building other ports. Whilst they can be safely removed, it might save time to leave them. Personally, I think pkg_cutleaves has it about right, anything more automated may lead to nasty surprises. Such systems have no reliable way of knowing whether users are making direct use of a port that was originally installed as a dependency.