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

I have installed both moria and ettercap using MacPorts (via pallet) and I can't for the life of me find out where the things were installed to run them!

Where is the install directory?

EDIT: When I install things JUST using macports i.e. from the command line it works.

Pallet doesn't actually seem to install things :S

share|improve this question
up vote 19 down vote accepted

If you use contents, it will tell you where they are.

share|improve this answer
port contents only works on installed ports, FYI. – chiggsy Apr 5 '12 at 18:37
when I use the command i just get Port ettercap-ng does not contain any files or is not active. I clicked the install button inside pallet... – RRs_Ghost Apr 5 '12 at 18:41

Unless you performed a custom installation of MacPorts everything installed by MacPorts is located conveniently at


if you perform a directory listing at that location you should see the structure for port installed programs which should be installed in bin or sbin directories.

user$ ls
bin     etc     include lib     libexec man     sbin    share   var 

As noted in the MacPorts Documentation

2.3. Install MacPorts

If you are using Mac OS X, you should install MacPorts using the Mac OS X package installer unless you do not wish to install it to /opt/local/, the default MacPorts location, or if you wish to install a pre-release version of MacPorts base. However, if you wish to install multiple copies of MacPorts or install MacPorts on another OS platform, you must install MacPorts from the source code.

share|improve this answer

To find where any Unix commandline executable is located, use the which command:

$ which bash
$ which port
share|improve this answer
This won't work if you are trying to find a MacPorts version of a binary which also has a Mac OS version, e.g. which find will return /usr/bin/find whereas if you've installed findutils that version (on my install) goes in /opt/local/libexec/gnubin/find. – Michael Jan 9 '14 at 16:42
You cannot use which to find packages installed via ports. – thomio Sep 4 '15 at 0:22

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.