Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Aug 2023 16:33:25 +0100
From:      Graham Perrin <grahamperrin@gmail.com>
To:        freebsd-pkg@freebsd.org
Subject:   pkg query --evaluate (was: pkg-query(8): unknown query format key: '%i')
Message-ID:  <835b25ff-81a5-6c18-f335-e8141c8da81a@gmail.com>
In-Reply-To: <88d40ec4-1b5a-4d5e-b6f7-618a3b31fdbb@gmail.com>
References:  <88d40ec4-1b5a-4d5e-b6f7-618a3b31fdbb@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------liKJf1p311kLv7BnzRLc4ZR9
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

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?

--------------liKJf1p311kLv7BnzRLc4ZR9
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<html data-lt-installed="true">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body style="padding-bottom: 1px;">
    <p>On 15/08/2023 08:30, Graham Perrin wrote:<br>
    </p>
    <blockquote type="cite"
      cite="mid:88d40ec4-1b5a-4d5e-b6f7-618a3b31fdbb@gmail.com">…<br>
      <br>
<a class="moz-txt-link-rfc2396E" href="https://man.freebsd.org/cgi/man.cgi?query=pkg-query&amp;sektion=8&amp;manpath=freebsd-ports">&lt;https://man.freebsd.org/cgi/man.cgi?query=pkg-query&amp;sektion=8&amp;manpath=freebsd-ports&gt;</a>;
      <br>
    </blockquote>
    <p>I'm probably closer to understanding, but can't figure out how to
      find packages that have a particular string in their message. <br>
    </p>
    <p>For example: <br>
    </p>
    <p><span style="font-family:monospace"><span
          style="color:#000000;background-color:#ffffff;">% pkg query
          --evaluate '%m = <a class="moz-txt-link-abbreviated" href="mailto:me@forkbomb9.ch">me@forkbomb9.ch</a>' %o
        </span><br>
        net-mgmt/netdata
        <br>
        % pkg query %M netdata
        <br>
        On install:
        <br>
        Quick start for local-only use:
        <br>
        <br>
        1. sysrc netdata_enable="YES"
        <br>
        2. service netdata start
        <br>
        3. Go to <a class="moz-txt-link-freetext" href="http://localhost:19999/">http://localhost:19999/</a>;
        <br>
        4. &lt;Optional&gt; Connect to Netdata Cloud using the
        netdata-claim.sh script:
        <br>
          <a class="moz-txt-link-freetext" href="https://learn.netdata.cloud/docs/agent/claim#claiming-script">https://learn.netdata.cloud/docs/agent/claim#claiming-script</a>;
        <br>
        <br>
        % pkg query --evaluate '%M ~ netdata' %o
        <br>
        % <br>
      </span></p>
    <p>Where the third command did not find a package with the phrase
      'netdata' in its message, what am I doing wrong?<span
        style="font-family:monospace"><br>
      </span></p>
  </body>
  <lt-container></lt-container>
</html>

--------------liKJf1p311kLv7BnzRLc4ZR9--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?835b25ff-81a5-6c18-f335-e8141c8da81a>