From owner-freebsd-questions@FreeBSD.ORG Tue Feb 1 08:07:16 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 47A8316A4CE for ; Tue, 1 Feb 2005 08:07:16 +0000 (GMT) Received: from humle.it.ki.se (humle.it.ki.se [130.237.101.252]) by mx1.FreeBSD.org (Postfix) with ESMTP id E679B43D55 for ; Tue, 1 Feb 2005 08:07:14 +0000 (GMT) (envelope-from christopher.illies@molmed.ki.se) Received: from Klabautermann.ks.se (gate2.ks.se [193.10.63.101]) by humle.it.ki.se (8.13.1/8.13.1) with ESMTP id j1187AZ7009154; Tue, 1 Feb 2005 09:07:11 +0100 (MET) Received: by Klabautermann.ks.se (Postfix, from userid 1001) id EFC3AC402; Tue, 1 Feb 2005 09:04:22 +0100 (CET) Date: Tue, 1 Feb 2005 09:04:22 +0100 From: Christopher Illies To: Matt LaPlante Message-ID: <20050201080422.GA72681@Klabautermann.ks.se> Mail-Followup-To: Matt LaPlante , freebsd-questions@freebsd.org References: <200502010132.j111WhkT007090@smtp3.server.rpi.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200502010132.j111WhkT007090@smtp3.server.rpi.edu> User-Agent: Mutt/1.4.2.1i cc: freebsd-questions@freebsd.org 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: Tue, 01 Feb 2005 08:07:16 -0000 On Mon, Jan 31, 2005 at 08:32:41PM -0500, Matt LaPlante wrote: > > I know the ports system is designed to install dependencies automatically, > but how does one go about removing them? Say one large package installs > several dependencies, but then later on that package is removed...and now > we're left with several orphaned packages. Is there a way to either detect, > or even automatically clean out orphaned packages? I'm particularly > concerned because I'm dealing with a few systems which are rather well aged, > and have gone through several upgrade cycles. I know the Linux version of > the ports system found in Gentoo (portage) offers extensive functionality > for finding and removing orphaned dependencies, so I'm hoping FreeBSD has > some such feature as well. Thanks. Have a look at /usr/ports/sysutils/pkg_cutleaves. It is a script that detects and removes orphaned dependencies. Christopher