From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Self-contained Guix tarball Date: Wed, 15 Apr 2015 23:31:09 +0200 Message-ID: <871tjlxen6.fsf@gnu.org> References: <20150410084651.GA23353@thebird.nl> <873848p5kd.fsf@gnu.org> <20150410131420.GB24509@thebird.nl> <87a8ydt8k8.fsf_-_@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiUtx-0005UU-Px for guix-devel@gnu.org; Wed, 15 Apr 2015 17:31:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YiUts-0008JZ-QG for guix-devel@gnu.org; Wed, 15 Apr 2015 17:31:17 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40763) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiUts-0008JU-Np for guix-devel@gnu.org; Wed, 15 Apr 2015 17:31:12 -0400 In-Reply-To: <87a8ydt8k8.fsf_-_@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\?\= \=\?utf-8\?Q\?\=22's\?\= message of "Sun, 12 Apr 2015 22:07:03 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Pjotr Prins Cc: guix-devel@gnu.org I=E2=80=99ve documented installation from the binary tarball (which I plan = to distribute for the next release) in commit 09722b1. Please let me know what you think. Ludo=E2=80=99. 2.1 Binary Installation =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D This section describes how to install Guix on an arbitrary system from a self-contained tarball providing binaries for Guix and for all its dependencies. This is often quicker than installing from source, which is described in the next sections. The only requirement is to have GNU tar and Xz. Installing goes along these lines: 1. Download the binary tarball from =E2=80=98ftp://alpha.gnu.org/gnu/guix/guix-binary-0.8.2.SYSTEM.tar.xz= =E2=80=99(1), where SYSTEM is =E2=80=98x86_64-linux=E2=80=99 for an =E2=80=98x86_64= =E2=80=99 machine already running the kernel Linux, and so on. 2. As =E2=80=98root=E2=80=99, run: # cd / # tar xf guix-binary-0.8.2.SYSTEM.tar.xz This creates =E2=80=98/gnu/store=E2=80=99 (*note The Store::), =E2=80= =98/var/guix=E2=80=99, and =E2=80=98/root/.guix-profile=E2=80=99. =E2=80=98/root/.guix-profile= =E2=80=99 is a ready-to-use profile for =E2=80=98root=E2=80=99 where Guix is installed. 3. Setup the daemon as explained below (*note Setting Up the Daemon::), and run it: # /root/.guix-profile/bin/guix-daemon --build-users-group=3Dguix-= builder 4. Make the =E2=80=98guix=E2=80=99 command available to other users on th= e machine, for instance with: # mkdir -p /usr/local/bin # cd /usr/local/bin # ln -s /root/.guix-profile/bin/guix And that=E2=80=99s it! There are two things to note. First, don=E2=80=99t unpack the tarball o= n a working Guix system since that would overwrite its own essential files. Second, the =E2=80=98guix=E2=80=99 package must remain available in =E2=80= =98root=E2=80=99=E2=80=99s profile, or it would become subject to garbage collection=E2=80=94in which case you wou= ld find yourself badly handicapped by the lack of the =E2=80=98guix=E2=80=99 c= ommand. The tarball in question can be (re)produced simply by running the following command in the Guix source tree: make guix-binary.SYSTEM.tar.xz ---------- Footnotes ---------- (1) As usual, make sure to download the associated =E2=80=98.sig=E2=80= =99 file and to verify the authenticity of the tarball against it!