forked from lix-project/lix
Manual: Fix "nix-store --export" example
This commit is contained in:
parent
aebea2e489
commit
f12492c66d
|
@ -538,7 +538,7 @@ dependencies) to a file, and then unpack that file into another Nix
|
||||||
store. For example,
|
store. For example,
|
||||||
|
|
||||||
<screen>
|
<screen>
|
||||||
$ nix-store --export $(type -p firefox) > firefox.closure</screen>
|
$ nix-store --export $(nix-store -qR $(type -p firefox)) > firefox.closure</screen>
|
||||||
|
|
||||||
writes the closure of Firefox to a file. You can then copy this file
|
writes the closure of Firefox to a file. You can then copy this file
|
||||||
to another machine and install the closure:
|
to another machine and install the closure:
|
||||||
|
@ -552,7 +552,7 @@ another command, e.g. to copy and install a closure directly to/on
|
||||||
another machine:
|
another machine:
|
||||||
|
|
||||||
<screen>
|
<screen>
|
||||||
$ nix-store --export $(type -p firefox) | bzip2 | \
|
$ nix-store --export $(nix-store -qR $(type -p firefox)) | bzip2 | \
|
||||||
ssh alice@itchy.example.org "bunzip2 | nix-store --import"</screen>
|
ssh alice@itchy.example.org "bunzip2 | nix-store --import"</screen>
|
||||||
|
|
||||||
But note that <command>nix-copy-closure</command> is generally more
|
But note that <command>nix-copy-closure</command> is generally more
|
||||||
|
|
Loading…
Reference in a new issue