unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Simon Tournier <zimon.toutoune@gmail.com>
To: Julien Lepiller <julien@lepiller.eu>,
	help-guix@gnu.org, Rodrigo Morales <moralesrodrigo1100@gmail.com>
Subject: Re: Newbie: Error when using "guix gc -D" to delete directory in /gnu/store
Date: Tue, 04 Apr 2023 00:09:04 +0200	[thread overview]
Message-ID: <86cz4ky5xb.fsf@gmail.com> (raw)
In-Reply-To: <9A72DD9D-1676-4AF3-BB16-641E6CB6F7F6@lepiller.eu>

Hi,

On Sun, 19 Mar 2023 at 07:36, Julien Lepiller <julien@lepiller.eu> wrote:
> First of all, you don't need to delete these files. Even if they exist
> in the store, they won't be foumd by other software unless they are
> currently installed in one of your profiles. 
>
> The error you get when you try to delete them means that one of the
> generations of one of your profiles still has a reference to them. You
> should have a look at the symlinks at /var/guix/profiles to fehure out
> which profile and which generetion that is. 

For listing all your profiles, you can run:

    guix package --list-profiles

Well, you could run something like:

    for p in $(guix package --list-profiles);
    do
       echo $p;
       guix package -p $p --list-generations | grep rime-data
    ;done

so you will find in which profile you installed and removed the package
rime-data.  Then, ’guix package -p path/to/that/profile -l’ will list
all the generations.  Depending on context, you can delete the
generations containing the package rime-data; see “guix package
--delete-generations”.

Last, “guix gc -D” should work as expected.

Please note that the corollary of your annoyance is that you are still
able to switch to a specific generation of some profile containing the
package ’rime-data’ without doing anything more (download or else).

Cheers,
simon




      reply	other threads:[~2023-04-04 11:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-19  0:33 Newbie: Error when using "guix gc -D" to delete directory in /gnu/store Rodrigo Morales
2023-03-19  6:36 ` Julien Lepiller
2023-04-03 22:09   ` Simon Tournier [this message]

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=86cz4ky5xb.fsf@gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=julien@lepiller.eu \
    --cc=moralesrodrigo1100@gmail.com \
    /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.
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).