From e0a947cde6d11b5182500f024719b04b8997189a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 8 Apr 2014 16:28:39 +0200 Subject: [PATCH] Simplify quick start section --- doc/manual/quick-start.xml | 57 ++++++++------------------------------ 1 file changed, 11 insertions(+), 46 deletions(-) diff --git a/doc/manual/quick-start.xml b/doc/manual/quick-start.xml index 779b9b9b8..170799063 100644 --- a/doc/manual/quick-start.xml +++ b/doc/manual/quick-start.xml @@ -11,56 +11,22 @@ to the following chapters. -Download a source tarball or RPM or Debian/Ubuntu -package from . Build source -distributions using the regular sequence: +Install Nix by running the following: -$ tar xvfj nix-version.tar.bz2 -$ cd nix-version -$ ./configure -$ make -$ make install (as root) +$ bash <(curl https://nixos.org/nix/install) + -This will install the Nix binaries in /usr/local -and keep the Nix store and other state in /nix. -You can change the former by specifying -. The -location of the store can be changed using -. -However, you shouldn't change the store location, if at all possible, -since that will make it impossible to use pre-built binaries from the -Nixpkgs channel and other channels. The location of the state can be -changed using - - -You should add -prefix/etc/profile.d/nix.sh -to your ~/.profile (or some other login -file). - -Subscribe to the Nix Packages channel. - - -$ nix-channel --add http://nixos.org/channels/nixpkgs-unstable - - - -Download the latest Nix expressions available in the channel. - -$ nix-channel --update - -Note that this in itself doesn't download any packages, it just -downloads the Nix expressions that build them and stores them -somewhere (under ~/.nix-defexpr, in case you're -curious). Also, it registers the fact that pre-built binaries are -available remotely. +This will install Nix in /nix. The install script +will create /nix using sudo, +so make sure you have sufficient rights. (For other installation +methods, see .) See what installable packages are currently available in the channel: -$ nix-env -qa \* +$ nix-env -qa docbook-xml-4.2 firefox-1.0pre-PR-0.10.1 hello-2.1.1 @@ -72,7 +38,7 @@ libxslt-1.1.0 Install some packages from the channel: -$ nix-env -i hello firefox ... +$ nix-env -i hello ... This should download pre-built packages; it should not build them locally (if it does, something went wrong). @@ -84,8 +50,7 @@ $ which hello /home/eelco/.nix-profile/bin/hello $ hello Hello, world! -$ firefox -(read Slashdot or something) + @@ -99,7 +64,7 @@ $ nix-env -e hello To keep up-to-date with the channel, do: -$ nix-channel --update +$ nix-channel --update nixpkgs $ nix-env -u '*' The latter command will upgrade each installed package for which there