Re: pkg query --evaluate

From: Stefan Esser <se_at_FreeBSD.org>
Date: Tue, 15 Aug 2023 16:58:51 UTC
Am 15.08.23 um 17:33 schrieb Graham Perrin:
> On 15/08/2023 08:30, Graham Perrin wrote:
> 
>> …
>>
>> <https://man.freebsd.org/cgi/man.cgi?query=pkg-query&sektion=8&manpath=freebsd-ports>
> 
> I'm probably closer to understanding, but can't figure out how to find packages 
> that have a particular string in their message.
> 
> For example:
> 
> % pkg query --evaluate '%m = me@forkbomb9.ch' %o
> net-mgmt/netdata
> % pkg query %M netdata
> On install:
> Quick start for local-only use:
> 
> 1. sysrc netdata_enable="YES"
> 2. service netdata start
> 3. Go to http://localhost:19999/
> 4. <Optional> Connect to Netdata Cloud using the netdata-claim.sh script:
> https://learn.netdata.cloud/docs/agent/claim#claiming-script
> 
> % pkg query --evaluate '%M ~ netdata' %o
> %
> 
> Where the third command did not find a package with the phrase 'netdata' in its 
> message, what am I doing wrong?

Please try the following command instead:

% pkg query -e '%M ~ *netdata*' %o

Regards, STefan