From 48460057419ce651c9484a66d83e6b987b261d8c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 8 Apr 2014 16:09:56 +0200 Subject: Update installation instructions --- doc/manual/installation.xml | 54 +++++++++++++++++++++++++++------------------ 1 file changed, 32 insertions(+), 22 deletions(-) diff --git a/doc/manual/installation.xml b/doc/manual/installation.xml index 4c433a6bf769..3e7ffc537302 100644 --- a/doc/manual/installation.xml +++ b/doc/manual/installation.xml @@ -42,7 +42,28 @@ platforms as well.
Installing a binary distribution -The easiest way to install Nix is to use a binary package. +The easiest way to install Nix is to run the following: + + +$ bash <(curl https://nixos.org/nix/install) + + +This will perform a single-user installation of Nix, meaning that +/nix is owned by the invoking user. You should +run this under your usual user account, not as +root. The script will invoke sudo to create +/nix if it doesn’t already exist. If you don’t +have sudo, you should manually create +/nix first as root: + + +$ mkdir /nix +$ chown alice /nix + + + + +You can also manually download and install a binary package. Binary packages of the latest stable release are available for Fedora, Debian, Ubuntu, Mac OS X and various other systems from the Nix homepage. @@ -55,7 +76,7 @@ build system. or upgraded using rpm -U. For example, -$ rpm -U nix-1.0-1.i386.rpm +$ rpm -U nix-1.7-1.i386.rpm @@ -63,34 +84,24 @@ $ rpm -U nix-1.0-1.i386.rpm install it like this: -$ dpkg -i nix_1.0-1_amd64.deb +$ dpkg -i nix_1.7-1_amd64.deb For other platforms, including Mac OS X (Darwin), FreeBSD and -other Linux distributions, you can download a binary tarball. It -contains Nix and all its dependencies. You should unpack it somewhere -(e.g. in /tmp), and then run the script named -install inside the binary tarball: +other Linux distributions, you can download a binary tarball that +contains Nix and all its dependencies. (This is what the install +script at https://nixos.org/nix/install uses.) You should +unpack it somewhere (e.g. in /tmp), and then run +the script named install inside the binary tarball: alice$ cd /tmp -alice$ tar xfj nix-1.1-x86_64-darwin.tar.bz2 -alice$ cd nix-1.1-x86_64-darwin +alice$ tar xfj nix-1.7-x86_64-darwin.tar.bz2 +alice$ cd nix-1.7-x86_64-darwin alice$ ./install -You should run this under your usual user account, -not as root. The script will invoke -sudo to create /nix if it -doesn’t already exist. If you don’t have sudo, you -should manually create /nix first as root: - - -$ mkdir /nix -$ chown alice /nix - - Nix can be uninstalled using rpm -e nix or @@ -117,8 +128,7 @@ a source distribution. GNU Make. - A fairly recent version of GCC/G++. Version 2.95 - and higher should work. Clang will also work. + A version of GCC or Clang that supports C++11. Perl 5.8 or higher. -- cgit 1.4.1