Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Oct 2006 22:31:50 +0100
From:      RW <list-freebsd-2004@morbius.sent.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: pkg_add/delete questions
Message-ID:  <200610232231.52193.list-freebsd-2004@morbius.sent.com>
In-Reply-To: <453D1C9A.6020703@mikestammer.com>
References:  <cf5917110610221852h5d52afbducbfcbe88bbf71345@mail.gmail.com> <200610232043.54859.list-freebsd-2004@morbius.sent.com> <453D1C9A.6020703@mikestammer.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 23 October 2006 20:48, Eric wrote:
> 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.

As I said: "portmanager does a better job [than pkg_cutleaves] as it it takes 
account of build dependencies". Portmaster also only works with runtime 
dependencies.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610232231.52193.list-freebsd-2004>