How to find which port a file belong to?

Jeremy Lavergne jeremy at lavergne.gotdns.org
Thu Nov 8 11:42:41 PST 2012


> I often get into this issue where I have a file under /opt/local and want to know which port that file belong to. I read through port man file and Google about it but I cannot seems to find any solution.

port contents FULL_PATH_OF_FILE

like so:

port contents /opt/local/bin/pspp



More information about the macports-users mailing list