I have nix packages installed on my system - looks like I have a root context set and my own set. For example - listing which packages I have installed using nix-env shows this:
% nix-env --query --installed
nix-2.13.1
nss-cacert-3.83
% sudo nix-env --query --installed
brave-1.48.158
elm-0.19.1
graphviz-7.0.2
zotero-6.0.20
# but deno is still installed for some reason:
% which deno
/nix/store/nsdpvqmq97hwj7i79s5g6k3l9gr5yk58-deno-1.30.3/bin/deno
% deno --version
deno 1.30.3 (release, x86_64-unknown-linux-gnu)
% nix-env --uninstall deno
uninstalling 'deno-1.31.1'
building '/nix/store/x4yl66bgb421nmlrhq1p593f1a89iamp-user-environment.drv'...
# interesting, 1.31.1 was installed and now uninstalled but 1.30.3 is still there
% deno --version
deno 1.30.3 (release, x86_64-unknown-linux-gnu)
% nix-channel --list
% sudo nix-channel --list
nixpkgs https://nixos.org/channels/nixpkgs-unstable
So it looks like I have some binaries in my path from a previous install of deno but I am not sure why the update or re-install of the new version of the package didn’t replace the old version or why the 1.30.3 version is still around in my path.
Perhaps the missing “channel” for my userid is a clue?