How to list all files that was installed by some MacPorts package?

For example in Funtoo (or in Gentoo) I can achieve the same with a command:

equery b [package name]


2 Answers 2

port contents installed_port_name
  • 10
    and for anyone interested, the reverse lookup (which port provided a file) is port provides filename May 16, 2013 at 7:10

In my case the CFLAGS LDFLAGS were necessary.

# ensure libyaml is installed
port install libyaml +universal

# if you like you can check the location of the installied files (especially the .h file)
# port contents libyaml

# now configure with these options
CFLAGS="-I/opt/local/include/ "  LDFLAGS="-L/opt/local/lib/" ./configure
sudo make install

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .