unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* symbolic links for --profile argument
@ 2021-03-30  7:49 Fulbert
  2021-03-30 10:42 ` Julien Lepiller
  0 siblings, 1 reply; 3+ messages in thread
From: Fulbert @ 2021-03-30  7:49 UTC (permalink / raw)
  To: help-guix

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 ?


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: symbolic links for --profile argument
  2021-03-30  7:49 symbolic links for --profile argument Fulbert
@ 2021-03-30 10:42 ` Julien Lepiller
  2021-03-30 16:41   ` Fulbert
  0 siblings, 1 reply; 3+ messages in thread
From: Julien Lepiller @ 2021-03-30 10:42 UTC (permalink / raw)
  To: help-guix, Fulbert

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 ?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: symbolic links for --profile argument
  2021-03-30 10:42 ` Julien Lepiller
@ 2021-03-30 16:41   ` Fulbert
  0 siblings, 0 replies; 3+ messages in thread
From: Fulbert @ 2021-03-30 16:41 UTC (permalink / raw)
  To: help-guix

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 <fulbert@bluewin.ch> 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 ?


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-03-30 16:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-30  7:49 symbolic links for --profile argument Fulbert
2021-03-30 10:42 ` Julien Lepiller
2021-03-30 16:41   ` Fulbert

unofficial mirror of help-guix@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guix-user/0 guix-user/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-user guix-user/ https://yhetil.org/guix-user \
		help-guix@gnu.org
	public-inbox-index guix-user

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.user
	nntp://news.gmane.io/gmane.comp.gnu.guix.user


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git