Installation and Usage of Nix
Nix can be installed on Linux distributions using the following procedure:
Open the shell, and use curl to run the installation script:
For single-user installation:
$ sh <(curl -L https://nixos.org/nix/install) –no-daemon
For multi-user installation:
$ sh <(curl -L https://nixos.org/nix/install) –daemon
The installation script will then proceed to download and install Nix on your system. This process may take several minutes to complete. To ensure that the necessary environment variables are set, either log in again, or type
./home/your_user_name/.nix-profile/etc/profile.d/nix.sh
You can then use the nix-env command to manage packages on your system.
Nix – The Purely Functional Package Manager for Linux
Nix is a purely functional package manager for Linux, that serves to provide a purely functional approach to any system’s software package management. Due to its functional and declarative approach, it is lauded for its capacity to:
- Support the installation of multiple versions of a given package.
- Enable atomic upgrades and rollbacks of a given package.
Contact Us