Forrest logo
back to the nix-store tool

nix-store:tldr:a9220

nix-store: Show all dependents of a particular store path.
$ nix-store --query --referrers ${-nix-store----}
try on your machine

The command "nix-store --query --referrers ${-nix-store----}" is used to query the Nix store for the packages that refer to a specific path.

Here's a breakdown of the command:

  • "nix-store": This is the Nix store management command-line tool.
  • "--query": This flag indicates that we want to perform a query operation.
  • "--referrers": This flag specifies that we want to find the packages that refer to a specific path.
  • "${-nix-store----}": This is a variable that represents the value of the Nix store path. It is usually set to the absolute path of the Nix store directory.

Overall, the command is used to find all the packages in the Nix store that depend on a specific path.

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