• To list installed ports: port installed

  • To list manually installed ports, excluding automatically installed dependencies: port installed requested

  • To uninstall a port and its otherwise unneeded dependencies: port uninstall --follow-dependencies <portname>

  • To uninstall old dependencies that are no longer required, along with their dependencies: port uninstall --follow-dependencies leaves

  • To uninstall outdated ports: port -u uninstall

  • MacPorts doesn't have a mutt port, only neomutt. Be sure to install a variant with a DB if you want header cache support. The Berkeley DB works fine.