Open Source • FreeBSD

Find any file in your
FreeBSD packages

A powerful pkg plugin that maintains a daily-updated database of files installed by FreeBSD packages. Query which package provides any file using simple pattern matching.

Quick Example
$ pkg provides 'bin/gpg$'
Name    : gnupg25-2.5.18
Comment : Complete and free PGP implementation
Repo    : FreeBSD
Filename: usr/local/bin/gpg

Why pkg-provides?

Everything you need to track down package files in FreeBSD

Daily Updates

Database automatically syncs with official FreeBSD repositories every day to stay current with package changes.

PCRE Search

Use powerful Perl Compatible Regular Expressions to find exactly what you're looking for.

Multi-Version Support

Compatible with FreeBSD 12, 13, 14, and 15 across all major architectures.

Native Integration

Works seamlessly as a pkg plugin—no complex setup or external dependencies.

Cross-Architecture

Full support for i386, amd64, aarch64, ARM, and PowerPC variants.

Open Source

Fully open source and community-driven. Contributions welcome on GitHub.

Supported Versions & Architectures

Comprehensive coverage across FreeBSD releases and platforms

FreeBSD Version Architectures Status
FreeBSD 16 amd64 aarch64 Active
FreeBSD 15 amd64 i386 aarch64 armv6 armv7 powerpc64 powerpc64le powerpcspe riscv64 Active
FreeBSD 14 amd64 i386 aarch64 armv6 armv7 powerpc64 powerpc64le powerpcspe riscv64 Active
FreeBSD 13 amd64 i386 aarch64 armv6 armv7 powerpc64 powerpc64le powerpcspe riscv64 Legacy
FreeBSD 12 amd64 i386 aarch64 armv6 armv7 powerpc64 Legacy

Installation

Get up and running in minutes

1

Install the Plugin

$ pkg install pkg-provides
2

Enable the Plugin

Edit your pkg configuration file to enable the plugin:

/usr/local/etc/pkg.conf
# Add or modify the following line:
PKG_PLUGINS_DIR: "/usr/local/lib/pkg/"
PKG_ENABLE_PLUGINS: true
3

Verify Installation

$ pkg plugin
NAME       DESC                                          VERSION
provides   A plugin for querying which package provides a particular file 0.7.4
                        
4

Update Database

$ sudo pkg provides -u
Updating provides database...

Usage Examples

Common patterns and use cases

Find a Binary

Search for which package provides a specific binary:

$ pkg provides 'bin/python3$'
Name    : python3-3_4
Comment : Meta-port for the Python interpreter 3.x
Repo    : FreeBSD
Filename: usr/local/bin/python3

Match Library Files

Use regex patterns to find library providers:

$ pkg provides 'lib/libssl\.so'
Name    : openssl35-3.5.6
Comment : TLSv1.3 capable SSL and crypto library
Repo    : FreeBSD
Filename: usr/local/lib/libssl.so.17
          usr/local/lib/libssl.so

Configuration Files

Locate packages containing specific config files:

$ pkg provides 'etc/nginx/nginx.conf'
Name    : nginx-lite-1.30.1,3
Comment : Robust and small WWW server (lite package)
Repo    : FreeBSD
Filename: usr/local/etc/nginx/nginx.conf-dist

Wildcard Searches

Find all packages containing files matching a pattern:

$ pkg provides '\.desktop$'
Name    : firefox-esr-140.11.0_1,2
Comment : Web browser based on the browser portion of Mozilla
Repo    : FreeBSD
Filename: usr/local/share/applications/firefox.desktop
...

Ready to get started?

Install pkg-provides today and never wonder which package provides a file again.