nix-env Command Examples

Manipulate or query Nix user environments. More information: https://nixos.org/manual/nix/stable/#sec-nix-env.

nix-env -q

nix-env -q {{search_term}}

nix-env -qa {{search_term}}

nix-env -iA nixpkgs.{{pkg_name}}

nix-env -i {{pkg_name}} --file {{example.com}}

nix-env -e {{pkg_name}}

nix-env -u {{pkg_name}}

nix-env -u