From 57386c9baee78e50eb0c4a901ca9e1c147dc9777 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 10 Feb 2014 16:35:59 +0100 Subject: Binary tarball: Automatically create /nix The tarball can now be unpacked anywhere. The installation script uses "sudo" to create /nix if it doesn't exist. It also fetches the nixpkgs-unstable channel. --- doc/manual/installation.xml | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) (limited to 'doc') diff --git a/doc/manual/installation.xml b/doc/manual/installation.xml index a136d3b11..4c433a6bf 100644 --- a/doc/manual/installation.xml +++ b/doc/manual/installation.xml @@ -69,27 +69,26 @@ $ dpkg -i nix_1.0-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 in the -root directory, then run nix-finish-install: +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: -$ cd / -$ tar xfj nix-1.1-x86_64-darwin.tar.bz2 -$ nix-finish-install +alice$ cd /tmp +alice$ tar xfj nix-1.1-x86_64-darwin.tar.bz2 +alice$ cd nix-1.1-x86_64-darwin +alice$ ./install -After this you can delete -/usr/bin/nix-finish-install. - -If you plan to use Nix from a single non-root user account, it’s -probably convenient to change the ownership of the entire Nix store -and database to that user account. In that case, install as follows: +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: -alice$ cd / -alice$ sudo tar xfj nix-1.1-x86_64-darwin.tar.bz2 -alice$ sudo chown -R alice /nix -alice$ nix-finish-install +$ mkdir /nix +$ chown alice /nix -- cgit v1.2.3