Forrest logo
back to the nix-env tool

nix-env:tldr:9fe62

nix-env: Query installed packages.
$ nix-env -q ${search_term}
try on your machine

The command "nix-env -q ${search_term}" is used to query the Nix package manager for a specific package or packages that match the provided search term.

Here's a breakdown of the command:

  • "nix-env" is the Nix package manager command-line tool.
  • "-q" is a flag that stands for "query". It tells nix-env to perform a query operation.
  • "${search_term}" is a placeholder for the actual term you want to search for. It could be a package name, a keyword, or any other relevant term you want to match against the available packages.

When you run this command, Nix will search its package repository for any packages that match the provided search term. It can be useful for finding specific packages or discovering available packages related to a particular topic.

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