1
0
Fork 0
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:
Managor 2025-06-27 19:38:43 +03:00 committed by GitHub
parent bd361dadf5
commit cc020bf3d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 9 additions and 9 deletions

View file

@ -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):

View file

@ -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}}`

View file

@ -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}}`

View file

@ -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: