Date: Fri, 24 Feb 2006 19:35:46 -0700 From: Aaron Dalton <aaron@freebsd.org> To: Peter <petermatulis@yahoo.ca> Cc: Jeff Cross <jeff.cross@averageadmins.com>, freebsd-ports@freebsd.org, freebsd-questions@freebsd.org Subject: Re: Remove a Port and All Dependencies Message-ID: <43FFC282.5090601@freebsd.org> In-Reply-To: <20060225022934.87508.qmail@web60023.mail.yahoo.com> References: <20060225022934.87508.qmail@web60023.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Peter wrote: > --- Aaron Dalton <aaron@freebsd.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43FFC282.5090601>