Sample Header Ad - 728x90

Uninstalling useless dependencies from a partially-installed failed MacPorts package

1 vote
1 answer
890 views
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
port uninstall xfce
, it doesn't do anything. Neither does
port uninstall --follow-dependencies xfce
,
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
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
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?
Asked by Mike Battaglia (181 rep)
Jul 29, 2022, 02:06 AM
Last activity: Jul 29, 2022, 08:38 PM