[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: prevent gc of texlive-...-texmf.tar.xz

From: zimoun
Subject: Re: prevent gc of texlive-...-texmf.tar.xz
Date: Wed, 12 Feb 2020 19:08:31 +0100


On Wed, 12 Feb 2020 at 13:54, Thomas Danckaert <address@hidden> wrote:

> 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.

What does it mean "upgrade after running guix gc"?

If 'texlive' is installed in a profile, "guix gc" cannot delete it. Or
I miss a point.

Do you mean that you work only with temporary profile ("guix
environment") and you garbage collect each time you have ended with
this temporary profile and you create often the same temporary profile
(say '--ad-hoc texlive')? Is it what you mean?

However, note that 'texlive' could even be downloaded twice, I guess,

--8<---------------cut here---------------start------------->8---
$ guix package -i texlive -p /tmp/texlive
substitute: updating substitutes from ''... 100.0%
substitute: updating substitutes from ''... 100.0%
The following package will be installed:
   texlive      20180414

substitute: updating substitutes from ''... 100.0%
The following derivations will be built:
2,595.2 MB will be downloaded:
The following grafts will be made:
The following profile hooks will be built:

downloading from
 texlive-20180414-texmf.tar.xz  2.42GiB
               10.2MiB/s 04:03 [##################] 100.0%

downloading from
 texlive-texmf-20180414  2.38GiB

 --8<---------------cut here---------------end--------------->8---

> 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'.

A quick workaround could be to create your own channel containing for
example this definition:

--8<---------------cut here---------------start------------->8---
(define-public my-texlive
    (inherit texlive)
    (version "mine")
    (source (origin
              (method url-fetch)
              (uri "file:////your/local/path/to/texlive-20180414-texmf.tar.xz")
--8<---------------cut here---------------end--------------->8---

So, you download once the texlive archive and you locate it somewhere
on your local disk. Then each time, you run "guix install
texlive@mine", Guix will compute the derivations etc. and will fetch
the source directly from your local disk.

It does not answer your question for protecting from GC but it should
avoid to download it again and again when you did a mistake with "guix

Hope that helps,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]