From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Wilms Subject: Re: Root guix dereferencing Date: Mon, 19 Nov 2018 12:47:09 +0100 Message-ID: References: <984d7a13-05d6-0f05-17ea-57d2858c016c@freenet.de> <20181118230629.GD25252@jasmine.lan> <878t1pbc6t.fsf@lassieur.org> Reply-To: t_w_@freenet.de Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48005) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gOiH3-0006Q4-K5 for help-guix@gnu.org; Mon, 19 Nov 2018 07:03:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gOi44-0002jo-Sn for help-guix@gnu.org; Mon, 19 Nov 2018 06:50:08 -0500 Received: from mout0.freenet.de ([2001:748:100:40::2:2]:48178) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gOi44-0002ih-MM for help-guix@gnu.org; Mon, 19 Nov 2018 06:50:04 -0500 Received: from [195.4.92.163] (helo=mjail0.freenet.de) by mout0.freenet.de with esmtpa (ID t_w_@freenet.de) (port 25) (Exim 4.90_1 #2) id 1gOi42-0008OA-Hs for help-guix@gnu.org; Mon, 19 Nov 2018 12:50:02 +0100 Received: from [::1] (port=41488 helo=mjail0.freenet.de) by mjail0.freenet.de with esmtpa (ID t_w_@freenet.de) (Exim 4.90_1 #2) id 1gOi42-00041z-Gv for help-guix@gnu.org; Mon, 19 Nov 2018 12:50:02 +0100 Received: from sub1.freenet.de ([195.4.92.120]:45060) by mjail0.freenet.de with esmtpa (ID t_w_@freenet.de) (Exim 4.90_1 #2) id 1gOi1G-0000x7-1C for help-guix@gnu.org; Mon, 19 Nov 2018 12:47:10 +0100 Received: from p200300e4f3eeb30028782e6204afb5e9.dip0.t-ipconnect.de ([2003:e4:f3ee:b300:2878:2e62:4af:b5e9]:48154) by sub1.freenet.de with esmtpsa (ID t_w_@freenet.de) (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256) (port 465) (Exim 4.90_1 #2) id 1gOi1F-0001RR-VE for help-guix@gnu.org; Mon, 19 Nov 2018 12:47:10 +0100 In-Reply-To: <878t1pbc6t.fsf@lassieur.org> Content-Language: en-US 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 On 19/11/2018 11.20, Clément Lassieur wrote: > This is because the result of running guix pull is a profile available > under ~/.config/guix/current containing the latest Guix[1]. > > So you may need to make sure it is at the beginning of your search path. Thanks, but the plain user `guix pull` works fine and ~/.config/guix/current is up-to-date. > [1]: https://www.gnu.org/software/guix/manual/en/html_node/Invoking-guix-pull.html I note that this page doesn't contain "sudo" at all and "root" only once, in "For instance, when user root runs guix pull, this has no effect on the version of Guix that user alice sees, and vice versa.". > Thorsten Wilms writes: >> I tried all of these, each time with >> --commit=0a41123f01d5d2466d6f533be3644ac8c9a2bdf9: >> >> sudo guix pull >> sudo -i guix pull >> sudo -E >> guix pull >> >> None of these changed what /usr/local/bin/guix and/or >> /root/.guix-profile/bin/guix are pointing to. I mixed -i and -E up, it was of course sudo -E guix pull sudo -i guix pull That is, first attempt with -E, same as --preserve-env, then sudo -i to log into root before `guix pull`. -- Thorsten Wilms thorwil's design for free software: http://thorwil.wordpress.com/