From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Confusion around the new `guix pull' Date: Mon, 11 Jun 2018 13:16:51 +0200 Message-ID: <87sh5tk1y4.fsf@gnu.org> References: 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]:34264) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSKoj-0007E6-3A for help-guix@gnu.org; Mon, 11 Jun 2018 07:16:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSKof-0004pE-TZ for help-guix@gnu.org; Mon, 11 Jun 2018 07:16:57 -0400 In-Reply-To: (Fis Trivial's message of "Sun, 10 Jun 2018 22:33:09 +0000") 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: Fis Trivial Cc: help-guix Hello, Fis Trivial skribis: > * Is it ok to remove /usr/local/bin/guix ? It=E2=80=99s OK to remove this symlink *if* all your users have already populated ~/.config/guix/current. > Now the new guix command is resided in ~/.config/guix/current, is the > old one (linked from /root/.guix-profile/bin/guix manually) still > needed? I don't have any other users other than root and my current user > needs to use it. The old one is still needed for root because it provides =E2=80=98guix-daem= on=E2=80=99, which =E2=80=98guix pull=E2=80=99 doesn=E2=80=99t build currently. (In the future =E2=80=98guix pull=E2=80=99 will provide ~/.config/guix/current/bin/guix-daemon, and at that point the old one can be removed altogether.) Regardless, ~/.config/guix/current/bin should come first in $PATH so that you get to run the latest =E2=80=98guix=E2=80=99 command. > Or, as a normal user(non-root), is there any different between using the > one linked at installation time (the one from root's profile) and the > one from $HOME/.config/guix/bin? Users should use ~/.config/guix/current/bin/guix because it=E2=80=99s going= to be up-to-date, whereas /usr/local/bin/guix may remain old. > * What's the different for ~/.guix-profile/bin/guix and > ~/.config/guix/current/bin/guix for root user account. The latter can be upgraded anytime by running =E2=80=98guix pull=E2=80=99; = the former cannot be upgraded. > As a root user, there are two guix command now, as shown in the question > title. > > Which one should I use? > > What are the differences? > > Is there a right way to remove the duplication? > > > Or is there a section of documentation that explains the relationship > between the `guix' in /root/.guix-profile/bin and one in > /root/.config/guix/current/bin? I didn't found it, but if there is one, > please point me to it. One way to look at it is that =E2=80=98guix pull=E2=80=99 provides an up-to= -date Guix (sans guix-daemon). Conversely, the package in ~root/.guix-profile is a fixed snapshot of Guix. We update the =E2=80=98guix=E2=80=99 package in Gu= ix from time to time, and you can upgrade it that way, but basically normal users should only care about ~/.config/guix/current. HTH! Ludo=E2=80=99.