Forrest logo
back to the nix-store tool

nix-classic:tldr:8e33c

nix-classic: Show all dependencies of a store path (package), in a tree format.
$ nix-store --query --tree ${-nix-store----}
try on your machine

The command nix-store is a tool used in the Nix package manager to query and manage the Nix store, which is where all the installed packages and their dependencies are stored.

The command:

nix-store --query --tree ${-nix-store----}

performs a query on the Nix store and displays the package dependencies in a tree structure.

Here's an explanation of the flags and arguments used in the command:

  • --query (or -q): Instructs nix-store to perform a query operation.
  • --tree (or -t): Specifies that the query results should be presented in a tree format, showing the dependencies.
  • ${-nix-store----}: This is an expansion that substitutes the value of the environment variable $-nix-store---- into the command. The purpose and value of this environment variable are not explicitly mentioned in the given command, so it's difficult to provide further explanation. It may be a placeholder or an environment variable specific to the user's configuration.

In summary, this command is used to query and display the package dependencies stored in the Nix store in a tree format.

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-store tool