Unfortunately, MacPorts currently (2.3.1) only supports this if you have a port installed, i.e. if you want to know which port installed the file on your system. In this case, you can use port provides <filename> .
If you're looking for a port to install using an executable name, you're out of luck - there are no required databases for MacPorts.
Instead, I usually look for a file in a Linux distribution, for example. using apt-file search <filename> in Debian. Given the name of the Debian package, I am looking for a similar MacPorts port.
neverpanic
source share