Cleaning the nix store: Difference between revisions

From NixOS Wiki
imported>Profpatsch
add a list of tools to clean the store
 
imported>Mic92
No edit summary
Line 1: Line 1:
Sometimes your store fills up the disk, but a simple `nix-store --gc` does not seem to clean all that much.
Sometimes your store fills up the disk, but a simple <syntaxHighlight>nix-store --gc</syntaxHighlight> does not seem to clean all that much.


This usually means that you have some garbage collection roots that keep old versions of nixpkgs around.
This usually means that you have some garbage collection roots that keep old versions of nixpkgs around.

Revision as of 14:49, 27 August 2020

Sometimes your store fills up the disk, but a simple

nix-store --gc

does not seem to clean all that much.

This usually means that you have some garbage collection roots that keep old versions of nixpkgs around.

There is multiple tools that can help with discovering these gc roots: