![Forrest logo](/images/logo.png)
nix-env:tldr:b9e2a
The command "nix-env -q" is used to query the Nix package manager for a list of installed packages.
"Nix" is a purely functional package manager and its primary purpose is to provide a reproducible and isolated environment for software development and deployment. It allows you to install, manage, and upgrade packages in a declarative and controlled manner.
The "nix-env" command is the main interface for managing packages with Nix. The "-q" option stands for "query" and it instructs the command to display a list of installed packages.
When you run "nix-env -q", it will output a list of package names along with their versions that are currently installed on the system. This list can help you determine which packages are available for use or further management.
Overall, "nix-env -q" enables you to inspect the installed packages managed by Nix on your system.