Skip to content

Cannot uninstall package by hash #1377

@eschnett

Description

@eschnett

I have several versions of a package installed that differ only by their hash:

$ spack find -p cactusext
==> 3 installed packages.
-- linux-redhat7-x86_64 / gcc@6.1.0-spack -----------------------
    cactusext@master  /home/eschnett/src/spack/opt/spack/linux-redhat7-x86_64/gcc-6.1.0-spack/cactusext-master-oi3cpui7hrd5j6wuilp2dmxbkv2tlo3q
    cactusext@master  /home/eschnett/src/spack/opt/spack/linux-redhat7-x86_64/gcc-6.1.0-spack/cactusext-master-iwpmzszzi47ge2s5rikzzmchqo33qg65
    cactusext@master  /home/eschnett/src/spack/opt/spack/linux-redhat7-x86_64/gcc-6.1.0-spack/cactusext-master-ppvk4aqxve274wlhcb2pyzqrlrozps5o

When I try to uninstall by hash, Spack wants to uninstall all of them:

$ spack uninstall cactusext/oi3cpui
==> Error: cactusext matches multiple packages:

-- linux-redhat7-x86_64 / gcc@6.1.0-spack -----------------------
oi3cpui cactusext@master%gcc+funhpc+julia+llvm+simulationio

iwpmzsz cactusext@master%gcc+funhpc+julia+llvm+simulationio

ppvk4aq cactusext@master%gcc+funhpc+julia+llvm+simulationio


==> Error: You can either:
    a) Use a more specific spec, or
    b) use spack uninstall -a to uninstall ALL matching specs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions