nix-env
Nix-env is a command line tool used in the Nix package manager. It allows users to manage and manipulate the software packages installed on their system. The tool is primarily used for creating, modifying, and deleting user environments, which are isolated collections of software packages. Users can use nix-env to add or remove packages, upgrade or downgrade packages, and create and manage custom environments. The tool provides various options to control package installation and removal, such as specifying package versions, handling dependencies, and managing package sets. Nix-env also supports creating and managing multiple profiles, allowing users to have different sets of packages for different purposes. The tool provides a user-friendly interface, with command line autocompletion and tab completion support for making package management easier. It supports both single-user and multi-user installations, allowing system-wide package management when used with appropriate permissions. Nix-env is highly extensible, allowing users to define custom package sets and configuration options. Overall, nix-env provides a powerful and flexible way to manage packages and environments in the Nix package manager.
List of commands for nix-env:
-
nix-classic:tldr:9915f nix-classic: Install some packages permanently.$ nix-env -iA ${nixpkgs-pkg1 nixpkgs-pkg2---}try on your machineexplain this command
-
nix-classic:tldr:c7c06 nix-classic: Search for a package in nixpkgs via its name.$ nix-env -qaP ${search_term_regexp}try on your machineexplain this command
-
nix-env:tldr:08686 nix-env: Install a package from a URL.$ nix-env -i ${pkg_name} --file ${example-com}try on your machineexplain this command
-
nix-env:tldr:1906f nix-env: Uninstall package.$ nix-env -e ${pkg_name}try on your machineexplain this command
-
nix-env:tldr:315f7 nix-env: Upgrade all packages.$ nix-env -utry on your machineexplain this command
-
nix-env:tldr:3da45 nix-env: Install package.$ nix-env -iA nixpkgs.${pkg_name}try on your machineexplain this command
-
nix-env:tldr:8e4ed nix-env: Query available packages.$ nix-env -qa ${search_term}try on your machineexplain this command
-
nix-env:tldr:9fe62 nix-env: Query installed packages.$ nix-env -q ${search_term}try on your machineexplain this command
-
nix-env:tldr:a1d22 nix-env: Upgrade one package.$ nix-env -u ${pkg_name}try on your machineexplain this command
-
nix-env:tldr:b9e2a nix-env: List all installed packages.$ nix-env -qtry on your machineexplain this command