Find ports that are not in the requeirement of others

Roland Smith rsmith at
Fri Nov 10 05:58:51 UTC 2017

On Fri, Nov 10, 2017 at 09:58:17AM +0700, Olivier wrote:
> Hi,
> After a couple of years runnig and using one single machine, installing
> some ports for testing, etc. I end up with hundred of ports and
> packages, especially libraries that I never use directly, so am not
> really aware of.
> Is there an incantation of pkg(8) that can list all the ports that are a
> leaf in the tree of the installed ports.

>From pkg-query(8):

    pkg query -e '%#r = 0' %o

[plain text email much appreciated]

More information about the freebsd-questions mailing list