nixoscommands
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| nixoscommands [2026/01/18 17:25] – david | nixoscommands [2026/01/28 18:43] (current) – david | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | sudo nixos-rebuild | + | ====Normal |
| - | sudo nixos-rebuild switch --upgrade | ||
| - | sudo nix-env --profile / | + | |
| - | sudo nix-collect-garbage -d | + | \\ |
| + | |||
| + | ====Update the root user's channel named ‘nixos’ before rebuilding the system: | ||
| + | |||
| + | sudo nix-channel --update | ||
| + | |||
| + | or | ||
| + | |||
| + | sudo nixos-rebuild switch --upgrade | ||
| + | \\ | ||
| + | |||
| + | ====Delete last 5 generations: | ||
| + | |||
| + | sudo nix-env --profile / | ||
| + | \\ | ||
| + | |||
| + | ===Clear unused packages=== | ||
| + | |||
| + | | ||
| + | \\ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | |||
| + | |||
| + | [[nixoscategory|Back to Nixos Home]] | ||
nixoscommands.1768753527.txt.gz · Last modified: by david
