FAQ: Difference between revisions
imported>Immae m gc- are deprecated |
imported>Simonmichael |
||
Line 39: | Line 39: | ||
== Why <hash>-<name> instead of <name>-<hash>? == | == Why <hash>-<name> instead of <name>-<hash>? == | ||
For the rare cases where we have to dig into the /nix/store it is more practical to keep in mind the first few letters at the beginning than finding a package by name. | For the rare cases where we have to dig into the /nix/store it is more practical to keep in mind the first few letters at the beginning than finding a package by name. | ||
Ie, you can uniquely identify almost any storepath with just the first 4-5 characters of the hash. | |||
Rather then having to type out the full package name, then 4-5 characters of the hash. | |||
Also: since the initial part is all of the same length, visually parsing a list of packages is easier. | |||
If you still wonder why, run <code>ls -1 /nix/store | sort -R -t - -k 2 | less</code> in your shell. | |||
This is what might happen if you don't garbage collect frequently, or if you are testing compilation variants: | This is what might happen if you don't garbage collect frequently, or if you are testing compilation variants: | ||
Line 54: | Line 60: | ||
xvs7y09jf7j48p6l0p87iypgpq470jqw-nixos-build-vms/ | xvs7y09jf7j48p6l0p87iypgpq470jqw-nixos-build-vms/ | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== I've updated my channel and something is broken, how can I rollback to an earlier channel? == | == I've updated my channel and something is broken, how can I rollback to an earlier channel? == | ||