How to Determine Which Brew Package Provides a File

homebrewmacos

Is there a way to figure out which brew package provides a given file (like apt-file on Ubuntu or pkgfile on Arch)?

I'm not talking about querying which locally installed package owns a file on my system, I have a particular file that I need installed (/usr/local/lib/libboost_python.dylib to be specific) and want to know which remote package would provide that file.

Best Answer

There is not. Nothing in Homebrew maintains a list of files that a package is allowed or expected to install.

Related Question