Searching packages: Difference between revisions

m Fix typo
Ole.mn (talk | contribs)
Add `nps` as an option for searching packages
 
Line 55: Line 55:
; cons:
; cons:
* it's very slow and requires a lot of memory
* it's very slow and requires a lot of memory
== Using the <code>nps</code> command ==
<code>nps</code> caches entire <code>nix search nixpkgs ^</code> and <code>nix-env -qaP --description</code> results locally and queries the cache.
<syntaxhighlight lang="bash">nps firefox</syntaxhighlight>
; pros:
* works offline
* very fast
* easy syntax
* output sorted by relevance
; cons:
* [https://github.com/OleMussmann/nps/blob/main/README.md third party program]
* [https://github.com/OleMussmann/nps/blob/main/README.md#automatic-cache-refresh-optional-recommended- cache needs regular refreshing (automatable)]


== Using the <code>nix repl</code> environment ==
== Using the <code>nix repl</code> environment ==