-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Request to mention that you can uninstall package by hash #12527
Copy link
Copy link
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationgood first issue
Description
Request to mention that you can use hashes in spack uninstall -h and Error: You can either:.
Rationale
I happened to have created multiple modules, and I hope to delete one of them, but failed like this:
$ spack uninstall openmpi
==> Error: [email protected]%[email protected]~cuda matches multiple packages:
-- linux-centos7-x86_64 / [email protected] -----------------------------
26w2v3w [email protected]%gcc ~cuda+cxx_exceptions fabrics=none ~java~legacylaunchers~memchecker~pmi schedulers=none ~sqlite3~thread_multiple+vt
f4cgywb [email protected]%gcc ~cuda+cxx_exceptions fabrics=none ~java~legacylaunchers~memchecker~pmi schedulers=none ~sqlite3~thread_multiple+vt
==> Error: You can either:
a) use a more specific spec, or
b) use `spack uninstall --all` to uninstall ALL matching specs.
After searching for a while, I found the solution in #2199 to use hash. Although, the problem was solved, I really think the last sentence in this comment should be considered again.
Description
Sometimes newbies make mistakes to create duplicated spack modules, but there is no hint for them to use the harsh to uninstall the specific package. Thus, it could be helpful to mention that you can use hashes in spack uninstall -h and Error: You can either:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationgood first issue