about summary refs log tree commit diff
path: root/doc/manual/command-ref/nix-env.xml
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2019-08-29T11·46+0200
committertoonn <toonn@toonn.io>2019-08-29T11·56+0200
commit5bdac86be2eb6d541784c4f149bfa06b59ef63a2 (patch)
tree19e46aad0e9999298a2821689485134d288e477e /doc/manual/command-ref/nix-env.xml
parent1dbaf119486fecbdf57ecc2f877307030b665f69 (diff)
Reword to clarify newer generations are left alone
My attempt at clarifying the docs resulted in a false explanation. This
is now fixed and I added an example to eliminate all possible confusion.
Diffstat (limited to 'doc/manual/command-ref/nix-env.xml')
-rw-r--r--doc/manual/command-ref/nix-env.xml5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/manual/command-ref/nix-env.xml b/doc/manual/command-ref/nix-env.xml
index 9d13d3014e1b..c8c01f9a44fa 100644
--- a/doc/manual/command-ref/nix-env.xml
+++ b/doc/manual/command-ref/nix-env.xml
@@ -1371,7 +1371,10 @@ special value <literal>old</literal> to delete all non-current
 generations,  a value such as <literal>30d</literal> to delete all
 generations older than the specified number of days (except for the
 generation that was active at that point in time), or a value such as
-<literal>+5</literal> to only keep the specified number of generations.
+<literal>+5</literal> to keep the last <literal>5</literal> generations
+ignoring any newer than current, e.g., if <literal>30</literal> is the current
+generation <literal>+5</literal> will delete generation <literal>25</literal>
+and all older generations.
 Periodically deleting old generations is important to make garbage collection
 effective.</para>