unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* creating a profile
@ 2021-08-18 15:50 Adriano Peluso
  2021-08-18 17:48 ` Edouard Klein
  0 siblings, 1 reply; 3+ messages in thread
From: Adriano Peluso @ 2021-08-18 15:50 UTC (permalink / raw)
  To: help-guix

I'd like to create a profile containing the dependencies of guile-
commonmark and I'm a bit confused about how to



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

* Re: creating a profile
  2021-08-18 15:50 creating a profile Adriano Peluso
@ 2021-08-18 17:48 ` Edouard Klein
  2021-08-19  5:32   ` Adriano Peluso
  0 siblings, 1 reply; 3+ messages in thread
From: Edouard Klein @ 2021-08-18 17:48 UTC (permalink / raw)
  To: Adriano Peluso; +Cc: help-guix

Hi !

You can pass the --profile option to most guix subcommands.

To install guile-commonmark in a profile, it would be a simple:

guix install --profile=/tmp/toto guile-commonmark

To install only its dependencies, the following bash one liner will do:

guix install --profile=/tmp/toto $(guix show guile-commonmark | grep
dependencies: | sed -e 's/dependencies://')


Enjoy !

Cheers,

Edouard.

Adriano Peluso writes:

> I'd like to create a profile containing the dependencies of guile-
> commonmark and I'm a bit confused about how to



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

* Re: creating a profile
  2021-08-18 17:48 ` Edouard Klein
@ 2021-08-19  5:32   ` Adriano Peluso
  0 siblings, 0 replies; 3+ messages in thread
From: Adriano Peluso @ 2021-08-19  5:32 UTC (permalink / raw)
  To: Edouard Klein; +Cc: help-guix

Il giorno mer, 18/08/2021 alle 19.48 +0200, Edouard Klein ha scritto:
> Hi !
> 
> You can pass the --profile option to most guix subcommands.
> 
> To install guile-commonmark in a profile, it would be a simple:
> 
> guix install --profile=/tmp/toto guile-commonmark
> 
> To install only its dependencies, the following bash one liner will do:
> 
> guix install --profile=/tmp/toto $(guix show guile-commonmark | grep
> dependencies: | sed -e 's/dependencies://')


Thank you ! 

But I think I found the answer I was looking for:

guix environment -r some/path/to/some_file

https://guix.gnu.org/zh-CN/manual/en/html_node/Invoking-guix-environment.html#Invoking-guix-environment





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

end of thread, other threads:[~2021-08-19  5:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-18 15:50 creating a profile Adriano Peluso
2021-08-18 17:48 ` Edouard Klein
2021-08-19  5:32   ` Adriano Peluso

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).