Forrest logo
back to the nix-env tool

nix-env:tldr:b9e2a

nix-env: List all installed packages.
$ nix-env -q
try on your machine

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.

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