Forrest logo
back to the nix-env tool

nix-env:tldr:8e4ed

nix-env: Query available packages.
$ nix-env -qa ${search_term}
try on your machine

The command "nix-env -qa ${search_term}" is used to search for packages in the Nix package manager. Here is how it works:

  • "nix-env" is the command used to manage packages in Nix.
  • "-q" is the option to perform a query, or search, for packages.
  • "-a" is the option to list all available packages that match the search term.
  • "${search_term}" is the placeholder for the term you want to search for. You need to replace it with the actual search term.

For example, if you want to search for packages related to Python, you can use the command: "nix-env -qa python". This will list all available packages related to Python, including the Python interpreter, libraries, and tools.

Note that the command requires Nix package manager to be installed and properly configured on your system.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the nix-env tool