[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: installing of two versions of package Musescore
From: |
Wojtek Kosior |
Subject: |
Re: installing of two versions of package Musescore |
Date: |
Mon, 26 Dec 2022 19:33:00 +0100 |
Hi Gottfried,
> 3. I want to have "Musescore3.6.2" as the name of this profile, so that
> I quickly now what is in there. Is that possible? If not how this
> profile is specified to see the difference to my main profile?
>
> 4. what should I write in "path/to/profile"
> because AFAIU the profile will be in
> /etc/
>
> like this?:
>
> profileMusescore3.6.2
>
> /etc/profileMusescore3.6.2
>
> "guix package --profileMusescore3.6.2=/etc/profileMusescore3.6.2"
Good news for you — the profile does not need to reside under `/etc/`.
In fact, it would be abnormal to have a non-root user's profile there
since `/etc/` is usually only writeable by root.
User's profiles usually live somewhere under the user's HOME directory.
I'd personally choose a path like `~/.guix-profiles/musescore-3.6.2`.
Someone else would perhaps use `~/.config/guix/Musescore3.6.2`. Just
pick what you like the most.
> Sorry, but I am learning to enter into the language of computerists
> which is still difficult for me.
I think everybody understands that :)
I think you've got the rest right
Good luck,
Wojtek
-- (sig_start)
website: https://koszko.org/koszko.html
PGP: https://koszko.org/key.gpg
fingerprint: E972 7060 E3C5 637C 8A4F 4B42 4BC5 221C 5A79 FD1A
Meet Kraków saints! #44: blessed Salomea
Poznaj świętych krakowskich! #44: błogosławiona Salomea
https://pl.wikipedia.org/wiki/Błogosławiona_Salomea
-- (sig_end)
On Sat, 24 Dec 2022 14:08:38 +0000
Gottfried <gottfried@posteo.de> wrote:
> Hi Csepp,
>
> 1. I think the best idea in my case is to create a separate profile
> with only musescore 3.6.2 in it.
>
> 2. And in my main profile the package musescore will be updated to
> version 4.0. and so on.
>
> Later, if version 4.0 will bei o.k. I can delete the profile with
> Musescore 3.6.2
>
> So I am not sure what to write to create this profile with Musescore 3.6.2
>
> 3. I want to have "Musescore3.6.2" as the name of this profile, so that
> I quickly now what is in there. Is that possible? If not how this
> profile is specified to see the difference to my main profile?
>
> 4. what should I write in "path/to/profile"
> because AFAIU the profile will be in
> /etc/
>
> like this?:
>
> profileMusescore3.6.2
>
> /etc/profileMusescore3.6.2
>
> "guix package --profileMusescore3.6.2=/etc/profileMusescore3.6.2"
>
>
> 5. and to load it:
>
> export GUIX_PROFILE=/etc/profileMusescore3.6.2
>
>
> 6. source "${GUIX-PROFILE}/etc/profileMusescore3.6.2
>
>
> Sorry, but I am learning to enter into the language of computerists
> which is still difficult for me.
>
>
> Kind regards
>
> Gottfried
>
>
> > # first create the profile
> >> guix package --profile=/path/to/profile
> >> # then load it
> >> export GUIX_PROFILE=/path/to/profile
> >> source "${GUIX_PROFILE}/etc/profile"
> >> # alternatively:
> >> source /path/to/profile/etc/profile
> >> # there are some subtle differences between the two
> >> ```
>
>
>
>
> Am 20.12.22 um 18:02 schrieb Csepp:
> >
> > Gottfried <gottfried@posteo.de> writes:
> >
> >> [[PGP Signed Part:Undecided]]
> >> Hi Csepp,
> >>
> >> this was anyhow my question.
> >>
> >>>> In general you do not need to install packages under development in your
> >>>>
> >>>>> main profile. It would be better to either put it in a separate profile
> >>>>> or use a temporary shell every time and put the package definition in a
> >>>>> manifest or script.
> >>
> >>
> >> Until now I installed everything in my main profile
> >>
> >> 1. I don't know yet how to create a profile/manifest.
> >>
> >> I was reading the cookbook and the manual already several times about
> >> that, but it seems to me difficult.
> >
> > A simple way to do it is:
> > ```
> > guix shell --export-manifest python python-sympy | tee guix.scm
> > ```
> >
> > It even works with transforms, so let's say you were working on getting
> > the newest version of Cutter running:
> > ```
> > guix shell --export-manifest --with-latest=cutter cutter | tee guix.scm
> > ```
> >
> >> 2. If I create an other profile through a manifest
> >> what is the benefit of it in my case?
> >
> > You can load the profile separately and it should be overlaid on top of
> > your normal profile, shadowing the Musescore binary from it.
> > The advantage of a persistent profile (as opposed to a manifest on its
> > own) is that it will survive garbage collection, so you won't be
> > building the same package again and again.
> >
> > Another benefit is that you can upgrade them separately. This is why I
> > have TeXlive installed in a separate profile, because it is a several
> > gigabyte download, so I'd rather not have to wait for it every time I
> > upgrade my default profile.
> >
> >> 3. I would have to put all my 60 packages there (how?) and if I
> >> download an other package, would I have to create the manifest again
> >> and again?
> >
> > No. Profiles are not chroots, or containers, or VMs, or anything like
> > that. Profiles can be composed. In fact, if you are using Guix System,
> > you are already using two profiles stacked on top of each other: the
> > system profile at /run/current-system and your default user profile at
> > $HOME/.guix-profile.
> > Packages installed in your system profile do not have to be installed in
> > your user profile. You *can* install them in it, but it's not
> > necessary.
> > Similarly, if you install a different version of Musescore in a separate
> > profile, that only has to contain Musescore and nothing else.
> > I have a graphics profile and it only contains a few programs, like
> > Blender, Inkscape, etc. But for example it does not have Emacs in it,
> > because Emacs is loaded by my default user profile at
> > $HOME/.guix-profile.
> >
> >> 4. And if I want to update the packages, lets say every second week,
> >> then I would have to create the manifest again every second week.
> >
> > No, the manifest file stays the same. It's just a list of packages.
> > To upgrade a persistent profile you can just use the usual method:
> > ```
> > guix package --upgrade --profile=/path/to/profile
> > ```
> >
> > If you don't want to make a persistent profile, you can instead do:
> > ```
> > guix shell --manifest=guix.scm
> > ```
> >
> >> 5. Would I then have to uninstall all my installed packages in the
> >> main profile, in order not to have it twice?
> >
> > No, see above.
> > Also having multiple version of a package installed is not a problem on
> > Guix, only if they are in the same profile. You can have as many
> > conflicting version as you want, they won't concflict if they are not in
> > the same profile.
> >
> >> 6. How could I then use my manifest? Which commands would I have to
> >> use to open it and to use my packages?
> >
> > For a temporary shell (see above on how to create guix.scm):
> > ```
> > guix shell --manifest=guix.scm
> > ```
> >
> > For a persistent profile:
> > ```
> > # first create the profile
> > guix package --profile=/path/to/profile
> > # then load it
> > export GUIX_PROFILE=/path/to/profile
> > source "${GUIX_PROFILE}/etc/profile"
> > # alternatively:
> > source /path/to/profile/etc/profile
> > # there are some subtle differences between the two
> > ```
> >
> > Caveat for persistent profiles:
> > if you modify the profile (for example by installing a new package in
> > it) then you might have to load it again.
> > More precisely: if the list of environment variables in the profile
> > changes, you have to reload it. Otherwise if the GUIX_PROFILE
> > environment variable was defined correctly when you first loaded it,
> > then you don't have to reload it.
>
pgpdPK4pkzFDp.pgp
Description: OpenPGP digital signature
- installing of two versions of package Musescore, Gottfried, 2022/12/19
- Re: installing of two versions of package Musescore, Csepp, 2022/12/19
- Re: installing of two versions of package Musescore, Gottfried, 2022/12/19
- Re: installing of two versions of package Musescore, Csepp, 2022/12/20
- Re: installing of two versions of package Musescore, Gottfried, 2022/12/21
- Re: installing of two versions of package Musescore, Csepp, 2022/12/21
- Re: installing of two versions of package Musescore, Gottfried, 2022/12/22
- Re: installing of two versions of package Musescore, Csepp, 2022/12/22
- Re: installing of two versions of package Musescore, Wojtek Kosior, 2022/12/21
- Re: installing of two versions of package Musescore, Gottfried, 2022/12/24
- Re: installing of two versions of package Musescore,
Wojtek Kosior <=
- Re: installing of two versions of package Musescore, Csepp, 2022/12/27