aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRicardo M. Correia <rcorreia@wizy.org>2014-03-11 21:47:21 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-03-30 00:54:16 +0100
commit7ef7597f71b282265a9f79afe4608cd3b1bc4127 (patch)
tree76358e2bb987f7ca996b4330e9895eeed9053994 /doc
parent59c90196850b6ac8c110e54c7f03d6417ed9bf61 (diff)
nix-env: Add support for --delete-generations 15d
It will delete all generations older than the specified number of days.
Diffstat (limited to 'doc')
-rw-r--r--doc/manual/nix-env.xml10
1 files changed, 7 insertions, 3 deletions
diff --git a/doc/manual/nix-env.xml b/doc/manual/nix-env.xml
index 92becccba..3bfcb15db 100644
--- a/doc/manual/nix-env.xml
+++ b/doc/manual/nix-env.xml
@@ -1167,10 +1167,12 @@ $ nix-env --list-generations
<refsection><title>Description</title>
<para>This operation deletes the specified generations of the current
-profile. The generations can be a list of generation numbers, or the
+profile. The generations can be a list of generation numbers, the
special value <literal>old</literal> to delete all non-current
-generations. Periodically deleting old generations is important to
-make garbage collection effective.</para>
+generations, or a value such as <literal>30d</literal> to delete all
+non-current generations older than the specified number of days.
+Periodically deleting old generations is important to make garbage
+collection effective.</para>
</refsection>
@@ -1179,6 +1181,8 @@ make garbage collection effective.</para>
<screen>
$ nix-env --delete-generations 3 4 8
+$ nix-env --delete-generations 30d
+
$ nix-env -p other_profile --delete-generations old</screen>
</refsection>