Pkg-provides is an open source project providing a database with the list of every single files installed by FreeBSD packages and a pluging for pkg - the FreeBSD package manager - to fetch and search this database.
Pkg-provides is used to query which package in your pkg catalog provides a particular file given a pattern
The database is update daily based on the FreeBSD official repos.
Pkg-provides database and plugin is not part of the FreeBSD project nor maintained by pkg developers.
|FreeBSD major version||Architectures|
|12||i386, amd64, aarch64, armv6, armv7, mips64|
|13||i386, amd64, aarch64, armv6, armv7, powerpc, powerpc64, powerpc64le|
|14||i386, amd64, aarch64, armv6, armv7, powerpc, powerpc64, powerpc64le|
|15||i386, amd64, aarch64, armv6, armv7, powerpc, powerpc64, powerpc64le|
First you need to install the plugin using the the pkg command.
$ sudo pkg install pkg-provides
After that you must update the pkg configuration file to enable the plugin
PKG_PLUGINS_DIR = "/usr/local/lib/pkg/"; PKG_ENABLE_PLUGINS = true; PLUGINS [ provides ];
Check if the plugin is installed
$ pkg plugin NAME DESC VERSION provides A plugin for querying which package provides a particular file 0.4.2
Once the plugin installed, update the database:
$ sudo pkg provides -u Fetching provides database: 100% 14 MiB 15.1MB/s 00:01 Extracting database....success
Now we can search for files using the PCRE pattern:
pkg provides bin/firefox$ Name : firefox-esr-68.7.0_1,1 Desc : Web browser based on the browser portion of Mozilla Repo : FreeBSD Filename: usr/local/bin/firefox Name : firefox-75.0_2,1kee
Desc : Web browser based on the browser portion of Mozilla Repo : FreeBSD Filename: usr/local/bin/firefox
Github repo : pkg-provides
The pkg-provide server and its content is developed and maintained by volunteers and is not backed up by a commercial entity. If you want,, feel free to make a donation to support our efforts.