port echo
     [[portname | pseudo-portname | port-expressions | port-url]]


port echo expands its argument list according to MacPorts' rules and prints a list of ports that match the expression given as argument. It can be useful to see what a pseudo-portname or a pseudo-portname selector (see port(1)) expands to.

If port echo doesn’t recognize an argument as port, it will still print it as-is. You cannot use port echo to check whether a port exists:

$ port echo nonexistentport


Common use cases are:

port echo depends:zlib
port echo inactive
port echo obsolete
port echo requested
port echo leaves
port echo category:^mail$

Note that echo is usually not used to list outdated ports, since a separate action port-outdated(1) exists for that. port outdated has the advantage compared to port echo outdated that it gives the reason why MacPorts considers the port outdated.



(C) 2014 The MacPorts Project
Clemens Lang <>