macports which port owns a file

Clemens Lang cal at macports.org
Sat Apr 6 09:00:36 PDT 2013


On Sat, Apr 06, 2013 at 09:48:53AM -0600, Roger Pack wrote:
> is there a way to determine which port "owns" or "put down" a file,
> for instance (relative to a comment at the bottom of
> http://trac.macports.org/ticket/29198 )

For files you have installed, use port contents <portname> or port
provides <file>:

> I'm trying to add a dependency for this file, to mplayer:
> /opt/rdp_project_local/lib/libXss.1.dylib
> however, "port search xss" doesn't easily reveal an answer.

/opt/rdp_project_local/bin/port provides /opt/rdp_project_local/lib/libXss.1.dylib.

-- 
Clemens Lang



More information about the macports-users mailing list