From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id uLJGCJLyq2aAEwEA62LTzQ:P1 (envelope-from ) for ; Thu, 01 Aug 2024 20:39:46 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id uLJGCJLyq2aAEwEA62LTzQ (envelope-from ) for ; Thu, 01 Aug 2024 22:39:46 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=famulari.name header.s=mesmtp header.b="C BMUU/k"; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=fW9d+COA; dmarc=none; 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=1722544785; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=YqKI+cnvk7/a1iDhfBkz2xuArDTp8E9VQ/ABBG9X5FA=; b=AlS26ns962moGU3uI1cyIUFjeemH+xSuokVF7r6jYDaTuQjN64hLNzmeRqh4jJK2091im0 7i7pqbIJVN6NCwhfdy/Bo2bbeWchrQ+1q3Q/hmlEqjCDUBOHR1wdfSwTR+lOvlcJEsqjPB OHZzgSz05ND3JuOC4IWcmis6+0DVMBMsdsAfQhonzJRis5+MAltmEHSPe890iJibVhIBA+ Ns//CpkXNckA55u7HTKvBrdSm+Ef7J8K9vRp/LFWyWtm+tH/fMi2pPEiLDWcUHFAkf1W0z BD0NZ+zW/AcB8nbTN5kYyWjL8XTmiBXoAE01YywmLBMm+siyY98b5kxuJr1UpA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1722544785; a=rsa-sha256; cv=none; b=m/LgDUHf2wZAPndBBNr+VKPqFdR+VXVo+hSYK+sMicC1DkQ4IR9x4ADAR+FzfNdsILGfkV y6Sd90UcuZxxJ6cOh9H7NmO02NyNETNNl34Sz5iwuA6E0h1b4p2xotpqb7scIRsQvVdhxo I9WM+knJlhvrt5yueM/RKyn+nbXp7zdeave698A87Qz3UnD79kEmSo/RNHz9u4VCPYq3F0 LEFNTZkjf+Rq0ClMe+1/Elq2s4yw31TDkEALJavYRBdPjF1H1HW1e1cNjbBk5y1zEXndPI Bzzm2STIR+MG2ilD3NWVIscUlcCO37exWZueLENccSseP3MLM4TltClm1jVN7g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=famulari.name header.s=mesmtp header.b="C BMUU/k"; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=fW9d+COA; dmarc=none; 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" 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 7AB847097B for ; Thu, 01 Aug 2024 22:39:45 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sZcZz-0002Ki-7H; Thu, 01 Aug 2024 16:39:19 -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 1sZcZx-0002FE-LV for help-guix@gnu.org; Thu, 01 Aug 2024 16:39:17 -0400 Received: from fhigh8-smtp.messagingengine.com ([103.168.172.159]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sZcZv-0002Vk-8M for help-guix@gnu.org; Thu, 01 Aug 2024 16:39:17 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 2FEC0114E9E7; Thu, 1 Aug 2024 16:39:14 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 01 Aug 2024 16:39:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=mesmtp; t=1722544754; x= 1722631154; bh=YqKI+cnvk7/a1iDhfBkz2xuArDTp8E9VQ/ABBG9X5FA=; b=C BMUU/kzODKyx3CUh/aChgVHWgrTQY9G84L5AaysVAlaH/TmIlKtNlt6aMP+UY9Wl lvh7DcqByHXkpvHEPSb6ymNGi0+B+BJWTynNjVqMQi0beO3Iq+I2dsnConAhn/R4 0YWLAig2mR0AsWcMU4fVMqsl8jKSN3NQTOnmIEYYkI= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1722544754; x=1722631154; bh=YqKI+cnvk7/a1iDhfBkz2xuArDTp 8E9VQ/ABBG9X5FA=; b=fW9d+COAXwTTeV4y97iORkTWByeoWUz7PConCLX06wXo HedM+A+eztiIBy/6VMp4uuHSUFqmuhYuKgqOfLOrhWyRY3C9TXs43/eyPZb4cgIP pCkr4l2SZNqQ7FITwGTNESiqCDUqh/EmnkSiMtrwzc6ot0Xm4z0c9KJBOqcUsldD yBQn+1tej5c/QcNRJEpl3jkosNFqktccAZ1K/cjZ8elteABEHrETWRUDCftpY+ep tnfeP6199N+pNqZq3EA8/aiGxEqjScgUo5MseqpMarLpD+eLVb1mHjgDApYrO7x5 d1zacPqniseZ9+6f6P67iqwFDc0HhBHm4JX5zjsEdg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrjeekgdduheefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepnfgvohcu hfgrmhhulhgrrhhiuceolhgvohesfhgrmhhulhgrrhhirdhnrghmvgeqnecuggftrfgrth htvghrnhepteehuedviedvleeuueekhfdtieehtdeghfdvvdelhfdujeduieehleefveet uefhnecuffhomhgrihhnpehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomheplhgvohesfhgrmhhulhgrrhhirdhnrghmvgdpnhgs pghrtghpthhtoheptd X-ME-Proxy: Feedback-ID: i819c4023:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 1 Aug 2024 16:39:13 -0400 (EDT) Date: Thu, 1 Aug 2024 16:38:55 -0400 From: Leo Famulari To: Zack Weinberg Cc: help-guix@gnu.org Subject: Re: "guix system reconfigure" downloads 2G of stuff it doesn't need Message-ID: References: <8c1407de-4ddf-4153-8406-9c10c26c21d7@app.fastmail.com> <395da8a2-a99b-46cc-bb63-d58425c9aff1@app.fastmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <395da8a2-a99b-46cc-bb63-d58425c9aff1@app.fastmail.com> Received-SPF: pass client-ip=103.168.172.159; envelope-from=leo@famulari.name; helo=fhigh8-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, 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: , 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: US X-Migadu-Spam-Score: -7.13 X-Spam-Score: -7.13 X-Migadu-Queue-Id: 7AB847097B X-Migadu-Scanner: mx11.migadu.com X-TUID: Ko+oDVSzgN2F On Tue, Jul 30, 2024 at 01:56:28PM -0400, Zack Weinberg wrote: > Is there a good way to investigate _why_ each of these packages is > considered necessary to build the system generation [...] Yes, the source code of Guix is available here: https://git.savannah.gnu.org/cgit/guix.git/ ... and it's totally self-contained in that Git repo. As for specifics, I recommend asking on the #guix IRC channel or here. Generally, consider that building and making effective a Guix System generation requires diverse work to be performed. For example, file-systems and partitions may be created or changed. The bootloader will be changed. The initial ram disk will be built and installed. Networking configuration may be altered. User accounts and groups may be created, deleted, or changed. And so on. There are a lot of programs involved and most of them have run-time dependencies too. > [...] and, equally importantly, why they are _not_ considered > necessary by "guix gc"? The short answer is "to save disk space at the potential cost of increased network usage". First, read the brief documentation to learn about the garbage collector works, at a high level: https://guix.gnu.org/manual/devel/en/html_node/Invoking-guix-gc.html If you just want to stop these things from being garbage collected, you can run the guix-daemon with the argument "--gc-keep-outputs=yes", and maybe also "--gc-keep-derivations=yes": https://guix.gnu.org/manual/devel/en/html_node/Invoking-guix_002ddaemon.html Of course your space usage will increase. Your general question is frequently asked, here is a good discussion of the subject and the trade-offs involved in configuring the garbage collector: https://lists.gnu.org/archive/html/guix-devel/2018-07/msg00287.html https://lists.gnu.org/archive/html/help-guix/2018-09/msg00028.html I hope that helps!