* Whta is the significance of ~/.cache/guix/profiles?
@ 2023-06-26 15:07 Unstable Horse
2023-06-29 0:47 ` Csepp
0 siblings, 1 reply; 5+ messages in thread
From: Unstable Horse @ 2023-06-26 15:07 UTC (permalink / raw)
To: help-guix
Good day, people.
I'm trying to GC my system for the first time, and after running this
command:
guix gc --list-roots | sort -u
Among the expected roots such as guix-profile-*-link and
current-guix-*-link I also see dozens of lines like this one:
/home/user/.cache/guix/profiles/wjel4twocqclznutccv2mx65a5rxpb6e7lluegd
zsksvdy3lp74a
with just the hash and no name. What are they for? Is it safe to just
rm -rf ~/.cache/guix/profiles
once in a while, or should I leave them be?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Whta is the significance of ~/.cache/guix/profiles?
2023-06-26 15:07 Whta is the significance of ~/.cache/guix/profiles? Unstable Horse
@ 2023-06-29 0:47 ` Csepp
2023-06-29 4:36 ` Felix Lechner via
0 siblings, 1 reply; 5+ messages in thread
From: Csepp @ 2023-06-29 0:47 UTC (permalink / raw)
To: Unstable Horse; +Cc: help-guix
Unstable Horse <stable.master@unstable.horse> writes:
> Good day, people.
>
> I'm trying to GC my system for the first time, and after running this
> command:
>
> guix gc --list-roots | sort -u
>
> Among the expected roots such as guix-profile-*-link and
> current-guix-*-link I also see dozens of lines like this one:
>
> /home/user/.cache/guix/profiles/wjel4twocqclznutccv2mx65a5rxpb6e7lluegd
> zsksvdy3lp74a
>
> with just the hash and no name. What are they for? Is it safe to just
>
> rm -rf ~/.cache/guix/profiles
>
> once in a while, or should I leave them be?
Just guessing based on a quick check of the contents of it on my
machine: probably serves as a cache of guix shell profiles.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Whta is the significance of ~/.cache/guix/profiles?
2023-06-29 0:47 ` Csepp
@ 2023-06-29 4:36 ` Felix Lechner via
2023-06-29 8:31 ` wolf
0 siblings, 1 reply; 5+ messages in thread
From: Felix Lechner via @ 2023-06-29 4:36 UTC (permalink / raw)
To: Csepp; +Cc: Unstable Horse, help-guix
Hi Unstable Horse,
> Just guessing based on a quick check of the contents of it on my
> machine: probably serves as a cache of guix shell profiles.
I also think that's what they are.
Removing the links won't save much space, though. You are probably
better off sticking to 'guix gc' unless you have a specific reason.
Kind regards
Felix
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Whta is the significance of ~/.cache/guix/profiles?
2023-06-29 4:36 ` Felix Lechner via
@ 2023-06-29 8:31 ` wolf
2023-06-29 17:19 ` Unstable Horse
0 siblings, 1 reply; 5+ messages in thread
From: wolf @ 2023-06-29 8:31 UTC (permalink / raw)
To: Felix Lechner; +Cc: Csepp, Unstable Horse, help-guix
[-- Attachment #1: Type: text/plain, Size: 1055 bytes --]
Hi,
On 2023-06-28 21:36:28 -0700, Felix Lechner via wrote:
> Hi Unstable Horse,
>
> > Just guessing based on a quick check of the contents of it on my
> > machine: probably serves as a cache of guix shell profiles.
>
> I also think that's what they are.
>
> Removing the links won't save much space, though. You are probably
> better off sticking to 'guix gc' unless you have a specific reason.
I do not think this is entirely accurate. The links serve as additional roots
for the garbage collector, so if your remove them, more items from the store can
be collected, possibly a lot more items. On the other hand, those links should
be automatically cleaned after some time by guix shell. So if you want to do as
thorough clean as possible, removing the links makes sense, but if you just want
to some light cleaning, you might very well leave it up to the guix shell.
>
> Kind regards
> Felix
>
W.
--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Whta is the significance of ~/.cache/guix/profiles?
2023-06-29 8:31 ` wolf
@ 2023-06-29 17:19 ` Unstable Horse
0 siblings, 0 replies; 5+ messages in thread
From: Unstable Horse @ 2023-06-29 17:19 UTC (permalink / raw)
To: wolf, Csepp; +Cc: Felix Lechner, help-guix
On Thu, 2023-06-29 at 02:47 +0200, Csepp wrote:
> Just guessing based on a quick check of the contents of it on my
> machine: probably serves as a cache of guix shell profiles.
That checks out, I did use guix shell a few times.
On Thu, 2023-06-29 at 10:31 +0200, wolf wrote:
> The links serve as additional roots for the garbage collector, so if
> your remove them, more items from the store can be collected,
> possibly a lot more items. On the other hand, those links should be
> automatically cleaned after some time by guix shell. So if you want
> to do as thorough clean as possible, removing the links makes sense,
> but if you just want to some light cleaning, you might very well
> leave it up to the guix shell.
Nice, I didn't know guix shell would eventually clean them up.
Thanks everyone for the info! Also, sorry for the title. :)
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-07-02 13:51 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-26 15:07 Whta is the significance of ~/.cache/guix/profiles? Unstable Horse
2023-06-29 0:47 ` Csepp
2023-06-29 4:36 ` Felix Lechner via
2023-06-29 8:31 ` wolf
2023-06-29 17:19 ` Unstable Horse
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.