How to obtain a list of installed Mac ports
If you want to obtain a list of Mac ports you installed (requested) and that are active use the following command:
port installed requested |
grep -F '(active)'
requested is a pseudo-portname limiting the list to installed ports
that were explicitly asked for. The grep command limits this list
further to the ports that are active only.