From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id QAdKHgzpqWNegQAAbAwnHQ (envelope-from ) for ; Mon, 26 Dec 2022 19:33:48 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id CJGAHQzpqWOaRgEAG6o9tA (envelope-from ) for ; Mon, 26 Dec 2022 19:33:48 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E10672F7EE for ; Mon, 26 Dec 2022 19:33:47 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p9sHv-0007c0-0P; Mon, 26 Dec 2022 13:33:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p9sHr-0007br-VR for help-guix@gnu.org; Mon, 26 Dec 2022 13:33:25 -0500 Received: from koszko.org ([93.95.227.159]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p9sHn-0008NF-Ke for help-guix@gnu.org; Mon, 26 Dec 2022 13:33:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=koszko.org; s=mail; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=IXk7R2rlZmAAdgTCqgUDf3XKDcBPEf+XzgC2PNPgj9k=; b=Ab2heX5P1+TTHhQRkAGYQr+4eK hIOmCxDkumPd3sr0H4KneLUfMbfw+r0zsIHX7TcU3uDXz2aaNz9FQ2+TD0lKTwTTqzhdxUU9OrYwn oTV5HlkdvhukBLqvPwKeq7kRBNqlFdQU97mtiwOIf3nu2ZrKqkrVssILieOXH/fNVDN5bLriGJ/Us MTH3CJn9i3cY/D5tD2uNYPe/MA++JHEecGqD1CuZG5vQdZaMtcc16v4vCLO3uY87VfmY1A+qmhsD+ zCdXIXZQZP3AW6CcbVcMNYYBb/HZz9rQiEJGK/TNO5u+CcDp5QWFNTsUjQco03ephk/e/Ln73ZtAw eFDlXB0Nyka7EvHYq/84nd31ggTAeDzzMiKbtNlQJwuLj66gb0N0WnSLI7zZSKbGRhlkBgvbisWrV +R9Lio67o33z4vmQrWWBMgPACp9Jy+Xl0fHRpLkKLu4G+KeN7UHfufpd1Dh0cyx6HMgMre2AAuXJk jvsYUW98l8ZjCtfsHpoNqERqaBQA6YIaEDYKbLltsyyO/UWqUUyxyHaeGr2EEeImsjPFnTHeEk23K CJxQh68zHkJHSffNVTPQisk3iH0EPkuz2ajrssEzakGARQDj0dM23pumecMF5wZQBg1O+vqoga2dh qBcHGMTzG4nqlNL4yTIbOUXPEf546xdDG6eS2rYT0=; Received: from [77.252.47.223] (helo=koszkonutek-tmp.pl.eu.org) by koszko.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p9sHW-0006Yf-Rk; Mon, 26 Dec 2022 19:33:03 +0100 Date: Mon, 26 Dec 2022 19:33:00 +0100 To: Gottfried Cc: Csepp , help-guix@gnu.org Subject: Re: installing of two versions of package Musescore Message-ID: <20221226193300.296fae7e.koszko@koszko.org> In-Reply-To: <290ffc04-7511-daf9-eae3-fb659c93d18f@posteo.de> References: <89e84b0b-0e63-01c7-9d44-2e6e3fd30641@posteo.de> <87v8m7o5qv.fsf@riseup.net> <87mt7iugu7.fsf@riseup.net> <290ffc04-7511-daf9-eae3-fb659c93d18f@posteo.de> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/oTAjznOSAeeTmwOKtljcCPQ"; protocol="application/pgp-signature"; micalg=pgp-sha256 Received-SPF: pass client-ip=93.95.227.159; envelope-from=koszko@koszko.org; helo=koszko.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Wojtek Kosior From: Wojtek Kosior via Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672079628; a=rsa-sha256; cv=none; b=KSG3hRzKeG82W+YwSqdZCYdu47+8AvFGjbDRfTZkSeYqQPjIN2F1NVm01FKrXRwwd8O7kV yx/wV9PGqur8eg0d4uHQjfYP4VtDILDLhGQJIhsR7Mm1s9aVQmV3eavdbzK4QDlBC3bMCY xWKKKj4TR60hc9qKfc2/bjxOqNXp+QEBILG8yr2WSmbtIKMbnJaQcMCKH5PP4L/o9tY5QG tyyr9Zgyf+7yb0E0ykRtDvcNUVMAdcY35Tzg5y/Cbj2srhVnV3BZEm65c/iSawPq73wPnK m+Y1L4le+CW+Cdl4TgH38EFqrDEgGSeOpUMOEOQ41JabpKjUIVRka71iEosZwg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=Ab2heX5P; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672079628; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=IXk7R2rlZmAAdgTCqgUDf3XKDcBPEf+XzgC2PNPgj9k=; b=bmKKEsdndrMMVatlP53+IC1d328X5QhDB34mf3MsyLiG3UrwQhQH+GbG8J272qua15SoYT DhWoOcckBDA6cWZwpQMrXTqf3q2EWWPVzEJuJMyOZTs787d0VAT7lHc4+a3NOHsHrRWRT7 UvXe1BLwjy+yO8ehp0Hqmc3iuTc0c7TCGefug4ifslCMEKJvyQ+Xdtj4R/j1ysWVGKSeCe 5pu6llPHeQ27oQgN/e6m9E0+wyhsuq0cAuYDNo9UPdqyrjCON4IUqVsTtAQfB5MYzJ0Bj+ yiDD64K7iFfLUK1kPW4q4iVLyH+p5JhlXQ6YhG03quw7oVByA3iv2a0H2rP8Wg== X-Spam-Score: -4.73 X-Migadu-Queue-Id: E10672F7EE Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=Ab2heX5P; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -4.73 X-TUID: otLgciThKuTx --Sig_/oTAjznOSAeeTmwOKtljcCPQ Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Gottfried, > 3. I want to have "Musescore3.6.2" as the name of this profile, so that= =20 > I quickly now what is in there. Is that possible? If not how this=20 > profile is specified to see the difference to my main profile? >=20 > 4. what should I write in "path/to/profile" > because AFAIU the profile will be in > /etc/ >=20 > like this?: >=20 > profileMusescore3.6.2 >=20 > /etc/profileMusescore3.6.2 >=20 > "guix package --profileMusescore3.6.2=3D/etc/profileMusescore3.6.2" Good news for you =E2=80=94 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=C3=B3w saints! #44: blessed Salomea Poznaj =C5=9Bwi=C4=99tych krakowskich! #44: b=C5=82ogos=C5=82awiona Salomea https://pl.wikipedia.org/wiki/B=C5=82ogos=C5=82awiona_Salomea -- (sig_end) On Sat, 24 Dec 2022 14:08:38 +0000 Gottfried wrote: > Hi Csepp, >=20 > 1. I think the best idea in my case is to create a separate profile > with only musescore 3.6.2 in it. >=20 > 2. And in my main profile the package musescore will be updated to > version 4.0. and so on. >=20 > Later, if version 4.0 will bei o.k. I can delete the profile with=20 > Musescore 3.6.2 >=20 > So I am not sure what to write to create this profile with Musescore 3.6.2 >=20 > 3. I want to have "Musescore3.6.2" as the name of this profile, so that= =20 > I quickly now what is in there. Is that possible? If not how this=20 > profile is specified to see the difference to my main profile? >=20 > 4. what should I write in "path/to/profile" > because AFAIU the profile will be in > /etc/ >=20 > like this?: >=20 > profileMusescore3.6.2 >=20 > /etc/profileMusescore3.6.2 >=20 > "guix package --profileMusescore3.6.2=3D/etc/profileMusescore3.6.2" >=20 >=20 > 5. and to load it: >=20 > export GUIX_PROFILE=3D/etc/profileMusescore3.6.2 >=20 >=20 > 6. source "${GUIX-PROFILE}/etc/profileMusescore3.6.2 >=20 >=20 > Sorry, but I am learning to enter into the language of computerists > which is still difficult for me. >=20 >=20 > Kind regards >=20 > Gottfried >=20 >=20 > > # first create the profile =20 > >> guix package --profile=3D/path/to/profile > >> # then load it > >> export GUIX_PROFILE=3D/path/to/profile > >> source "${GUIX_PROFILE}/etc/profile" > >> # alternatively: > >> source /path/to/profile/etc/profile > >> # there are some subtle differences between the two > >> ``` =20 >=20 >=20 >=20 >=20 > Am 20.12.22 um 18:02 schrieb Csepp: > >=20 > > Gottfried writes: > > =20 > >> [[PGP Signed Part:Undecided]] > >> Hi Csepp, > >> > >> this was anyhow my question. > >> =20 > >>>> In general you do not need to install packages under development in = your =20 > >>>>> main profile. It would be better to either put it in a separate pr= ofile > >>>>> or use a temporary shell every time and put the package definition = in a > >>>>> manifest or script. =20 > >> > >> > >> 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. =20 > >=20 > > A simple way to do it is: > > ``` > > guix shell --export-manifest python python-sympy | tee guix.scm > > ``` > >=20 > > 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=3Dcutter cutter | tee guix.s= cm > > ``` > > =20 > >> 2. If I create an other profile through a manifest > >> what is the benefit of it in my case? =20 > >=20 > > 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. > >=20 > > 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. > > =20 > >> 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? =20 > >=20 > > 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. > > =20 > >> 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. =20 > >=20 > > 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=3D/path/to/profile > > ``` > >=20 > > If you don't want to make a persistent profile, you can instead do: > > ``` > > guix shell --manifest=3Dguix.scm > > ``` > > =20 > >> 5. Would I then have to uninstall all my installed packages in the > >> main profile, in order not to have it twice? =20 > >=20 > > 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. > > =20 > >> 6. How could I then use my manifest? Which commands would I have to > >> use to open it and to use my packages? =20 > >=20 > > For a temporary shell (see above on how to create guix.scm): > > ``` > > guix shell --manifest=3Dguix.scm > > ``` > >=20 > > For a persistent profile: > > ``` > > # first create the profile > > guix package --profile=3D/path/to/profile > > # then load it > > export GUIX_PROFILE=3D/path/to/profile > > source "${GUIX_PROFILE}/etc/profile" > > # alternatively: > > source /path/to/profile/etc/profile > > # there are some subtle differences between the two > > ``` > >=20 > > 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. =20 >=20 --Sig_/oTAjznOSAeeTmwOKtljcCPQ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQTpcnBg48VjfIpPS0JLxSIcWnn9GgUCY6no3AAKCRBLxSIcWnn9 Gk3TAP99yf6wuGL78toLqNQufIe/CZAySSoMUbNGGMPvdbipAAD7B4cSCSzOk9Ch 24Z06JZyOqEIBM0AkyvJlAo4+jMzSwE= =fYC0 -----END PGP SIGNATURE----- --Sig_/oTAjznOSAeeTmwOKtljcCPQ--