Linux Today: Linux News On Internet Time.

NixOS, a Real Revolution in Package Management

| | Comments (0)

Bruce Byfield wrote a nice review of NixOS, which is "designed as a test of Nix, a new package manager designed to overcome key problems with existing package managers." Debian's Aptitude, Red Hat's Yum, Mandrake's URPMI are all considerably easier that building from sources, or managing package dependencies manually.

Modern Linux distributions come with update notifiers that tell you when updates are available. Which is all good and easy, but they're still just variations on the same theme and aren't all that different from each other. NixOS, on the other hand, demonstrates a radically different approach.

NixOS is around a year old and is far from polished, so don't expect to wave your hands and make magic happen. It does offer a number of unique approaches to package management:

"...users no longer have to rely on package maintainers remembering to specify a specific version of a library or later -- instead, the needed version is installed as required. Just as importantly, NixOS avoids the problem of having the installation of the latest version of a key file added as a dependency for one application disabling another application that requires an earlier version. If a problem emerges anyway, then you can easily rollback the change by deleting the last installed program without danger of collateral damage to the rest of the system."

You can have different versions of the same applications, do atomic upgrades and rollbacks, allow safe non-root application installations, and do non-destructive upgrades. It's quite intriguing, and maybe someday we'll see Nix or some of its advanced concepts used in mainstream Linux distributions.

Comment and Contribute

    (Maximum characters: 4000). You have 4000 characters left.