From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id MES1Oi0PRmRfYwEASxT56A (envelope-from ) for ; Mon, 24 Apr 2023 07:10:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id uGjNOS0PRmQQEgEAG6o9tA (envelope-from ) for ; Mon, 24 Apr 2023 07:10:05 +0200 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 94CBC3A086 for ; Mon, 24 Apr 2023 07:10:05 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=PrsjEGuz; dmarc=pass (policy=reject) header.from=disroot.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682313005; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=zN6swyxC4S6VCS8G+xjtEZokkgcsBtucO7tJ4hXVPEM=; b=EvgtOf515aThSNMZpXhqzWqqRTMA5GzY7cgC0Um7PZP0ICi7PLaSi9CtdKBtQvEzMkSPK1 K48RpYMVHMoJfi6ulw0LHTrkelBpCRUG68rbqDqjI/rKuOimgavCNUmIpw5jeE/JK0tt3R EBoBvTgX+7Qmbj93DzxikB7w+S9LPLa1ptstGp5NV9k1aq+ncPD4w9ipbHMKr4UeutHqjn vEPx9avebfmU3Xz6BNIWf5R7cwku9qgrfg2g5MepX/818+CieWOKnOQTv95+U73PDHfOkZ 1RB2B97T8A2FU64YfNMl578teRqSAmUE3qVs35YPLd6W5Mi8v+HGmPN0sT3Kzg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=PrsjEGuz; dmarc=pass (policy=reject) header.from=disroot.org; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682313005; a=rsa-sha256; cv=none; b=nVlLUy7Qpowx4b7dXUoUuarL5QdVn9ir5M9FC4EOdYnTT3mbL+lLb6aP+wdHoMlqw5fGVB UOi/O0VZY6b2+qSCUWYEbsJLtoVY+GdpseZrNCvwRW5TIu0kqFe612GpPrzNMg/7RGK6OJ 9u8ye6KdhaML0YoXrbXJ/lMXXnNhydL+4q90si+d26anwp9h4JqQNEBRLXUeXpLz7vLplu tgZC9BSBl9kNslJQ23JD6+tGnLS3z5eCs0AVjKIla0+sPXByDcltW5l9H7z6yrwhN/rrUv o3kj0izCFgzjWfNBbNP39W0xAdjdN49PD+Y0St3ejb6xQAw07M9EbSd64tFHsQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pqnUe-00054G-NS; Mon, 24 Apr 2023 00:08:00 -0400 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 1pnVW7-0003kX-2P for help-guix@gnu.org; Fri, 14 Apr 2023 22:19:55 -0400 Received: from knopi.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pnVW4-0001bf-LZ for help-guix@gnu.org; Fri, 14 Apr 2023 22:19:54 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 0CBAA4022B; Sat, 15 Apr 2023 04:19:49 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id O0eroIkRxxQC; Sat, 15 Apr 2023 04:19:47 +0200 (CEST) References: <82e1b04c-c8e1-ccfc-04c7-2cfe61fec850@posteo.de> <87ilfe4p4q.fsf@disroot.org> <1ebe7b6b-d5d1-5f5f-8688-35f2556e6a3f@posteo.de> <87v8iui28p.fsf@disroot.org> <46956a31-b505-453b-2fa2-e59b21736836@posteo.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1681525187; bh=68SQbn8f1nQb36DVGF7ZxfPa1BA1y0akNPLKc9Mozuo=; h=References:Date:From:To:Cc:Subject:In-reply-to; b=PrsjEGuz9JAYoqw2ntLx8EHsZ9Nk5LmkVwz1UW22XbvLLOLyfc60+ke/g1tvtNT1t m+G8AA0SW3ZYFl+tRUQoP+yhkLBti7xNmq9kR78sqbCPf6d03Q3oCf9XZb5ZbZ6Ukn rOBf3hrxQqUTQjebdAs4gmAcbtl0OEW7+wM4KymD3hVlkN8mIHjFqUz/MGCQN0eb0Y TZ81MsEZYjwt8c5EqqF24QEwMg6ZgaR2rV3Nxkpz0Yj9JfPJQws0E6rICZCuLus1yx 9+j+US4xjuFc7SMZUZ/FCNkyVsvoM20GfDHgoniji3erfcVimwjRKOAZqgnCStA+85 FYhiwtEJPLJGQ== Date: Fri, 14 Apr 2023 22:08:22 -0400 From: Tracker To: Gottfried Cc: help-guix@gnu.org Subject: Re: I am sorry Re: Help-Guix Digest, Vol 88, Issue 4 In-reply-to: Message-ID: <87wn2drio0.fsf@disroot.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=178.21.23.139; envelope-from=tracker@disroot.org; helo=knopi.disroot.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_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 24 Apr 2023 00:01:55 -0400 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: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: UNKNOWN X-Migadu-Spam-Score: -3.92 X-Spam-Score: -3.92 X-Migadu-Queue-Id: 94CBC3A086 X-Migadu-Scanner: in3.migadu.com X-TUID: a7x3LC0CIMCx Gottfried writes: > Hi, > I am sorry, I mixed up two questions. > I was already one thought ahead. > > 1. Question about activating all profiles at login time > 2. Question updating all profiles at once. > > 1. > to avtivate all profiles at once > You wrote that it would be better to have only one package in one profil. > So I would have to use each package in a separate profil > > Musescore version 4.0.2 > and Musescore version 3.6.2 > are in different profiles, > so I guess it shouldn=E2=80=99t be a problem > What do you say? No, I think you misunderstood me. I have multiple packages in each of my profiles. This is fine. I would not make one profile per package. That seems like an abuse of the system somehow. The point of a profile is to create an environment in which a particular group of packages is installed. That's it. By default, each user on Guix System has one user profile. All packages that they install are placed into it. This is easy to manage. Some people (like myself) choose to create additional profiles. Many people do this in order to separate out a group of packages that they don't want installed (or upgraded) all the time. I do it because occasionally one of my packages breaks when I am upgrading my system. By splitting all of my packages up into a few different profiles by category, if one package fails to upgrade, then that profile doesn't upgrade, but all of my other profiles do. This allows me to install the newest software for everything outside of the broken profile. Then I focus on fixing the broken package and just upgrade the broken profile. Easy peasy. > 2. > To update all profiles at once > this is a different question, which I have to deal as well. > > Is there a way to do it? > > Is there a way to exclude the profile "Musik" because this profile I > have to upgrade with: > > guix package -p /home/gfp/Projekte/Musik/guix-profil -m > /home/gfp/Projekte/Musik/musik.scm > > or put Musescore 3.6.2 in a separate profil, > but still the question remains, that this profil should then not be > included in the update process. I believe I already provided you with the code for updating profiles and activating them, but here it is again for reference: ```update-profiles.sh #!/bin/sh GUIX_MANIFESTS=3D$HOME/sys/guix/manifests GUIX_PROFILES=3D$HOME/sys/guix/profiles for dir in $GUIX_PROFILES/* do name=3D$(basename "$dir") manifest=3D$GUIX_MANIFESTS/$name.scm profile=3D$dir/$name if [ -r $manifest ] then guix package --manifest=3D"$manifest" --profile=3D"$profile" fi unset profile unset manifest unset name done ``` ```activate-profiles.sh #!/bin/sh GUIX_PROFILES=3D$HOME/sys/guix/profiles for dir in $GUIX_PROFILES/* do name=3D$(basename "$dir") profile=3D$dir/$name if [ -f "$profile"/etc/profile ] then GUIX_PROFILE=3D"$profile" . "$GUIX_PROFILE"/etc/profile export MANPATH=3D"$GUIX_PROFILE/share/man${MANPATH:+:}$MANPATH" export INFOPATH=3D"$GUIX_PROFILE/share/info${INFOPATH:+:}$INFOPATH" fi unset profile unset name done ``` These scripts both loop over my manifests or profiles directories, running the upgrade or activate commands on each one. If you want to exclude a profile from being upgraded with this script, you can just take away its manifest's read permissons like so: ``` chmod -r $HOME/sys/guix/manifests/my-excluded-manifest.scm ``` Good luck, Gary --=20 GPG Key ID: C4FBEDBD Use `gpg --search-keys tracker@disroot.org' to find me Protect yourself from surveillance: https://emailselfdefense.fsf.org =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments Why is HTML email a security nightmare? See https://useplaintext.email/ Please avoid sending me MS-Office attachments. See http://www.gnu.org/philosophy/no-word-attachments.html