Server Fault is a question and answer site for system and network administrators. 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 do you do make MacPorts print the packages that it would install to satisfy dependencies? I'm aware of sudo port deps foo, but that only prints the direct dependents of foo. I want to know every packages that will be installed, ie. every package that foo depends on directly or undirectly MINUS those that are already installed. Is that possible? Is there maybe an install dryrun mode I'm not aware of?

(I'm really tired of MacPorts trying to install X11 because some obscure package that is somehow a dependent of the one I'm trying to install thinks that would be a good idea...)

share|improve this question
Those x11 ports are usually just header files and don't involve any compilation. – Nerdling Aug 26 '09 at 12:11
up vote 2 down vote accepted

According to the MacPorts bug tracker a dryrun option was added in last December (2008). However it's labelled as targeted for MacPorts 1.8.0.

Check for the latest and greatest. Thanks to Nerdling for this.

share|improve this answer
Awesome. I guess I'm switching to fink. :) Thanks for finding this! – albertb Jul 30 '09 at 21:35
An 1.8.0 RC is available. Also, trunk (which has all the latest changes) has always been available. – Nerdling Aug 26 '09 at 12:11

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.