From owner-freebsd-ports@FreeBSD.ORG Sat Feb 25 02:35:00 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9824316A420; Sat, 25 Feb 2006 02:35:00 +0000 (GMT) (envelope-from aaron@freebsd.org) Received: from priv-edmwes48.telusplanet.net (defout.telus.net [204.209.205.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0777E43D48; Sat, 25 Feb 2006 02:34:55 +0000 (GMT) (envelope-from aaron@freebsd.org) Received: from [192.168.15.100] (really [137.186.246.196]) by priv-edmwes48.telusplanet.net (InterMail vM.6.01.05.04 201-2131-123-105-20051025) with ESMTP id <20060225023455.KRTH7582.priv-edmwes48.telusplanet.net@[192.168.15.100]>; Fri, 24 Feb 2006 19:34:55 -0700 Message-ID: <43FFC282.5090601@freebsd.org> Date: Fri, 24 Feb 2006 19:35:46 -0700 From: Aaron Dalton Organization: FreeBSD.org User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Peter References: <20060225022934.87508.qmail@web60023.mail.yahoo.com> In-Reply-To: <20060225022934.87508.qmail@web60023.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Jeff Cross , freebsd-ports@freebsd.org, freebsd-questions@freebsd.org Subject: Re: Remove a Port and All Dependencies X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Feb 2006 02:35:00 -0000 Peter wrote: > --- Aaron Dalton wrote: > > >>Jeff Cross wrote: >> >>>-----BEGIN PGP SIGNED MESSAGE----- >>>Hash: SHA1 >>> >>>I would like to know if it is possible to remove a port/package and >> >>all >> >>>of the dependencies it installed that are not needed by other >> >>applications. >> >>>Example: I installed Nautilus and some Gnome games but don't want them >>>installed any longer. However, if I remove the package itself, >> >>doesn't >> >>>it leave all of the other dependencies out there? >>> >>>Upgrading my system takes forever now that there are a ton of libs and >>>such installed by these applications. So, if anyone can point me in >> >>the >> >>>right direction for doing this I would greatly appreciate it. >>> >> >>pkg_deinstall -R portname > > > Wouldn't this remove all ports that depend on the port in question (its > dependants)? The OP wants to remove all ports that are *required* by the > port (its dependencies). But furthermore, he wants to remove those that > AREN'T NEEDED BY ANY OTHER PORTS. > pkg_deinstall won't remove ports that are required by other ports. pkg_deinstalling a Perl (p5-) port, for example, won't forcefully deinstall lang/perl itself (unless you're removing the very last port that requires lang/perl). 'man pkg_deinstall' will tell you how to accomplish what you want. There are a number of other port mgmt utilities as well. (sysutils/portmaster comes to mind.) Good luck! -- Aaron Dalton aaron@FreeBSD.org FreeBSD Ports Committer