Skip to content

Request to mention that you can uninstall package by hash #12527

@JunCEEE

Description

@JunCEEE

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:

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions