NixOS: Difference between revisions

From Wiki :-)
Jump to navigation Jump to search
No edit summary
No edit summary
Line 106: Line 106:
|
|
|-
|-
|nix-env -qaf <patch/to/nixpkg>
|nix-env -qaf <path/to/nixpkg>
|view the set of available packages from a specific Nixpkgs folder
|
|
|-
|nix-env -qas
|get the status of the available package
|
|
|-
|nix-env -i <package>
|install the given package
|
|
|-
|nix-env -e <package>
|uninstall the given package
|
|
|-
|nix-env -u <package>
|upgrade the given package
|
|
|-
|nix-env -u
|upgrade all the package
|
|
|-
|nix-env -u --dry-run
|
|
|
|

Revision as of 06:53, 6 December 2017

Build the configuration Make the default boot Switch the running system to it Comments
nixos-rebuild switch Yes Yes Yes
nixos-rebuild test Yes No Yes
nixos-rebuild boot Yes Yes No (next reboot)
nixos-rebuild switch -p test Yes ? ? Show up in a different Grub sub-menu
nixos-rebuild build Yes No No
nixos-rebuild build-vm Yes No No Generate a Qemu image
Command Comment
nixos-rebuild switch --upgrade Update nix-channel --update nixos; nixos-rebuild-switch
nix-channel --list
nix-channel --add <URL> <NAME>
nix-channel --remove <NAME>
nix-channel --update <NAME>
nix-env -qa view the set of available packages in Nixpkgs
nix-env -qaf <path/to/nixpkg> view the set of available packages from a specific Nixpkgs folder
nix-env -qas get the status of the available package
nix-env -i <package> install the given package
nix-env -e <package> uninstall the given package
nix-env -u <package> upgrade the given package
nix-env -u upgrade all the package
nix-env -u --dry-run