From owner-freebsd-questions@freebsd.org Sun Mar 21 17:00:52 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 976B157C548 for ; Sun, 21 Mar 2021 17:00:52 +0000 (UTC) (envelope-from kremels@kreme.com) Received: from mail.covisp.net (mail.covisp.net [65.121.55.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4F3P5v6VGgz3PPY for ; Sun, 21 Mar 2021 17:00:51 +0000 (UTC) (envelope-from kremels@kreme.com) Content-Type: text/plain; charset=us-ascii Subject: Re: pkg- searching by (partial) origin|category for installed packages/ports From: "@lbutlr" In-Reply-To: Date: Sun, 21 Mar 2021 11:00:50 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: FreeBSD X-Mailer: Apple Mail (2.3654.80.0.2.43) X-Rspamd-Queue-Id: 4F3P5v6VGgz3PPY X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of kremels@kreme.com designates 65.121.55.42 as permitted sender) smtp.mailfrom=kremels@kreme.com X-Spamd-Result: default: False [-1.40 / 15.00]; ARC_NA(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[65.121.55.42:from]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx:c]; MISSING_MIME_VERSION(2.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[kreme.com]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[65.121.55.42:from:127.0.2.255]; TO_DN_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:209, ipnet:65.112.0.0/12, country:US]; MID_RHS_MATCH_FROM(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions]; RCVD_IN_DNSWL_LOW(-0.10)[65.121.55.42:from] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Mar 2021 17:00:52 -0000 On 20 Mar 2021, at 04:50, parv/freebsd = wrote: > How does one search for a installed port or package by (partial) > origin/category? Failed attempts ... I found searching ports very frustrating, so years ago I came up with = this, which is not how anyone suggested I do this, instead suggesting a = myriad of make and pig commands all of which did slightly different = things and none what I wanted. # cat /usr/local/bin/pfind #!/usr/local/bin/bash TERM=3D$@ find /usr/ports -mindepth 2 -maxdepth 2 -iname "*${TERM}*" | grep -v = distfiles # pfind x11 | grep wm /usr/ports/graphics/libwmf-nox11 # pfind wm | grep x11 /usr/ports/graphics/libwmf-nox11 /usr/ports/x11-clocks/wmtime /usr/ports/x11-clocks/wmbday /usr/ports/x11-clocks/wmbinclock /usr/ports/x11-clocks/wmblueclock /usr/ports/x11-clocks/wmcalclock /usr/ports/x11-clocks/wmclock /usr/ports/x11-clocks/wmfishtime /usr/ports/x11-clocks/wmtimer /usr/ports/x11-themes/fvwm-themes /usr/ports/x11-themes/icewm-extra-themes /usr/ports/x11-toolkits/gtksourceviewmm3 /usr/ports/x11-toolkits/wmapp /usr/ports/x11-wm/spectrwm /usr/ports/x11-wm/amiwm /usr/ports/x11-wm/antiwm . . . . . . Etc Works for me. YMMV. --=20 Y is for YORRICK whose head was knocked in Z is for ZILLAH who drank too much gin