💾 Archived View for tilde.pink › ~rrobin › 2023-06-03-guix-gc.gmi captured on 2024-05-26 at 16:05:41. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-06-14)

-=-=-=-=-=-=-

Garbage Collection in GUIX System

2023-06-03

GUIX is both a distro independent package manager and a Linux distribution (called GUIX SD or GUIX System). One of the things that makes it trully unique is that it allows you to keep multiple versions of the same package installed at the same time along with all necessary dependencies.

This is achieved by storing unique versions of the packages in the /gnu/ store while linking each version into separate profiles (or the main system). While it is not always clear - you can have two versions of the same package installed, but if they are incompatible, your profile can you link one of them.

Both your user profile, as well as the GUIX system are versioned, and you can rollback changes to an earlier generations if needed. But this always confuses me a little bit when I want to clear out space in my system. So, here is the short version:

Here is my cleanup script:

guix package --delete-generations
guix gc
sudo guix system delete-generations
sudo guix gc

References

Invoking GUIX gc

Invoking GUIX system