On Wed, Feb 12, 2020 at 01:53:45PM +0100, Thomas Danckaert wrote:
> Hi,
> 
> I have limited space on my root file system, and therefore need to run 'guix
> gc' regularly.  One problem with that is that the texlive source package
> (currently
> /gnu/store/mj40l554qxw15acz0h018gk5c9mxzfgn-texlive-20180414-texmf.tar.xz)
> regularly gets deleted that way.  When I upgrade after running guix gc, I
> often find I need to download this very large (2.5G) tarball again.
> 
> How do I add a gc root for this tarball (or is that a bad idea)?  I tried
> 'guix build texlive --source --root ...', but I get a warning 'package
> texlive has no source'.

The simplest way to make a gcroot is to symlink the store item into
/var/guix/gcroots.

In fact, I've had this exact symlink for a few years now:

lrwxrwxrwx 1 root root   73 Aug  5  2017 texlive-20170524-texmf.tar.xz -> 
/gnu/store/5rnvmy02yazy8iwaa91kijbbqp8qmflz-texlive-20170524-texmf.tar.xz

Reply via email to