On Wednesday, November 11th, 2026 at 5:30 PM, Heime <[email protected]> wrote:
> > > I am reading through garbage collection in guix. What does it > mean? I have a set of programs that I installed with the guix > package manager. I do occasional pull and upgrade. > > This week I wanted to install the latest texinfo and called > > guix install texinfo > > Having got "No Space Left on Device", I used the garbage collector > to have some space. Following a successful garbage collection, I > then installed texinfo. > > Reading the garbage collection section, mention is mode of /gnu/store > directory and old generations. > To my understanding evey time you use "guix install" or "guix package" et simila you create a new generation fo your profile, which is the sum of all the packages already available in your profile plus the one you just installed. To make this happen guix donwloads all the packages in /gnu/store (also called "the store") and then create a series of simbolic links to the packages available in the current generation (the one you get after "guix install"). This is useful because gives you the ability to roll-back to an older generation. > What would be a short explanation of old generations? Does the garbage > collector possibly remove some programs that I rarely use? Following a > garbage collector operation, it is stated that one wight need to rebuild > or redownload software. > > What are dead files? > Dead files are files in the "store" that aren't referenced by any generation or profile. For example if you "guix remove hello", then remove all the generation referring to hello, garbage collection will remove hello from the store. This also means that if you use "guix shell" the packages used to create the environment will be removed by the next "guix gc" The "No Space Left on Device" usually happen (or at least happened to me) because without garbage collection all the version of all the packages ever download remain on disk. Multiple times I had garbage collection free 40GB of stuff. As far as I know garbage collection doesn't consider the last time a program was used, but only of there is a reference to it somewhere.
