[Nix-dev] How to delete old generations and GC them, without GCing anything else?

Matthias Beyer mail at beyermatthias.de
Mon Mar 7 10:37:10 CET 2016


Well it seems that making shell environments persistent is a more valuable
idea...

Thanks for your input, though!

On 06-03-2016 16:34:16, Vladimír Čunát wrote:
> On 03/06/2016 02:14 PM, Kosyrev Serge wrote:
> > Vladimír Čunát <vcunat at gmail.com> writes:
> >> On 03/06/2016 01:10 PM, Matthias Beyer wrote:
> >>> I want to remove old system generations and GC the packages, _without_ removing
> >>> anything else but these generations and their packages.
> >>
> >> I would `nix-store --gc --print-dead` before and after deleting the
> >> generations, and then I would use `comm` to compute the difference and
> >> remove it by `nix-store --gc --delete`.
> > 
> > How does this differ from deleting
> > 
> >   /nix/var/nix/gcroots/profiles/system/system-{old,old,old,old}-link
> > 
> > and then running `nix-store --gc`?
> 
> It differs by not deleting stuff that was deletable before removing
> those system generations. That's what I assume was wanted by "...
> _without_ removing anything else but these generations and their packages."
> 
> --Vladimir
> 
> 



-- 
Mit freundlichen Grüßen,
Kind regards,
Matthias Beyer

Proudly sent with mutt.
Happily signed with gnupg.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160307/effb7879/attachment.bin 


More information about the nix-dev mailing list