mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-08 01:13:42 +02:00
nix-{why-depends, classic, store}: use a more explicit package name instead of ellipsis (#16915)
This commit is contained in:
parent
bd361dadf5
commit
cc020bf3d6
4 changed files with 9 additions and 9 deletions
|
@ -19,7 +19,7 @@
|
|||
|
||||
- Show all dependencies of a store path (package), in a tree format:
|
||||
|
||||
`nix-store {{[-q|--query]}} --tree {{/nix/store/...}}`
|
||||
`nix-store {{[-q|--query]}} --tree /nix/store/{{checksum-package-version.ext}}`
|
||||
|
||||
- Update the channels (repositories):
|
||||
|
||||
|
|
|
@ -14,16 +14,16 @@
|
|||
|
||||
- Delete a specific store path (must be unused):
|
||||
|
||||
`nix-store --delete {{/nix/store/...}}`
|
||||
`nix-store --delete /nix/store/{{checksum-package-version.ext}}`
|
||||
|
||||
- Show all dependencies of a store path (package), in a tree format:
|
||||
|
||||
`nix-store {{[-q|--query]}} --tree {{/nix/store/...}}`
|
||||
`nix-store {{[-q|--query]}} --tree /nix/store/{{checksum-package-version.ext}}`
|
||||
|
||||
- Calculate the total size of a certain store path with all the dependencies:
|
||||
|
||||
`du {{[-cLsh|--total --dereference --summarize --human-readable]}} $(nix-store {{[-q|--query]}} --references {{/nix/store/...}})`
|
||||
`du {{[-cLsh|--total --dereference --summarize --human-readable]}} $(nix-store {{[-q|--query]}} --references /nix/store/{{checksum-package-version.ext}})`
|
||||
|
||||
- Show all dependents of a particular store path:
|
||||
|
||||
`nix-store {{[-q|--query]}} --referrers {{/nix/store/...}}`
|
||||
`nix-store {{[-q|--query]}} --referrers /nix/store/{{checksum-package-version.ext}}`
|
||||
|
|
|
@ -14,12 +14,12 @@
|
|||
|
||||
- Delete a specific store path (most be unused):
|
||||
|
||||
`nix store delete {{/nix/store/...}}`
|
||||
`nix store delete /nix/store/{{checksum-package-version.ext}}`
|
||||
|
||||
- List a contents of the store path, on a remote store:
|
||||
|
||||
`nix store --store {{https://cache.nixos.org}} ls {{/nix/store/...}}`
|
||||
`nix store --store {{https://cache.nixos.org}} ls /nix/store/{{checksum-package-version.ext}}`
|
||||
|
||||
- Show the differences in versions between two store paths, with their respective dependencies:
|
||||
|
||||
`nix store diff-closures {{/nix/store/...}} {{/nix/store/...}}`
|
||||
`nix store diff-closures /nix/store/{{checksum-package-version.ext}} /nix/store/{{checksum-package-version.ext}}`
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
- Show why the currently running NixOS system requires a certain store path:
|
||||
|
||||
`nix why-depends {{/run/current-system}} {{/nix/store/...}}`
|
||||
`nix why-depends {{/run/current-system}} /nix/store/{{checksum-package-version.ext}}`
|
||||
|
||||
- Show why a package from nixpkgs requires another package as a _build-time_ dependency:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue