pkg provides [-u] [-f]
pkg provides pattern
pkg provides is used to query which package in your pkg catalog provides
a particular file given pattern.
The search pattern can be any perl compatible regular expression (PCRE).
The following options are supported by pkg provides:
-u Check if a new database file is available and then performs
-f Forces the update.
pattern Can be any perl compatible regular expression (PCRE). The
search is not case sensitive.
The pkg provides utility exits 0 on success, and >0 if an error occurs.
Update the provides database:
$ pkg provides -u
Search which package provides bin/firefox
$ pkg provides bin/firefox$
Search which packages provides a file with the pattern libbz2.so.*
$ pkg provides ^libbz2.so.
pkg provides was written by Rodrigo Osorio <rodrigo@FreeBSD.org>.
FreeBSD 11.1-RELEASE-p9 January 25, 2018 FreeBSD 11.1-RELEASE-p9
Man(1) output converted with