Find ports that are not in the requeirement of others
Arthur Chance
freebsd at qeng-ho.org
Fri Nov 10 14:26:03 UTC 2017
On 10/11/2017 05:57, Roland Smith wrote:
> 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
>
> Roland
>
Or if you have the default config file installed, simply
pkg leaf
It's an alias, although the query format is '%n-%v' rather than %o.
--
An amusing coincidence: log2(58) = 5.858 (to 0.0003% accuracy).
More information about the freebsd-questions
mailing list