Hello Leo and Ricardo, Leo Famulari <[email protected]> writes:
… > You can see the GC root symlinks in /var/guix/gcroots. You can make a > new GC root manually by adding a symlink to the store item you want to > preserve. For example: > > $ ln --symbolic $(guix build hello) /var/guix/gcroots/my-hello Just for the record and other readers. If I create “GC root” with “guix build --root=$HOME/PACKAGE PACKAGE”, I will have two symbolic links --8<---------------cut here---------------start------------->8--- $HOME/PACKAGE -> /gnu/store/…-PACKAGE /var/guix/gcroots/auto/HASH -> $HOME/PACKAGE --8<---------------cut here---------------end--------------->8--- To remove this package in next garbage collector invocation just remove “$HOME/PACKAGE” symbolic link. First invocation of GC like “guix gc --list-live” will remove “/var/guix/gcroots/auto/HASH” symbolic link. Thank you Leo and Ricardo! -- Best regards, Oleg.
