From mboxrd@z Thu Jan 1 00:00:00 1970 From: HiPhish Subject: Re: I don't understand profiles and directories Date: Sun, 20 Jan 2019 00:20:54 +0100 Message-ID: <1600005.yDqdFR1sp3@aleksandar-ixtreme-m5740> References: <5333814.JLzRfVLkOs@aleksandar-ixtreme-m5740> <5645159.Nm1EbChBH9@aleksandar-ixtreme-m5740> <87zhrwe54v.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:55780) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkzvI-0000Yq-Iu for help-guix@gnu.org; Sat, 19 Jan 2019 18:21:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gkzvH-0002Z3-M8 for help-guix@gnu.org; Sat, 19 Jan 2019 18:21:08 -0500 Received: from mout02.posteo.de ([185.67.36.66]:58363) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gkzvH-0002W4-6x for help-guix@gnu.org; Sat, 19 Jan 2019 18:21:07 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 2CD3E2400FC for ; Sun, 20 Jan 2019 00:21:04 +0100 (CET) In-Reply-To: <87zhrwe54v.fsf@elephly.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org On Saturday, 19 January 2019 22:00:20 CET you wrote: > > This means that the Guix binary from `~/.config/guix/current/` shadows = the > > one from `~/.guix-profile`. >=20 > There shouldn=E2=80=99t be any =E2=80=9Cguix=E2=80=9D package in ~/.guix-= profile. Here is what I have: $ cd ~/.guix-profile/bin $ ls | grep guix guix guix-daemon $ file guix guix-daemon=20 guix: symbolic link to /gnu/store/vv1kkj9aqpv1akk7l7vp2kkd695wgxcr=20 guix-0.16.0-8.7ba2b27/bin/guix guix-daemon: symbolic link to /gnu/store/vv1kkj9aqpv1akk7l7vp2kkd695wgx= cr- guix-0.16.0-8.7ba2b27/bin/guix-daemon $ ./guix --version guix (GNU Guix) 0.16.0-8.7ba2b27 $ guix --version guix (GNU Guix) 8d09e97b8cdde9dcceb2353112613a3fee63426d So both are symlinks to items in the store, and they are distinct from the= =20 Guix that's in my $PATH. > > My complete `~/.profile` file now contains > >=20 > > source "$HOME/.guix-profile/etc/profile" >=20 > I=E2=80=99d replace this with: >=20 > export GUIX_PROFILE=3D$HOME/.guix-profile > source $GUIX_PROFILE/etc/profile >=20 > This ensures that the variables won=E2=80=99t point to specific store ite= ms but > rather to the *current* generation (even when you upgrade). OK, got it.