I tried to install the xfce
package on MacPorts, which has about a hundred dependencies. It got pretty far, but ultimately the install failed due to whatever reason, about 85 dependencies in. So I'd like to uninstall the entire thing, in particular the 85 useless dependencies which I no longer need.
The problem is that if I try sudo port uninstall xfce
, it doesn't do anything. Neither does sudo port uninstall --follow-dependencies xfce
, sudo port uninstall --follow-dependents xfce
and so on. From what I can tell, this seems to be because MacPorts doesn't think that xfce is installed at all, since the installation never finished, so it doesn't try to uninstall anything. I've also tried sudo port clean --all installed
and it didn't seem to do much.
What did do something is scrolling up to the beginning, when I tried to install the package, and looking at the list of dependencies it said it was going to install and manually uninstalling each one. For instance, I scrolled up to this:
$ sudo port install xfce
---> Computing dependencies for xfce
The following dependencies will be installed:
Thunar
apr
apr-util
at-spi2-atk
at-spi2-core
atk
...
And then typed
sudo port uninstall Thunar apr apr-util at-spi2-atk at-spi2-core atk ...
which did it. But is there some better way to do this?