all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* What prevents "guix package --profile" profiles from being gc'ed?
@ 2016-02-25  0:30 Christopher Allan Webber
  2016-02-25 11:10 ` Alex Kost
  0 siblings, 1 reply; 6+ messages in thread
From: Christopher Allan Webber @ 2016-02-25  0:30 UTC (permalink / raw)
  To: help-guix

Heya all,

I'm a bit confused about profile management for profiles that *aren't*
your system or default user profile.

  guix package --profile=/home/cwebber/guix-profiles/test -i hello

then I run "guix gc", it seems like that profile is still kept around.

David seemed to think that maybe the profile link would be under
/var/guix/profiles/

cwebber@oolong:~$ find /var/guix/profiles/
/var/guix/profiles/
/var/guix/profiles/system-20-link
/var/guix/profiles/system-21-link
/var/guix/profiles/system-7-link
/var/guix/profiles/system-6-link
/var/guix/profiles/system-10-link
/var/guix/profiles/system-22-link
/var/guix/profiles/per-user
/var/guix/profiles/per-user/cwebber
/var/guix/profiles/per-user/cwebber/guix-profile-188-link
/var/guix/profiles/per-user/cwebber/guix-profile-187-link
/var/guix/profiles/per-user/cwebber/guix-profile-189-link
/var/guix/profiles/per-user/cwebber/guix-profile-186-link
/var/guix/profiles/per-user/cwebber/guix-profile-191-link
/var/guix/profiles/per-user/cwebber/guix-profile
/var/guix/profiles/per-user/cwebber/guix-profile-192-link
/var/guix/profiles/per-user/cwebber/guix-profile-193-link
/var/guix/profiles/per-user/cwebber/guix-profile-194-link
/var/guix/profiles/per-user/cwebber/guix-profile-185-link
/var/guix/profiles/per-user/cwebber/guix-profile-190-link
/var/guix/profiles/per-user/root
/var/guix/profiles/system-12-link
/var/guix/profiles/system-11-link
/var/guix/profiles/system-1-link
/var/guix/profiles/system-14-link
/var/guix/profiles/system-19-link
/var/guix/profiles/system-18-link
/var/guix/profiles/system-15-link
/var/guix/profiles/system-13-link
/var/guix/profiles/system-17-link
/var/guix/profiles/system
/var/guix/profiles/system-5-link
/var/guix/profiles/system-8-link
/var/guix/profiles/system-4-link
/var/guix/profiles/system-9-link
/var/guix/profiles/system-3-link
/var/guix/profiles/system-16-link
/var/guix/profiles/system-2-link

It doesn't look like it.

What's keeping that profile around?  Will it ever get gc'ed?  Is it
somehow recorded in Guix's state files?

Just curious,
 - Chris

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: What prevents "guix package --profile" profiles from being gc'ed?
  2016-02-25  0:30 What prevents "guix package --profile" profiles from being gc'ed? Christopher Allan Webber
@ 2016-02-25 11:10 ` Alex Kost
  2016-02-25 17:03   ` Christopher Allan Webber
  2016-02-26 20:32   ` Ricardo Wurmus
  0 siblings, 2 replies; 6+ messages in thread
From: Alex Kost @ 2016-02-25 11:10 UTC (permalink / raw)
  To: Christopher Allan Webber; +Cc: help-guix

Christopher Allan Webber (2016-02-25 03:30 +0300) wrote:

> Heya all,
>
> I'm a bit confused about profile management for profiles that *aren't*
> your system or default user profile.
>
>   guix package --profile=/home/cwebber/guix-profiles/test -i hello
>
> then I run "guix gc", it seems like that profile is still kept around.
>
> David seemed to think that maybe the profile link would be under
> /var/guix/profiles/
[...]
> What's keeping that profile around?  Will it ever get gc'ed?  Is it
> somehow recorded in Guix's state files?

Look at /var/guix/gcroots/auto/.  If you remove old generations, they
will be removed from gcroots/auto next time you run "guix gc".

-- 
Alex

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: What prevents "guix package --profile" profiles from being gc'ed?
  2016-02-25 11:10 ` Alex Kost
@ 2016-02-25 17:03   ` Christopher Allan Webber
  2016-02-26 20:32   ` Ricardo Wurmus
  1 sibling, 0 replies; 6+ messages in thread
From: Christopher Allan Webber @ 2016-02-25 17:03 UTC (permalink / raw)
  To: Alex Kost; +Cc: help-guix

Alex Kost writes:

> Christopher Allan Webber (2016-02-25 03:30 +0300) wrote:
>
>> Heya all,
>>
>> I'm a bit confused about profile management for profiles that *aren't*
>> your system or default user profile.
>>
>>   guix package --profile=/home/cwebber/guix-profiles/test -i hello
>>
>> then I run "guix gc", it seems like that profile is still kept around.
>>
>> David seemed to think that maybe the profile link would be under
>> /var/guix/profiles/
> [...]
>> What's keeping that profile around?  Will it ever get gc'ed?  Is it
>> somehow recorded in Guix's state files?
>
> Look at /var/guix/gcroots/auto/.  If you remove old generations, they
> will be removed from gcroots/auto next time you run "guix gc".

Cool... okay!  So when I delete that profile directory it does
appropriately gc things.  Very neat!

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: What prevents "guix package --profile" profiles from being gc'ed?
  2016-02-25 11:10 ` Alex Kost
  2016-02-25 17:03   ` Christopher Allan Webber
@ 2016-02-26 20:32   ` Ricardo Wurmus
  2016-02-27  9:57     ` Alex Kost
  2016-02-27 17:39     ` Ludovic Courtès
  1 sibling, 2 replies; 6+ messages in thread
