From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kDObLQNVY2ANdgAAgWs5BA (envelope-from ) for ; Tue, 30 Mar 2021 18:42:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id YMySJwNVY2AQIAAA1q6Kng (envelope-from ) for ; Tue, 30 Mar 2021 16:42:43 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id BB7CD209CC for ; Tue, 30 Mar 2021 18:42:42 +0200 (CEST) Received: from localhost ([::1]:36440 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRHRw-0007Ir-T0 for larch@yhetil.org; Tue, 30 Mar 2021 12:42:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56434) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRHRJ-0007Hf-I3 for help-guix@gnu.org; Tue, 30 Mar 2021 12:42:01 -0400 Received: from vimdzmsp-sfwd04.bluewin.ch ([195.186.227.132]:47173) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRHRG-0003gi-QJ for help-guix@gnu.org; Tue, 30 Mar 2021 12:42:00 -0400 Received: from bluewin.ch ([85.5.44.62]) by vimdzmsp-sfwd04.bluewin.ch Swisscom AG with ESMTPA id RHRAlPx8h4QBHRHRBld0wH; Tue, 30 Mar 2021 18:41:54 +0200 X-Bluewin-Spam-Analysis: v=2.4 cv=LICj/La9 c=1 sm=1 tr=0 ts=606354d2 a=bLoAJnPGBKLbGpzEBMhwHQ==:117 a=IkcTkHD0fZMA:10 a=wuKuS39ux8T8BoHpXQ0A:9 a=QEXdDO2ut3YA:10 X-Bluewin-Spam-Score: 0.00 X-FXIT-IP: IPv4[85.5.44.62] Epoch[1617122514] X-Bluewin-AuthAs: fulbert@bluewin.ch Date: Tue, 30 Mar 2021 18:41:52 +0200 From: Fulbert To: help-guix@gnu.org Subject: Re: symbolic links for --profile argument Message-ID: Mail-Followup-To: help-guix@gnu.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-CMAE-Envelope: MS4xfHVVoTkfZXXNhaf3LjYG4oop+L9PYudjTiXPscohaLa47Mc/NVpvZpRUlq+40HQnXTHQ1+OApPa1T4nJ+vCtBLu3fHvCOA7AUIHw/9AxWEmx7gBOytwq CbZTeR+to6iVCuEaS3q3mAij2qob4xMRGHUBTT+krXj6d0jeqYi/u+1/ Received-SPF: pass client-ip=195.186.227.132; envelope-from=fulbert@bluewin.ch; helo=vimdzmsp-sfwd04.bluewin.ch X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617122563; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=eoQN/eKKSKcDsqNsLtM7uIRWwqPtdRyogkr5fXi3m80=; b=BcSzGYkvXsaP46RFO9f2LD23SV+c33cyaNQ453Ue2o9lotPH1hZdhkeahrxp8RIcafgcrX GQ6ahYK6n0rXekLdkwjAZh1y0e8IXr78MWsn+Q2B+d9KSuK0cuIyFPt3VaJ2byRIxaHPpL u+mBSVh55d/xGsbijbSDBeOmyXuHhT6F1pcB+BSOw1/WddvMitH/yzsz3sVNHm4KGi1J2t EXjmXOd025az4hSS6UpZskb/3SGmOFAzgnqYahawqxBkYNRSBBZtamA1F0EOpju073+WYj k39ycMkTgDxOCn6fzMQqVmSbP02XQMuo5kjZtA84AdGJ4/VnS33IK+9+S2xeog== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617122563; a=rsa-sha256; cv=none; b=Qd7iCQN+6lak8tFBJUjgqiJjxUE/R0W4LdHyldpAFm1/P2tYXSJ6cKxAiSc9eIW58a1yKY R0uH8ZRsfbpWvCYyu6lUHSrlP7WdPlpl5mxLOrk4NdPbB94XVetLoiJA6ni44XqDSuDQhC lGqXyD1MCb8zTHOBFrnaLgJj/7OCeuzOERyfFnz3ocNWX4YVEK7yjuhXQFxFbbDw8BtUo3 quEHzRk1Ku6u1y12dBwbhP9/zbF1Q2u+MEzOu+dknwmxcxr+L8l3B/f+gExWhJvyymT1uf 8QhNCag/XshaX99tTcxS3xWDU9WubwbV86nUpz0gz8KqyRG0YNdpK18NSjkKXA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.42 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: BB7CD209CC X-Spam-Score: -2.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: sMbL8+K+6eJS Le Tue, Mar 30, 2021 at 06:42:29AM -0400, Julien Lepiller a écrit : > The first and third commands are equivalent. I believe the second command will replace .guix-profile with a symlink to .guix-profile-1 which will link to the store. The last command should fail, because you can't create a store item that way. > > I think guix environment --profile will create a profile and symlink directly to the store, without creating generations. Guix package and its aliases (update, remove, install) as well as guix pull create a generation, so their --profile option has the same behavior. > > HTH! Hello Julien, Indeed, it does ! Thanks much for your help. Best regards, > > Le 30 mars 2021 03:49:04 GMT-04:00, Fulbert a écrit : > >Given > > > >~~~{.bash} > >$ readlink ~/.guix-profile > >/var/guix/profiles/per-user/fulbert/guix-profile > > > >$ readlink -f ~/.guix-profile > >/gnu/store/2sj11f64c9cgw40gkjy024vjl688zp7k-profile > >~~~{end} > > > >Will the following commands produce exactly the same result ? > > > >~~~{.bash} > >$ guix package -m ~/default.scm > >$ guix package -m ~/default.scm -p ~/.guix-profile > >$ guix package -m ~/default.scm -p > >/var/guix/profiles/per-user/fulbert/guix-profile > >$ guix package -m ~/default.scm -p > >/gnu/store/2sj11f64c9cgw40gkjy024vjl688zp7k-profile > >~~~{end} > > > >… and more generally, any guix command taking a `--profile` argument ?