Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Nix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nora Puchreiner
Nix
Commits
f12492c6
Commit
f12492c6
authored
12 years ago
by
Eelco Dolstra
Browse files
Options
Downloads
Patches
Plain Diff
Manual: Fix "nix-store --export" example
parent
aebea2e4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/manual/package-management.xml
+3
-3
3 additions, 3 deletions
doc/manual/package-management.xml
with
3 additions
and
3 deletions
doc/manual/package-management.xml
+
3
−
3
View file @
f12492c6
...
...
@@ -538,7 +538,7 @@ dependencies) to a file, and then unpack that file into another Nix
store. For example,
<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
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:
<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>
But note that
<command>
nix-copy-closure
</command>
is generally more
...
...
@@ -583,7 +583,7 @@ $ nix-env -i firefox</screen>
and Nix has to build a path that it sees is already present in
<filename>
/mnt/nix
</filename>
, then it will just copy from there
instead of building it from source.
</para>
</section>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment