Skip to content

nix profile remove '.*' doesn't remove path installabes #7487

@erikarvstedt

Description

@erikarvstedt

Reproduce

nix profile install $(nix build --no-link --print-out-paths nixpkgs#hello) --profile /tmp/nix-profile 
nix profile remove '.*' --profile /tmp/nix-profile
# Result:
# warning: '.*' does not match any packages
# warning: Use 'nix profile list' to see the current profile.

Expected behavior

nix profile remove '.*' should "Remove all packages", as suggested in --help.

nix-env --version output

nix-env (Nix) 2.12.0

Priorities

Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggood first issueQuick win for first-time contributorsprofilesVersioned gc root symlinks; nix profile, nix-env

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions