mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-23 14:02:08 +02:00

* nix, nix-build, nix-env, nix-collect-garbage, nix-shell: add German translation * nix, nix-build, nix-env, nix-collect-garbage, nix-shell: apply suggestions from code review * nix, nix-build, nix-env, nix-collect-garbage, nix-shell: Applied changes from German code review to originals * Update pages.de/common/nix-collect-garbage.md
17 lines
537 B
Markdown
17 lines
537 B
Markdown
# nix-collect-garbage
|
|
|
|
> Delete unused and unreachable nix store paths.
|
|
> Generations can be listed using `nix-env --list-generations`.
|
|
> More information: <https://nixos.org/releases/nix/latest/manual/#sec-nix-collect-garbage>.
|
|
|
|
- Delete all store paths unused by current generations of each profile:
|
|
|
|
`sudo nix-collect-garbage --delete-old`
|
|
|
|
- Simulate the deletion of old store paths:
|
|
|
|
`sudo nix-collect-garbage --delete-old --dry-run`
|
|
|
|
- Delete all store paths older than 30 days:
|
|
|
|
`sudo nix-collect-garbage --delete-older-than 30d`
|