From nobody Tue Aug 15 15:33:25 2023 X-Original-To: freebsd-pkg@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RQFfL6NK8z4q2cj for ; Tue, 15 Aug 2023 15:33:30 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RQFfL0sbrz4PgG for ; Tue, 15 Aug 2023 15:33:30 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20221208 header.b=TWnAyJ1z; spf=pass (mx1.freebsd.org: domain of grahamperrin@gmail.com designates 2a00:1450:4864:20::62b as permitted sender) smtp.mailfrom=grahamperrin@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-986d8332f50so749367366b.0 for ; Tue, 15 Aug 2023 08:33:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692113608; x=1692718408; h=in-reply-to:subject:content-language:references:to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=ycAaPUVRG6E+FGEXryKmEpToYqlhOACuEsofqXZEDZ0=; b=TWnAyJ1zE10Lx3YY2WoUXSwwoufQn0x87v/tne8Sf0OIVf4dw0Vxz4CzTJU93Z/2Jy GcAhN5FGihQbNOvqg2PY7I9cJF/eOD6yT0BB64sbhmg8ygIHtagun6D78np8myxdR+Gx VSZVCkvUggx52nh8IuSjjuQv7g/gqBQ7Bx2nyQmmKYnLKP97hbi9/ThVXEmTwgm9I088 t/DOMZRizxUpkfyv3vZkTZgHicY2NrVQDzDJH7uuPtRrqurGOw5Eq+dQ0gyRGNJCPJ5E 9L5Q8crwjdznm5dH74E9WUFKgZUvF+xPryJViMalakq+ipdrklBl259CMDI1t7uPa4QG 9uzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692113608; x=1692718408; h=in-reply-to:subject:content-language:references:to:from:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=ycAaPUVRG6E+FGEXryKmEpToYqlhOACuEsofqXZEDZ0=; b=BvlgU7IZe5Y1A6t04UhwbEW9OfnmFfthQKV2M4NY7YLek12/AKfysNbFhx+D6TpqQc HQ4k1AR7E6r5AIpMmh6ouqL3wwEYQ26nPKvk1Id2weOb1bFZ9H8X0Ltn2P3JN5cidB3q dz1GQk7lK/4ggxhbF/U32VT6FJk1QPvmRzS1oKfHdcM5vOtH2li+p+4+XSH/TO2Da2ij 5FzQISMLFaQVQ2rm1W4uqg+sCicyLYOI+rKj2b95MMtSlJEcAafXo1ZzewQLqCbxAG4E 1h6S+t8csn7g5I+FDR1D29pjb4nhUz9xYURTgLQJm3O4LjycDQKEi4EvTeA1QZjXQyCb uY8Q== X-Gm-Message-State: AOJu0YxB/GEmjdQtFKwEaEpuELW6MhDNBkfxztIeSywR6EVoOY+SW5L5 jl947YA3kWrxWHsTQ/WYvcXlexxgSY8KKg== X-Google-Smtp-Source: AGHT+IH89Y8WupXnBxZKPgWZ0xLOUqTcGZJJauG38gmdsbSUKxcxbf5Zi9vbyJr21Cu6nwOzS+qUSA== X-Received: by 2002:a17:907:7789:b0:99b:d178:f059 with SMTP id ky9-20020a170907778900b0099bd178f059mr8805124ejc.35.1692113607763; Tue, 15 Aug 2023 08:33:27 -0700 (PDT) Received: from [192.168.1.10] (80-42-66-93.dynamic.dsl.as9105.com. [80.42.66.93]) by smtp.gmail.com with ESMTPSA id x10-20020a1709065aca00b00992d122af63sm7124453ejs.89.2023.08.15.08.33.26 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Aug 2023 08:33:26 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------liKJf1p311kLv7BnzRLc4ZR9" Message-ID: <835b25ff-81a5-6c18-f335-e8141c8da81a@gmail.com> Date: Tue, 15 Aug 2023 16:33:25 +0100 List-Id: Binary package management and package tools discussion List-Archive: https://lists.freebsd.org/archives/freebsd-pkg List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkg@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 From: Graham Perrin To: freebsd-pkg@freebsd.org References: <88d40ec4-1b5a-4d5e-b6f7-618a3b31fdbb@gmail.com> Content-Language: en-US Subject: pkg query --evaluate (was: pkg-query(8): unknown query format key: '%i') In-Reply-To: <88d40ec4-1b5a-4d5e-b6f7-618a3b31fdbb@gmail.com> X-Spamd-Result: default: False [-2.94 / 15.00]; URI_COUNT_ODD(1.00)[11]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.94)[-0.935]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20221208]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FROM_HAS_DN(0.00)[]; FREEFALL_USER(0.00)[grahamperrin]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[freebsd-pkg@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::62b:from]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-pkg@freebsd.org]; DKIM_TRACE(0.00)[gmail.com:+]; TO_DN_NONE(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_COUNT_TWO(0.00)[2] X-Spamd-Bar: -- X-Rspamd-Queue-Id: 4RQFfL0sbrz4PgG 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: > … > > > 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. 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

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--