Forrest logo
back to the nix tool

nix:tldr:b7ccb

nix: Search for a package in nixpkgs via its name or description.
$ nix search nixpkgs ${search_term}
try on your machine

The command nix search nixpkgs ${search_term} is used to search for packages in the Nix package collection (also known as Nixpkgs).

Here's a breakdown of the command:

  • nix search: This is the main command used to search for packages in the Nix package collection.
  • nixpkgs: This specifies the name of the package collection to search within. In this case, it refers to the Nixpkgs collection.
  • ${search_term}: This is a placeholder for the actual term you want to search for. It could be a specific package name or any keyword related to the package you are looking for.

When you run this command, Nix will search through the package collection and display a list of packages that match your search term. These packages may include both the exact matches as well as related results based on the given search term.

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 tool