On Tuesday, November 17th, 2026 at 11:55 AM, Mario Calcagno <[email protected]> wrote:
> > On Monday, November 16th, 2026 at 11:34 PM, Heime > <[email protected]> wrote: > > > Am trying to run the garbage collector to remove unnecessary space. > > Have been reading the "Invoking guix gc" section "5.6". > > > > https://guix.gnu.org/manual/1.5.0/en/html_node/Invoking-guix-gc.html > > > > The wording and presentation is somewhat confusing. > > > > For instance, consider this paragraph: > > > > --- > > > > Prior to running guix gc --collect-garbage to make space, it is often > > useful to remove old generations from user profiles; that way, old > > package builds referenced by those generations can be reclaimed. This > > is achieved by running guix package --delete-generations (see Invoking > > guix package). > > > > --- > > > > It would be more instructive to include the sequence of commands to run. > > > > Is it like this > > > > guix package --delete-generations > > guix gc --collect-garbage > > I do agree with this, I do believe that the manual would benefit from having > more example in it. Having the sequence of commands is more instructive than prose. Prose can often be imprecise. > > How is then that the recommendation is > > > > guix gc > > > > With no "--collect-garbage" option? > > > > From the info manual "(guix) Invoking guix gc" one can read that the default > behaviour of guix gc is to collect as much garbage as possible, which is the > same behaviur of "guix gc --collect-garbage" > > > The use of package (as in "guix package --delete-generations") is also > > confusing. "package" could be interpreted as an actual installed package > > such as emacs or texinfo. > > > > > I personally disagree on this part, there is no command in guix where you type > "guix /package-name/". It would be strange to interpret it that way. In section "5.2" entitled "Invoking guix package", the options for "guix package options" can be "-i package", "-r package", and so on. There should be some distinction between "package" as command and "package" as a specific program. Perhaps use PACKAGE for the latter, or something different for distinction.
