Getting proper dependency order using port command

Artur Szostak aszostak at
Mon Nov 9 09:56:32 PST 2015

I think I might have found a solution if someone can confirm the following:
Does the "port rdeps" command print in pre-order depth first?
If so then I can just reverse the order of the printed list.

From: macports-dev-bounces at [macports-dev-bounces at] on behalf of Artur Szostak [aszostak at]
Sent: 09 November 2015 18:35
To: macports-dev ‎[macports-dev at]‎
Subject: Getting proper dependency order using port command


I do not see the documentation indicating the options --follow-dependents or --follow-dependencies for the "port deactivate" command. Therefore I need to run the deactivate command on one port at a time in the proper order.
How can I get the post-order depth first search of the dependency tree from the command line, e.g. the one produced with "port rdeps"? Is there perhaps a flag to the port command that I have missed?

Kind regards.

macports-dev mailing list
macports-dev at

More information about the macports-dev mailing list