Name
nix nario list - list the contents of a nario file
Synopsis
nix nario list [option...]
Examples
-
List the contents of a nario file:
# nix nario list < dump.nario /nix/store/4y1jj6cwvslmfh1bzkhbvhx77az6yf00-xgcc-14.2.1.20250322-libgcc: 201856 bytes /nix/store/d8hnbm5hvbg2vza50garppb63y724i94-libunistring-1.3: 2070240 bytes … -
Use
--jsonto get detailed information in JSON format:# nix nario list --json < dump.nario { "paths": { "/nix/store/m1r53pnn…-hello-2.12.1": { "ca": null, "deriver": "/nix/store/qa8is0vm…-hello-2.12.1.drv", "narHash": "sha256-KSCYs4J7tFa+oX7W5M4D7ZYNvrWtdcWTdTL5fQk+za8=", "narSize": 234672, "references": [ "/nix/store/g8zyryr9…-glibc-2.40-66", "/nix/store/m1r53pnn…-hello-2.12.1" ], "registrationTime": 1756900709, "signatures": [ "cache.nixos.org-1:QbG7A…" ], "ultimate": false }, … }, "version": 1 }
Description
This command lists the contents of a nario file read from standard input.
Options
-
Produce output in JSON format, suitable for consumption by another program.
-
--long/-lShow detailed file information.
-
Print compact JSON output on a single line, even when the output is a terminal. Some commands may print multiple JSON objects on separate lines.
See `--pretty`. -
Print multi-line, indented JSON output for readability.
Default: indent if output is to a terminal. This option is only effective when `--json` is also specified. -
--recursive/-RList the contents of NARs inside the nario.
Logging-related options
-
Set the logging verbosity level to 'debug'.
-
--log-formatformatSet the format of log output; one of
raw,internal-json,barorbar-with-logs. -
--print-build-logs/-LPrint full build logs on standard error.
-
Decrease the logging verbosity level.
-
--verbose/-vIncrease the logging verbosity level.
Miscellaneous global options
-
Show usage information.
-
Disable substituters and consider all previously downloaded files up-to-date.
-
--optionname valueSet the Nix configuration setting name to value (overriding
nix.conf). -
Consider all previously downloaded files out-of-date.
-
Show version information.
Note
See
man nix.conffor overriding configuration settings with command line flags.