pkgng plugin for querying which package provides a particular file
- libfetch (freebsd base )
- libpcre ( pkg install pcre )
- libpkg ( freebsd base )
- uthash ( pkg install uthash)
# make install
# make install
/usr/local/etc/pkg.conf
PKG_PLUGINS_DIR = "/usr/local/lib/pkg/plugins";
PKG_ENABLE_PLUGINS = true;
PLUGINS [ provides ]
PLUGINS_CONF_DIR = "/usr/local/etc/pkg/plugins";
Create the directory to store the provides database :
mkdir -p /var/db/pkg/plugins
# pkg help
Commands provided by plugins:
provides A plugin for querying which package provides a particular file
Update the provides database
pkg provides -u
Search for a file
pkg provides firefox
pkg provides bin/firefox
You can use the perl regexp in search requests
- provides uses the AMD64-latest ports, future versions will use the ABI
- database is downloaded in /var/tmp and stored in /var/db/pkg/plugins/. The location is hardcoded.