From: Ricardo Wurmus @ 2016-02-26 20:32 UTC (permalink / raw)
  To: Alex Kost; +Cc: help-guix


Alex Kost <alezost@gmail.com> writes:

> Christopher Allan Webber (2016-02-25 03:30 +0300) wrote:
>
>> I'm a bit confused about profile management for profiles that *aren't*
>> your system or default user profile.
>>
>>   guix package --profile=/home/cwebber/guix-profiles/test -i hello
>>
>> then I run "guix gc", it seems like that profile is still kept around.

[...]

>> What's keeping that profile around?  Will it ever get gc'ed?  Is it
>> somehow recorded in Guix's state files?
>
> Look at /var/guix/gcroots/auto/.

It would be nice to have a user interface for that, too, so that users
can quickly get an overview on all their custom profiles that may be
littered across local and remote filesystems.

What do you think?

~~ Ricardo

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: What prevents "guix package --profile" profiles from being gc'ed?
  2016-02-26 20:32   ` Ricardo Wurmus
@ 2016-02-27  9:57     ` Alex Kost
  2016-02-27 17:39     ` Ludovic Courtès
  1 sibling, 0 replies; 6+ messages in thread
From: Alex Kost @ 2016-02-27  9:57 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: help-guix

Ricardo Wurmus (2016-02-26 23:32 +0300) wrote:

> Alex Kost <alezost@gmail.com> writes:
>
>> Christopher Allan Webber (2016-02-25 03:30 +0300) wrote:
>>
>>> I'm a bit confused about profile management for profiles that *aren't*
>>> your system or default user profile.
>>>
>>>   guix package --profile=/home/cwebber/guix-profiles/test -i hello
>>>
>>> then I run "guix gc", it seems like that profile is still kept around.
>
> [...]
>
>>> What's keeping that profile around?  Will it ever get gc'ed?  Is it
>>> somehow recorded in Guix's state files?
>>
>> Look at /var/guix/gcroots/auto/.
>
> It would be nice to have a user interface for that, too, so that users
> can quickly get an overview on all their custom profiles that may be
> littered across local and remote filesystems.
>
> What do you think?

Great idea!  I hope I'll add an Emacs UI for this some day (not now).

-- 
Alex

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: What prevents "guix package --profile" profiles from being gc'ed?
  2016-02-26 20:32   ` Ricardo Wurmus
  2016-02-27  9:57     ` Alex Kost
@ 2016-02-27 17:39     ` Ludovic Courtès
  1 sibling, 0 replies; 6+ messages in thread
From: Ludovic Courtès @ 2016-02-27 17:39 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: Alex Kost, help-guix

Ricardo Wurmus <rekado@elephly.net> skribis:

> Alex Kost <alezost@gmail.com> writes:
>
>> Christopher Allan Webber (2016-02-25 03:30 +0300) wrote:
>>
>>> I'm a bit confused about profile management for profiles that *aren't*
>>> your system or default user profile.
>>>
>>>   guix package --profile=/home/cwebber/guix-profiles/test -i hello
>>>
>>> then I run "guix gc", it seems like that profile is still kept around.
>
> [...]
>
>>> What's keeping that profile around?  Will it ever get gc'ed?  Is it
>>> somehow recorded in Guix's state files?
>>
>> Look at /var/guix/gcroots/auto/.
>
> It would be nice to have a user interface for that, too, so that users
> can quickly get an overview on all their custom profiles that may be
> littered across local and remote filesystems.
>
> What do you think?

Would be useful, indeed.

(Feel free to create ‘wishlist’-level items at bug-guix@gnu.org for good
ideas that don’t deserve to be forgotten.  :-))

Ludo’.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-02-27 17:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-25  0:30 What prevents "guix package --profile" profiles from being gc'ed? Christopher Allan Webber
2016-02-25 11:10 ` Alex Kost
2016-02-25 17:03   ` Christopher Allan Webber
2016-02-26 20:32   ` Ricardo Wurmus
2016-02-27  9:57     ` Alex Kost
2016-02-27 17:39     ` Ludovic Courtès

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.