Skip to content

Package Manager Reference

Nix

Installation of Nix

Installation for multi-user.

Terminal window
$ sh <(curl -L https://nixos.org/nix/install) --daemon

Search for available packages

Terminal window
$ nix-env --query --available --attr-path

Installing packages from the channel

  1. Installing the package

    Terminal window
    $ nix-env --install --attr nixpkgs.firefox
  2. Testing whether packages work

    Terminal window
    $ which firefox
    /home/user/.nix-profile/bin/firefox

Uninstalling a package

Terminal window
$ nix-env --uninstall firefox

Updating channel

Terminal window
$ nix-channel --update nixpkgs

Updating packages

Terminal window
$ nix-env --upgrade '*'