How to clean up failed build with lots of dependencies?

Joshua Root jmr at macports.org
Thu Dec 15 14:26:58 UTC 2022


> Does MacPorts have a way to uninstall the dependencies it installed in attempting to build NetSurf (or any complex port that fails to build) without uninstalling the dependencies that were already installed?
>
> Will "port reclaim" catch these?

Yes, port reclaim will clean up such ports for you. You can also use an 
expression like 'leaves and rdepof:NetSurf' to do it manually; I would 
pass it to 'port echo' first to check that it doesn't match anything you 
want to keep, and then use it with clean and uninstall.

- Josh



More information about the macports-users mailing list