[Nix-dev] How to delete old generations and GC them, without GCing anything else?
Vladimír Čunát
vcunat at gmail.com
Sun Mar 6 16:34:16 CET 2016
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3771 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160306/d8b2966a/attachment.bin
More information about the nix-dev
mailing list