Tidying up Python

Ryan Carsten Schmidt ryandesign at macports.org
Tue Jul 8 21:06:43 UTC 2025


On Jul 8, 2025, at 11:44, Nils Breunese wrote:
> 
> Use `port installed` to list the ports you have installed. You may want to run something like this to list the installed ports that start with ‘py':
> 
>    port installed | grep ‘^[[:space:]]*py'

Instead of relying on post-processing with grep, you can use MacPorts filtering syntax, e.g.

port installed name:^py

and pseudo ports can also be helpful, like:

port installed leaves

(The "leaves" pseudo port is the set of ports that are installed that you didn't request that no other installed port depends on. "sudo port reclaim" would uninstall these.)

Filters can be combined as needed:

port installed leaves and name:^py







More information about the macports-users mailing list