Managing Profiles
Nix uses profiles to manage packages. To list your available profiles, use the command nix-env –list-generations. To switch to a different profile, use the command nix-env –switch-generation <generation>. For example:
nix-env --list-generations nix-env --switch-generation 2 nix-env --switch-generation 3
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.