From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id MAzjJuuVeGBDFAEAgWs5BA (envelope-from ) for ; Thu, 15 Apr 2021 21:37:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id SN2lIOuVeGDRJQAAbx9fmQ (envelope-from ) for ; Thu, 15 Apr 2021 19:37:15 +0000 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 C1EFE9A00 for ; Thu, 15 Apr 2021 21:37:12 +0200 (CEST) Received: from localhost ([::1]:37136 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lX7na-0000ZB-R1 for larch@yhetil.org; Thu, 15 Apr 2021 15:37:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40530) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lX7nS-0000Wh-7I for bug-guix@gnu.org; Thu, 15 Apr 2021 15:37:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55966) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lX7nR-0000cf-UI for bug-guix@gnu.org; Thu, 15 Apr 2021 15:37:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lX7nR-00025V-Qu for bug-guix@gnu.org; Thu, 15 Apr 2021 15:37:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#47748: Packages which cant be find/removed by guix remove Resent-From: Mark H Weaver Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 15 Apr 2021 19:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47748 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: bo0od , Julien Lepiller Received: via spool by 47748-submit@debbugs.gnu.org id=B47748.16185153627931 (code B ref 47748); Thu, 15 Apr 2021 19:37:01 +0000 Received: (at 47748) by debbugs.gnu.org; 15 Apr 2021 19:36:02 +0000 Received: from localhost ([127.0.0.1]:39276 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX7mT-00023h-Q9 for submit@debbugs.gnu.org; Thu, 15 Apr 2021 15:36:02 -0400 Received: from world.peace.net ([64.112.178.59]:40842) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX7mR-000236-Bl for 47748@debbugs.gnu.org; Thu, 15 Apr 2021 15:36:01 -0400 Received: from mhw by world.peace.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lX7mK-0004dZ-L4; Thu, 15 Apr 2021 15:35:52 -0400 From: Mark H Weaver In-Reply-To: References: <20210414022859.3c98e08d@tachikoma.lepiller.eu> <87czuwr9l5.fsf@netris.org> Date: Thu, 15 Apr 2021 15:34:05 -0400 Message-ID: <87blafibp3.fsf@netris.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 47748@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618515435; 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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=XGRJQSyTKnSgyog7h4T7Zi06a/HGEsZfDHOFR4GAFdI=; b=OCJb9uT+c6vkzPT8j8xHAjd9dsCjaK1R0TH1lRjUi8+oOlTAvI9qKU9+gBXzrxIwLxtZE8 XyVi958Ba6UqL5pBwfywvJk/ZVbsMWua7r1wOxYpffGgLhTfn9ap4csYkN1Gg7jqPYmC7n AgPPOH+vs2e05Ou4VGqGr+R2QZaRdls639dXXxDtZUU6yPpDJN9XydJHNCvKTGsp4kXJ/v 09GMb/2mfMUQwgvaAAq1RWL7+DxLIuyv1CEC6LxveXu77CqXsqM8i7uztPzgOBQBX7BE/Q FK/6Fp0IcSgYs2HFchWgn8sEHJxYVbWaQpT4xeS4C/OxfSU5LUOxkJaCmNDdAQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618515435; a=rsa-sha256; cv=none; b=m9mxd9bh3gkuIAx95yBiac+rOPGw+UXkA5+J4OZ6EvsN2AexnnpWP74c5kCzmn8zg44u7l vZW9SIr6gIzstMFoO/4CTW/DClYGvEhILf45LZMzm6ZVY3leIS9ZToRcu7xkwCeEdTRx5C ItUQy+Mtug1V5VUd8ugaOVU71pwbb6REs9L6v7i95Zt+nJzJZu+2GHGVO3LCzEtXpDIe0O XqBLeRWyhqW2Zy0K1CWsh9rRSlqVHVHjG73lazjBBqqcxIseOusy8UaCo06li6pRWsQHaN rw+ZWd/hfNBn+i6/nWubaLNiWrE25ezqggtAeITumJK7DwWIMLBzwQRa9fapsg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.44 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: C1EFE9A00 X-Spam-Score: -2.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: 40QG+8mMmhfA bo0od writes: > > You seem to want it to do something different than it was intended to > > do, although I'm not precisely sure what that is. Do you want it to t= ry > > to purge all copies of the given package from /gnu/store? If so, that > > might require deleting (or modifying) older system generations and old= er > > user profiles, which would interfere with rollback functionality. > > Isnt this the standard understanding of deleting a package whether in=20 > GNU/Linux or Windows or Mac? If user has the root rights he should be=20 > able to delete software x, The command in Guix that most closely matches what you seem to be asking for is "guix gc --delete", which will try to delete a given set of store items. In your original bug report, it looks like 'avahi' was one of the things you were trying to remove, so I'll use that as an example: --8<---------------cut here---------------start------------->8--- mhw@jojen ~$ guix gc --delete /gnu/store/=E2=80=A6-avahi-0.8 finding garbage collector roots... guix gc: error: cannot delete path `/gnu/store/=E2=80=A6-avahi-0.8' since i= t is still alive --8<---------------cut here---------------end--------------->8--- If you get this error, you can use "guix gc --referrers" to find out what's keeping it alive: --8<---------------cut here---------------start------------->8--- mhw@jojen ~$ guix gc --referrers /gnu/store/=E2=80=A6-avahi-0.8 /gnu/store/=E2=80=A6-geoclue-2.5.7 /gnu/store/=E2=80=A6-gvfs-1.40.2 /gnu/store/=E2=80=A6-pulseaudio-14.0 /gnu/store/=E2=80=A6-cups-filters-1.27.4 /gnu/store/=E2=80=A6-guile-avahi-0.4.0-1.6d43caf /gnu/store/=E2=80=A6-avahi-0.8 /gnu/store/=E2=80=A6-cups-2.3.3 /gnu/store/=E2=80=A6-grilo-plugins-0.3.11 --8<---------------cut here---------------end--------------->8--- So, it looks like I won't be able to remove avahi from my store, at least not if I want to keep GNOME, CUPS, or Pulseaudio. For similar reasons, I can't remove Avahi from my Debian server either: --8<---------------cut here---------------start------------->8--- root@world:~# dpkg -r libavahi-client3 dpkg: dependency problems prevent removal of libavahi-client3:amd64: libvirt0:amd64 depends on libavahi-client3 (>=3D 0.6.16). libcups2:amd64 depends on libavahi-client3 (>=3D 0.6.16). dpkg: error processing package libavahi-client3:amd64 (--remove): dependency problems - not removing Errors were encountered while processing: libavahi-client3:amd64 --8<---------------cut here---------------end--------------->8--- Anyway, I agree that it would be good to have a user-friendly way to ask Guix why a given piece of software is in their store, and to help them find ways to remove it, if possible. We have some tools to help with this, e.g. "guix gc --referrers", "guix graph --type=3Dreverse-package", "guix graph --type=3Dreverse-bag", and "guix graph --path", etc, but there's plenty of room for improvement. Mark