unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: bo0od <bo0od@riseup.net>
To: Mark H Weaver <mhw@netris.org>, Julien Lepiller <julien@lepiller.eu>
Cc: 47748@debbugs.gnu.org
Subject: bug#47748: Packages which cant be find/removed by guix remove
Date: Fri, 16 Apr 2021 02:45:09 +0000	[thread overview]
Message-ID: <e7a876ad-9a4b-93a2-009b-a868de009f9b@riseup.net> (raw)
In-Reply-To: <87blafibp3.fsf@netris.org>

Great, I believe you got my message clearly thank you as well for the 
commands.

yes in debian if you want to remove libavahi it wont be removed (without 
breaking stuff), but avahi-daemon (if its installed) you can remove it 
with no issues so as wpa-supplicant,mesa..etc

Anyway you just got my message clearly and i appreciate that <f>.

Mark H Weaver:
> bo0od <bo0od@riseup.net> 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 try
>>   > to purge all copies of the given package from /gnu/store?  If so, that
>>   > might require deleting (or modifying) older system generations and older
>>   > user profiles, which would interfere with rollback functionality.
>>
>> Isnt this the standard understanding of deleting a package whether in
>> GNU/Linux or Windows or Mac? If user has the root rights he should be
>> 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/…-avahi-0.8
> finding garbage collector roots...
> guix gc: error: cannot delete path `/gnu/store/…-avahi-0.8' since it 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/…-avahi-0.8
> /gnu/store/…-geoclue-2.5.7
> /gnu/store/…-gvfs-1.40.2
> /gnu/store/…-pulseaudio-14.0
> /gnu/store/…-cups-filters-1.27.4
> /gnu/store/…-guile-avahi-0.4.0-1.6d43caf
> /gnu/store/…-avahi-0.8
> /gnu/store/…-cups-2.3.3
> /gnu/store/…-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 (>= 0.6.16).
>   libcups2:amd64 depends on libavahi-client3 (>= 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=reverse-package",
> "guix graph --type=reverse-bag", and "guix graph --path", etc, but
> there's plenty of room for improvement.
> 
>        Mark
> 




  reply	other threads:[~2021-04-16 16:26 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-13 12:46 bug#47748: Packages which cant be find/removed by guix remove bo0od
2021-04-14  0:28 ` Julien Lepiller
2021-04-14  2:44   ` Mark H Weaver
2021-04-14 10:34     ` Julien Lepiller
2021-04-14 16:07       ` Mark H Weaver
2021-04-16 14:52         ` Mark H Weaver
2021-04-14 16:31   ` bo0od
2021-04-14 18:42     ` Mark H Weaver
2021-04-15  9:26       ` bo0od
2021-04-15 19:34         ` Mark H Weaver
2021-04-16  2:45           ` bo0od [this message]
2021-04-14 18:44     ` Maxime Devos
2021-04-15  9:37       ` bo0od
2021-04-15 18:04         ` Maxime Devos
2021-04-16  2:58           ` bo0od
2021-04-14 18:48     ` Julien Lepiller
2021-04-15 10:16       ` bo0od
2021-04-15 11:03         ` Julien Lepiller
2021-04-16  2:11           ` bo0od
2021-04-16  3:41             ` Leo Famulari
2021-04-16  4:37               ` bo0od
2021-04-16  7:23                 ` Leo Famulari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e7a876ad-9a4b-93a2-009b-a868de009f9b@riseup.net \
    --to=bo0od@riseup.net \
    --cc=47748@debbugs.gnu.org \
    --cc=julien@lepiller.eu \
    --cc=mhw@netris.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).