My MacPort package are becoming the huge mess. I probably won't use some of them and I was wondering how I could know if a given package is a dependecy for another one.

For example I have GTK3 installed. How could I know which other installed package needs GTK3.


From Macports guide You can list all the ports dependent on a port x say

port echo depends:x

To find ports that have no dependants use

port echo leaves
  • You could even pipe the leaves into the depends:x to get all the ports who are leaves and are not depended on – wrossmck Mar 10 '14 at 17:50
  • @RossMcKinley leaves are ports that are not depend on so that will just goer the leaves – mmmmmm Mar 10 '14 at 17:51
  • Oh right, my mistake. I didn't read those properly. – wrossmck Mar 10 '14 at 17:54
  • For your particular use case of finding the package that pulled in gtk3: port installed rdependentof:gtk3 and requested. This prints the ports you manually installed (requested) and are in the recursive tree of dependents, i.e. that somehow indirectly or directly depend on gtk3. – neverpanic Mar 13 '14 at 0:59

You must log in to answer this question.

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