nix3-store-cat1
Print the contents of a file in the nix store on stdout
Usage
nix store
cat
[option…]
path
Warning
This program is experimental ⟨@docroot@/development/experimental-features.md#xp-feature-nix-command⟩ and its interface is subject to change.
Examples
- •
-
Show the contents of a file in a binary cache:
# nix store cat --store https://cache.nixos.org/ \ /nix/store/0i2jd68mp5g6h2sa5k9c85rb80sn8hi9-hello-2.10/bin/hello | hexdump -C | head -n1 00000000 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00 |.ELF............|
Overview
This command prints on standard output the contents of the regular file path in a Nix store. path can be a top-level store path or any file inside a store path.
Options
Logging-related options
•
|
|
|---|---|
|
Set the logging verbosity level to ‘debug’. |
|
•
|
|
|
Set the format of log output; one of |
|
•
|
|
|
Print full build logs on standard error. |
|
•
|
|
|
Decrease the logging verbosity level. |
|
•
|
|
|
Increase the logging verbosity level. |
Miscellaneous global options
- •
-
--help⟨#opt-help⟩
-
Show usage information.
- •
-
--offline⟨#opt-offline⟩
-
Disable substituters and consider all previously downloaded files up-to-date.
- •
-
--option⟨#opt-option⟩ name value
-
Set the Nix configuration setting name to value (overriding
nix.conf).
- •
-
--refresh⟨#opt-refresh⟩
-
Consider all previously downloaded files out-of-date.
- •
-
--version⟨#opt-version⟩
-
Show version information.
NoteSee
man nix.conf⟨@docroot@/command-ref/conf-file.md#command-line-flags⟩ for overriding configuration settings with command line flags.
Releases
2 releases since Debian 12 (Bookworm); the text changed 1 time.