i think it would be good to be able to uninstall not only a single package, but everything within it's graph if it is not used elsewhere. One could start from the root of the DAG and traverse it to figure out what can be removed.
@adamjstewart @tgamblin Would an option like:
spack uninstall --autoremove [<spec>]
be good as UI for this one?
That sounds good to me. The question is whether or not to check if the unused dependency was explicitly installed or not.
The logic imho should be:
$ spack uninstall --autoremove
uninstalls all the packages that are not dependencies of something installed explicitly. The command:
$ spack uninstall --autoremove <spec>
first uninstalls spec, then applies the logic above.
Most helpful comment
The logic imho should be:
uninstalls all the packages that are not dependencies of something installed explicitly. The command:
first uninstalls spec, then applies the logic above.