Files
lix/doc/manual/rl-next/nix-store-ls-read-nar-listings.md
T
Victor Fuentes ab1e58e948 feat(nix store ls): support reading nar listings from binary cache
Remote binary caches support `write-nar-listing` options where they create a `HASH.ls` file for quick indexing without having to download the nar.
This commit makes experimental `nix store ls` attempt to read these files instead of downloading the full nar.

The difference is very obvious with large packages like stellarium:

nix store ls --store "https://cache.nixos.org" /nix/store/ijpvwgs9zamqaax5dy2cd0kxgz7lr7an-stellarium-25.1 -R

Change-Id: I6a37e0788b3a91c319331a8de69c51daf3efa955
2025-06-01 22:47:11 -07:00

466 B

synopsis, issues, cls, category, credits
synopsis issues cls category credits
Allow `nix store ls` to read nar listings from binary cache stores.
3225
Improvements
vlinkz

The nix store ls command now supports reading .ls nar listings from binary cache stores. If a listing is detected for the store path being queried, the nar is no longer downloaded. These nar listings are available in binary cache stores where the write-nar-listing option is enabled, such as cache.nixos.org.