unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: "Sébastien Rey-Coyrehourcq" <sebastien.rey-coyrehourcq@univ-rouen.fr>
To: "Daniel Meißner" <daniel.meissner-i4k@ruhr-uni-bochum.de>
Cc: Julien Lepiller <julien@lepiller.eu>, help-guix@gnu.org
Subject: Re: Guix home, guix system, channels, some noob questions
Date: Tue, 17 May 2022 10:01:52 +0200	[thread overview]
Message-ID: <481369ed-182c-000c-5927-f8879503cc39@univ-rouen.fr> (raw)
In-Reply-To: <87ee0s62m7.fsf@ruhr-uni-bochum.de>


[-- Attachment #1.1.1: Type: text/plain, Size: 2580 bytes --]


Le 17/05/2022 à 09:26, Daniel Meißner a écrit :
> Hi Guix,
>
> Sébastien Rey-Coyrehourcq writes:
>
>> Thanks,
>>
>> I made some test on my own to understand :
>>
>> 1 - Like you say, installing things with *guix install* is for current
>> user (for example *firefox* and *sshpass*)
>>
>> 2 - Adding a package that don't exist to * myhome.scm* and reconfigure
>> it with *guix home reconfigure* file will download a package (ex
>> "ncdu"), but this package doesn't appear into "guix package
>> --list-installed"
>>
>> 3 - Adding a package that already exist for user (ex : firefox already
>> installed with guix install) to *myhome.scm* doesn't reinstall
>> package, that's normal.
>>
>> I don't understand the step 2, why *guix home* installed package
>> (*ncdu* here) are not listed with *guix install --list-installed*, is
>> there a difference ?
> ‘guix install’ installs into the current user’s profile which can be
> found at ~/.guix-profile whereas ‘guix home’ creates an immutable
> profile under ~/.guix-home/profile.¹  You can install the same package to
> different profiles but of course they will be built only once (provided
> you use the same Guix revision).  You can list the packages which are
> installed in your Guix home profile via:
>
>    guix package --profile="$HOME/.guix-home/profile" --list-installed
>
> Best
>
>
>
> ¹ IIUC the profile under ~/.guix-profile is also immutable (as are all
>    profiles).  ‘guix install icecat’, for example, would create a new
>    profile that contains all packages from the previous generation of
>    ~/.guix-profile plus the packages icecat and then it would link the
>    new profile to ~/.guix-profile.  In contrast you cannot do the same
>    with ‘guix install’ for ~/.guix-home/profile.  Invoking
>
>      guix install --profile="$HOME/.guix-home/profile" icecat
>
>    to try to install icecat to the profile ~/.guix-home/profile yields:
>
>      guix install: error: open-file: Read-only file system: "/home/daniel/.guix-home/profile.lock"
>
Thanks Daniel,

So if i understand well, in the common use case, if you install guix 
home and use it in parallel with guix install, these profile are 
"cumulative",
software installed are available no matter how I set them up (guix 
install or using guix home declarative file + reconfigure) ?

It is a bit confusing at first for new user, what's the best workflow, 
using the guix home declarative file and "reconfigure" or directly guix 
install ?

SRC

>
> --
> Daniel

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 8861 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2022-05-17  8:02 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-11  9:09 Guix home, guix system, channels, some noob questions Sébastien Rey-Coyrehourcq
2022-05-11 10:47 ` Julien Lepiller
2022-05-11 14:36   ` Sébastien Rey-Coyrehourcq
2022-05-11 14:55     ` Sébastien Rey-Coyrehourcq
2022-05-11 15:48       ` Julien Lepiller
2022-05-12  8:40         ` Sébastien Rey-Coyrehourcq
2022-05-12  9:28           ` Julien Lepiller
2022-05-12 12:32             ` Sébastien Rey-Coyrehourcq
2022-05-17  7:26               ` Daniel Meißner
2022-05-17  8:01                 ` Sébastien Rey-Coyrehourcq [this message]
2022-05-17  8:57                   ` Daniel Meißner
2022-05-17  9:20                     ` Sébastien Rey-Coyrehourcq
2022-05-17 10:15                       ` Daniel Meißner
2022-05-17 16:02                         ` Sébastien Rey-Coyrehourcq
2022-05-25 13:34                           ` Daniel Meißner
2022-05-25 18:45                             ` Efraim Flashner
2022-07-11  6:06                             ` Joshua Branson
2022-05-26  0:31                           ` Dominic Martinez
2022-06-01 20:38                             ` Sébastien Rey-Coyrehourcq
2022-06-12 19:32                               ` sebastien rey-coyrehourcq
2022-06-13 19:31                                 ` Dominic Martinez
2022-06-14 10:36                                   ` Sébastien Rey-Coyrehourcq
2022-05-11 21:56       ` Mekeor Melire

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=481369ed-182c-000c-5927-f8879503cc39@univ-rouen.fr \
    --to=sebastien.rey-coyrehourcq@univ-rouen.fr \
    --cc=daniel.meissner-i4k@ruhr-uni-bochum.de \
    --cc=help-guix@gnu.org \
    --cc=julien@lepiller.eu \
    /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).