Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Nov 2017 14:25:45 +0000
From:      Arthur Chance <freebsd@qeng-ho.org>
To:        Roland Smith <rsmith@xs4all.nl>, Olivier <Olivier.Nicole@cs.ait.ac.th>
Cc:        questions@freebsd.org
Subject:   Re: Find ports that are not in the requeirement of others
Message-ID:  <898813fa-5bc5-dae2-5d40-618e07761b9c@qeng-ho.org>
In-Reply-To: <20171110055737.GA30695@slackbox.erewhon.home>
References:  <wu77euyg7qu.fsf@banyan.cs.ait.ac.th> <20171110055737.GA30695@slackbox.erewhon.home>

next in thread | previous in thread | raw e-mail | index | archive | help
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).



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?898813fa-5bc5-dae2-5d40-618e07761b9c>