Search for a file

Joshua Root jmr at
Tue Nov 17 08:47:12 PST 2009

On 2009-11-18 00:15, Panayotis Katsaloulis wrote:
> I would like to find a specific file in the ports distribution, when I
> don't already know the name of the package.
> In other words, I want to find in which package(s) a specific file exists.
> For example, in order to use docbook2html command, I  don't know which
> package to install.
> In the old days of debian, I used to have apt-file for this job. Is
> there any similar application for macports?
> What should I do in this case?

MacPorts does not have this feature because we do not (yet) have an
autobuild system that records the contents for each port and makes it
available somewhere. The only way to know what a port contains is to
install it.

Funnily enough, the contents search on can often
give you a clue even if the port name doesn't exactly match...

- Josh

More information about the macports-users mailing list