HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

nix search — Search for packages in a Nix flake. More information: <https://nix.dev/manual/nix/stable/command-ref

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandsearchclinix searchnixflakeforpackages

Problem

How to use the nix search command: Search for packages in a Nix flake. More information: <https://nix.dev/manual/nix/stable/command-ref/new-cli/nix3-search.html>.

Solution

nix search — Search for packages in a Nix flake. More information: <https://nix.dev/manual/nix/stable/command-ref/new-cli/nix3-search.html>.

Search nixpkgs for a package based on its name or description:
nix search {{nixpkgs}} {{search_term}}


Show description of a package from nixpkgs:
nix search {{nixpkgs#pkg}}


Show all packages available from a flake on github:
nix search {{github:owner/repo}}

Code Snippets

Search `nixpkgs` for a package based on its name or description

nix search {{nixpkgs}} {{search_term}}

Show description of a package from nixpkgs

nix search {{nixpkgs#pkg}}

Show all packages available from a flake on github

nix search {{github:owner/repo}}

Context

tldr-pages: common/nix search

Revisions (0)

No revisions yet.