From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 EDQiNZnC+2OjigAAbAwnHQ (envelope-from ) for ; Sun, 26 Feb 2023 21:35:37 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sDP7NJnC+2MrVAAAauVa8A (envelope-from ) for ; Sun, 26 Feb 2023 21:35:37 +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 B335D653D for ; Sun, 26 Feb 2023 21:35:37 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWNje-0000Ec-NV; Sun, 26 Feb 2023 15:35:06 -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 1pWNjc-0000EN-9U for help-guix@gnu.org; Sun, 26 Feb 2023 15:35:04 -0500 Received: from lepiller.eu ([2a00:5884:8208::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pWNja-00031s-AV for help-guix@gnu.org; Sun, 26 Feb 2023 15:35:04 -0500 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 4b1fb4e1; Sun, 26 Feb 2023 20:34:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:cc:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; s=dkim; bh=LJTts8X7vo0y TYJpmjyn9odG+s1cUwVn5Z+1H7Rf7Ug=; b=NIv8QRLVxgJxkvT2knw8MeM98bne 2EZhfSqE0/SHs5D0butoLcLzAqkgRs05Xu/22P+DEVluGp07uPbRyDA4ge4tBgfw PNcBKwUbOSUuPOEPriOYI6oOVR27vOhe/knEO5zCK4UcfZOESx7+DrSED7jLwlxE Cq25DRqHNN94t+W+5kHOv/680ARVkebVugr7kTSnk4usvhPDymSbZurVECVwoHxe fA1Mgveh5zCBZRLteHVntVU7aLLfJZk2tHca5mkqj14MUA9e36wfucZ8IEO8kkBO gpuhWMqRPkuyb6C38F2aKI2Hiy0cYDzkqMVnXgbbvfPVkUvmbX0goohqiw== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 28c6f36c (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 26 Feb 2023 20:34:54 +0000 (UTC) Date: Sun, 26 Feb 2023 21:34:53 +0100 From: Julien Lepiller To: Rodrigo Morales Cc: help-guix@gnu.org Subject: Re: Newbie user question: How to delete all files in /gnu/store related to a package definition? Message-ID: <20230226213453.56b5d295@sybil.lepiller.eu> In-Reply-To: References: X-Mailer: Claws Mail 4.1.1 (GTK 3.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:5884:8208::1; envelope-from=julien@lepiller.eu; helo=lepiller.eu 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: , 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=1677443737; a=rsa-sha256; cv=none; b=B0BelhcPlynWxfCT1CR31gt6B7LrvGQiOeAgTtCQmoQ1PmB1uDhFzi+DlF4qUAxKRN0gWV j/NVe5mFbMeSl1ZlHqJRti0NKck+XOu7y+85fqhLlCZQ6LWJiCCfjcveFEostc6FKLCMpj I113gZ/88VGx47AFhPZ+1B2x+Qi7+reIX1qXWeZFs3hkx9BKKh+rv1oP2t4Alhml/N9a+s abVG0Rb4HGQLoPCul/xUVBz89ovpAUl5upOSyuBpO7Ukh2WV857lXOf9yGeMKAfS1pxqhm vx4MoDlFt46dP4RPS2x71KNRM1gHmZxxLxxvJKW2kKeuas76hqCHti3KI4Sdzg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lepiller.eu header.s=dkim header.b=NIv8QRLV; dmarc=pass (policy=none) header.from=lepiller.eu; 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=1677443737; 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=0NpRt/iJkvoqkkhrqeRkqihPyIcxGtHG834+0Z5vQhA=; b=HX8q4kKBpzQgFBo7gcM0FMto9DnDfN+hyOMOyXwvuDyEML4znvvmshuCFUtShRrPmVsYlp Mxqx2sVGmhVXBPf7dpXjvVGlfDR0aBZzsTD+wMYwTvK7WBucIj3P4FzcKBIBrRTp0FTPvU Rxz4l3VfirkWwveS/03AZfTXyKJyMTqOb/PvfAxL6VlP958writEBmyZXw1HB7vtwIjwHV KxgpKDwzFR17/5+/vwaLSyFiJrgdAhurkWi9A4vDh9fJvz5OaKl6bPOu5gpOWzhioKGvZ4 mtXetEmD6shj1/R7PZAEtalwFXe7ewb/nB9cY+j0if7VmPdjAF9NMtHmVi4kPA== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lepiller.eu header.s=dkim header.b=NIv8QRLV; dmarc=pass (policy=none) header.from=lepiller.eu; 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" X-Migadu-Spam-Score: -3.94 X-Spam-Score: -3.94 X-Migadu-Queue-Id: B335D653D X-TUID: RGmt83ygUBSj Hi Rodrigo, > ,---- > | finding garbage collector roots... > | guix gc: error: cannot delete path > `/gnu/store/2j9gykgj0axgg193pd6hvrmnzqbz88nm-font-noto-color-emoji-2.034.drv' > since it is still alive > | Exit code: 123 > `---- As it says, that store path is still alive, but why? When you install a package, remove a package, or do anything in your user profile, guix will create a new "generation" of the profile that contains the same items as the previous generation, except for what you asked it to do. So when removing a package with `guix remove foo`, you cerate a new generation of the profile, where package "foo" is not present. Old generations of your profile are considered live, and are protected against garbage collection, so you can roll back to them easily in case something goes wrong with the new generation. Try this: guix package --roll-back Now, you should be able to use your font again! You can list the generations with guix package --list-generations and go back to the most recent one with guix package --switch-generation= where is the generation number given in the previous command. You can also remove old generations of your profile, for instance, all but the current one: guix package --delete-generations and then, you should be able to collect that store path :) HTH!