Nix package manager

Nix package manager
Nix package manager
Platform Linux, Unix-like
License LGPL
Website http://nixos.org

Nix is a package manager for computer systems. Like RPM, apt and many other package managers, it is able to control the installation of packages, or named and versioned groups of files, such as software applications or their associated configuration data.[1] [2] [3]

Nix packages are configured using a lazy, pure-functional language especially designed for this purpose; shell scripts or any other external program (such as Make) may be used to build packages from source code. The purely functional nature of the system enables very precise dependency tracking; for example, a binary package has a dependency on the corresponding source package, on the compiler, and on other packages that the build requires. Cryptographic hashes determine the exact build and run-time dependencies of every package, and each source or binary package is represented by such a hash. As a result, binary package repositories are a transparent optimization of the basic operation of the package manager (similar to a "cache" of packages indexed by a cryptographic hash).

Dependencies are resolved by a system functionally equivalent to static linking, in that versions of software being depended on by a package are not removed until no package is dependent on them. This can lead to greater storage needs, but makes all upgrades safe (guaranteed not to break existing applications) and atomic. It also permits multiple versions of any package, including parametrized packages such as a program with and without a certain feature, to coexist with no interference.

Nix depends upon having its own directory structure for installing the packages. All packages are installed in sub-directories of the nix directory. In naming the folders, different versions of a package are identified by prepending the hash to the package name.

Nix can be used, with some caveats, as a package manager on top of an existing operating system, such as another GNU/Linux distribution. It may also be used to maintain any kind of file configurations, such as server setups, in addition to software packages in the strict sense.

NixOS

NixOS[4] is an experimental GNU/Linux distribution using Nix consistently for every piece of software in the system.[5]

References

  1. ^ Prins, P., Suresh, J. and Dolstra, E., "Nix fixes dependency hell on all Linux distributions," linux.com, December 22, 2008
  2. ^ Dolstra, E., de Jonge, M. and Visser, E. "Nix: A Safe and Policy-Free System for Software Deployment." In Damon, L. (Ed.), 18th Large Installation System Administration Conference (LISA '04), pages 79–92, Atlanta, Georgia, USA. USENIX, November 2004.
  3. ^ Dolstra, E. The Purely Functional Software Deployment Model. PhD thesis, Faculty of Science, Utrecht, The Netherlands. January 2006. ISBN 90-393-4130-3.
  4. ^ http://nixos.org/nixos
  5. ^ Dolstra, E. and Löh, A. "NixOS: A Purely Functional Linux Distribution." In ICFP 2008: 13th ACM SIGPLAN International Conference on Functional Programming, pages 367–378, Victoria, British Columbia, Canada. September 2008.

External links


Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • Nix (disambiguation) — Nix is a water creature in German and Scandinavian folklore. Nix may also refer to: People Bern Nix, U.S. jazz guitarist Buddy Nix, American football coach, scout and current General Manager of the Buffalo Bills Don Nix, U.S. songwriter, composer …   Wikipedia

  • Package management system — A package management system is a collection of tools to automate the process of installing, upgrading, configuring, and removing software packages from a computer. Linux and other Unix like systems typically manage thousands of discrete… …   Wikipedia

  • Ben NanoNote — A Ben NanoNote held on the palm of a hand Manufacturer Qi hardware, Sharism At Work Ltd Operating system Custom edition of OpenWrt …   Wikipedia

  • Uzbl — Uzbl …   Википедия

  • MirOS BSD — Screenshot of MirOS #10 current/i386 “wtf ist hallowe’en” Live CD, with IceWM running, Dillo showing a press article about this release, xclock, and jupp open in a background xterm …   Wikipedia

  • Сравнение файловых менеджеров — В следующих таблицах сравнивается общая и техническая информация о множестве известных файловых менеджеров. Содержание 1 Общая информация 1.1 Кроссплатформенные файловые менеджеры …   Википедия

  • Comparison of file managers — The following tables compare general and technical information for a number of notable file managers. Contents 1 General information 2 Operating system support 2.1 Cross platform file managers 2.2 …   Wikipedia

  • Pardus (operating system) — Infobox OS 2 name = Pardus caption = A screenshot of Pardus 2007.2 Caracal caracal developer = Scientific and Technological Research Council of Turkey family = Linux source model = Open source working state = Current kernel type = Monolithic… …   Wikipedia

  • PlayStation 3 — PS3 redirects here. For other uses, see PS3 (disambiguation). PlayStation 3 …   Wikipedia

  • New England Sports Network — NESN logo Launched 1984 Owned by Fenway Sports Group (80%) Delaware North (20%) Picture format 480i (SDTV) 1080i (HDTV) Slogan …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”