Spack: uninstall a package with its dependencies if they are not used elsewhere

Created on 28 May 2017  路  3Comments  路  Source: spack/spack

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.

feature

Most helpful comment

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.

All 3 comments

@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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vsoch picture vsoch  路  3Comments

citibeth picture citibeth  路  3Comments

nazavode picture nazavode  路  3Comments

adrienbernede picture adrienbernede  路  3Comments

eschnett picture eschnett  路  3Comments