Searching for Missing Utility in pkgbase

How can I search for a missing utility in a pkgbase system?

I was hoping that:

# pkg search -r FreeBSD-base config

would tell me which package I need to install.
 
ports-mgmt/pkg-provides supports only packages already installed, not for packages not installed. As far as I can tell, looking through the Github issue ticket, even if pkgbase packages would be a part of the utility, it would show only files from packages already installed

How can I search for a missing utility in a pkgbase system?
I believe there is no specific function to search for non-installed individual missing utilities.

The best I can think of is to list all "FreeBSD-base" repo packages with comment and look for what might be the utility you are seeking.

Example:
Code:
% pkg  rquery  -r  FreeBSD-base  '[ %n ]  ===>  %c'  |  less

Or narrow down for a search pattern:
Code:
% pkg  rquery  -r  FreeBSD-base  '[ %n ]  ===>  %c'  |  grep -i config
[ FreeBSD-acpi ] ===> Advanced Configuration and Power Interface (ACPI) utilities
[ FreeBSD-acpi-dbg ] ===> Advanced Configuration and Power Interface (ACPI) utilities (debugging symbols)
[ FreeBSD-bsdconfig ] ===> System configuration utility
[ FreeBSD-ccdconfig ] ===> Concatenated disk driver (ccd) configuration utility
[ FreeBSD-ccdconfig-dbg ] ===> Concatenated disk driver (ccd) configuration utility (debugging symbols)
[ FreeBSD-cxgbe-tools ] ===> Configuration utility for Chelsio cxbge(4) network interfaces
[ FreeBSD-cxgbe-tools-dbg ] ===> Configuration utility for Chelsio cxbge(4) network interfaces (debugging symbols)
[ FreeBSD-dhclient ] ===> Dynamic Host Configuration Protocol (DHCP) client
[ FreeBSD-dhclient-dbg ] ===> Dynamic Host Configuration Protocol (DHCP) client (debugging symbols)
[ FreeBSD-geom ] ===> GEOM configuration utilities
[ FreeBSD-geom-dbg ] ===> GEOM configuration utilities (debugging symbols)
[ FreeBSD-geom-dbg-lib32 ] ===> GEOM configuration utilities (32-bit debugging symbols)
[ FreeBSD-geom-lib32 ] ===> GEOM configuration utilities (32-bit libraries)
[ FreeBSD-libucl ] ===> Private Universal Configuration Library (UCL) library
[ FreeBSD-libucl-dbg ] ===> Private Universal Configuration Library (UCL) library (debugging symbols)
[ FreeBSD-libucl-dbg-lib32 ] ===> Private Universal Configuration Library (UCL) library (32-bit debugging symbols)
[ FreeBSD-libucl-dev ] ===> Private Universal Configuration Library (UCL) library (development files)
[ FreeBSD-libucl-dev-lib32 ] ===> Private Universal Configuration Library (UCL) library (32-bit development files)
[ FreeBSD-libucl-lib32 ] ===> Private Universal Configuration Library (UCL) library (32-bit libraries)
[ FreeBSD-nuageinit ] ===> cloud-init configuration support
[ FreeBSD-resolvconf ] ===> A framework for managing multiple DNS configurations

Or, look through the description (%e) of all FreeBSD-base packages :
Code:
% pkg  rquery  -r  FreeBSD-base  '[ %n ]  ===>  %e'  |  less


It's possible to look for individual files from pkgbase packages in plist files, like in the /usr/ports tree pkg-plist files (e.g.: /usr/ports/ports-mgmt/pkg/pkg-plist ), but for pkgbase plists, this requires a make buildworld buildkernel packages from source.

Example:
Code:
% find /usr/obj/usr/src-15.1 -name '*plist' | grep acpi
/usr/obj/usr/src-15.1/amd64.amd64/worldstage/acpi.plist

% cat /usr/obj/usr/src-15.1/amd64.amd64/worldstage/acpi.plist
@config(root,wheel,0644,) /etc/devd/power_profile.conf
@config(root,wheel,0555,) /etc/rc.d/power_profile
@(root,wheel,0555,) /usr/sbin/acpiconf
@(root,wheel,0555,) /usr/sbin/acpidb
@(root,wheel,0555,) /usr/sbin/acpidump
@(root,wheel,0555,) /usr/sbin/iasl
@(root,wheel,0444,) /usr/share/man/man8/acpiconf.8.gz
@(root,wheel,0444,) /usr/share/man/man8/acpidb.8.gz
@(root,wheel,0444,) /usr/share/man/man8/acpidump.8.gz
@(root,wheel,0444,) /usr/share/man/man8/iasl.8.gz
 
Back
Top