nix-env -q
nix-env -qaP
nix-env -iA nixpkgs.gitFull
nix-env -e git
(It's best you copy paste the name, which you got from nix-env -q
)
First update your channel
nix-channel --update
See what's available
nix-env -qc
Update everything
nix-env -u --keep-going --leq
nix-store --query --references\
$(nix-instantiate '<nixpkgs>' -A emacs)