unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Julien Lepiller <julien@lepiller.eu>
To: help-guix@gnu.org,Fulbert <fulbert@bluewin.ch>
Subject: Re: symbolic links for --profile argument
Date: Tue, 30 Mar 2021 06:42:29 -0400	[thread overview]
Message-ID: <E2C69A70-91BD-46B9-82BF-FC59631DADD0@lepiller.eu> (raw)
In-Reply-To: <YGLX8JmJSWLvHZQQ@bluewin.ch>

Hi,

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!

Le 30 mars 2021 03:49:04 GMT-04:00, Fulbert <fulbert@bluewin.ch> a écrit :
>Hello and thanks for visiting my question !
>
>It is a stupid one, but just to be sure :
>
>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 ?

  reply	other threads:[~2021-03-30 10:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-30  7:49 symbolic links for --profile argument Fulbert
2021-03-30 10:42 ` Julien Lepiller [this message]
2021-03-30 16:41   ` Fulbert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E2C69A70-91BD-46B9-82BF-FC59631DADD0@lepiller.eu \
    --to=julien@lepiller.eu \
    --cc=fulbert@bluewin.ch \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).