Find macports package with file name

How to find out the name of the port specified by the file name, more specifically the executable file?

The Macport website doesn't seem to help, as you can only search by name and a little more.

Thanks!

+7
macports
source share
1 answer

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.

+13
source share

All Articles