Hi!

guix gc is responsible for removing unneeded packages. From
https://guix.gnu.org/manual/en/html_node/Invoking-guix-gc.html:

The garbage collector has a set of known roots: any file under /gnu/store reachable from a root is considered live and cannot be deleted; any other file is considered dead and may be deleted. ... the symlinks under /var/guix/gcroots represent these GC roots.

My own experience is that guix gc reports and removes dead symlinks in this directory. So I
guess just remove the symlinks you listed:


$ guix package --list-profiles
/home/sirgazil/.devenvs/my-project/my-project
/home/sirgazil/.devenvs/project-a/project-a
/home/sirgazil/.config/guix/current
/home/sirgazil/.guix-profile


and then call guix gc.

Cheers,
Moritz

Reply via email to