From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: I don't understand profiles and directories Date: Sat, 19 Jan 2019 22:00:20 +0100 Message-ID: <87zhrwe54v.fsf@elephly.net> References: <5333814.JLzRfVLkOs@aleksandar-ixtreme-m5740> <2015239.4T21D1mT5N@aleksandar-ixtreme-m5740> <8736pofuio.fsf@elephly.net> <5645159.Nm1EbChBH9@aleksandar-ixtreme-m5740> 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]:40088) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1glCVn-0004iU-Ds for help-guix@gnu.org; Sun, 20 Jan 2019 07:47:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1glCVl-0006uy-Se for help-guix@gnu.org; Sun, 20 Jan 2019 07:47:39 -0500 Received: from sender-of-o53.zoho.com ([135.84.80.218]:21745) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1glCVj-0006qe-6N for help-guix@gnu.org; Sun, 20 Jan 2019 07:47:36 -0500 In-reply-to: <5645159.Nm1EbChBH9@aleksandar-ixtreme-m5740> 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: HiPhish Cc: help-guix@gnu.org HiPhish writes: > On Saturday, 19 January 2019 18:05:03 CET you wrote: >> I don=E2=80=99t think so. It should print a file name. > The message must have cut off, there was a full file path into `/gnu/ > store/...`. That=E2=80=99s not correct. This indicates that the GUIX_PROFILE variable = is not exported. > Just to re-iterate, the Guix binary I'm going to=20 > invoke from the command line (`guix`) comes from this profile `~/.config/= guix/ > current/`, while all my packages are in the `~/.guix-profile` profile, > correct? Yes. > This means that the Guix binary from `~/.config/guix/current/` shadows th= e one=20 > from `~/.guix-profile`. There shouldn=E2=80=99t be any =E2=80=9Cguix=E2=80=9D package in ~/.guix-pr= ofile. > > My complete `~/.profile` file now contains > > source "$HOME/.guix-profile/etc/profile" I=E2=80=99d replace this with: export GUIX_PROFILE=3D$HOME/.guix-profile source $GUIX_PROFILE/etc/profile This ensures that the variables won=E2=80=99t point to specific store items= but rather to the *current* generation (even when you upgrade). > and `which guix` prints > > /home/username/.config/guix/current/bin/guix Good! --=20 Ricardo