Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Oct 2006 14:48:42 -0500
From:      Eric <heli@mikestammer.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: pkg_add/delete questions
Message-ID:  <453D1C9A.6020703@mikestammer.com>
In-Reply-To: <200610232043.54859.list-freebsd-2004@morbius.sent.com>
References:  <cf5917110610221852h5d52afbducbfcbe88bbf71345@mail.gmail.com>	<44hcxvukpi.fsf@be-well.ilk.org> <200610232043.54859.list-freebsd-2004@morbius.sent.com>

next in thread | previous in thread | raw e-mail | index | archive | help
RW wrote:
> On Monday 23 October 2006 16:15, Lowell Gilbert wrote:
>> "Mark Jayson Alvarez" <markjayson.alvarez@gmail.com> writes:
>>> I have several questions:
>>>
>>> 1. If I install a particular package, its dependencies will be
>>> installed as well. Now if I remove it later using pkg_delete, only
>>> that package will be removed and not the dependencies. The reason I
>>> guess is because some other packages may be dependent on those
>>> dependencies as well. Is there a way to remove a particular package
>>> and all of its dependencies (given that no other package is dependent
>>> on those dependencies)?
>> Is the pkg_cutleaves port what you're looking for?
> 
> If you build anything from ports, portmanager does a better job as it it takes 
> account of build dependencies.

portmaster has an -s switch that will remove ports no longer needed by 
any other ports, so what you can do is say uninstall port A then run 
portmaster -s and it will pick up any ports that port A required but 
nothing else does and offer to remove them. it is an alternate to 
portmanager, so you will not need both.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?453D1C9A.6020703>