Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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]

share|improve this question
up vote 30 down vote accepted
port contents installed_port_name
share|improve this answer
and for anyone interested, the reverse lookup (which port provided a file) is port provides filename – drfrogsplat May 16 '13 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
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.