about summary refs log tree commit diff
path: root/doc/manual/packages
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-12-14T00·33+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-12-14T00·33+0100
commit6466d56f42aac8e3a4857ca22a9d5f70d8b7b7fe (patch)
tree8893faa31034982948b59454e4aa6c6b0b2c7138 /doc/manual/packages
parente90e7b5e0adb5f11f5679db7784b30d946ea6b2e (diff)
Bla
Diffstat (limited to 'doc/manual/packages')
-rw-r--r--doc/manual/packages/garbage-collection.xml9
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/manual/packages/garbage-collection.xml b/doc/manual/packages/garbage-collection.xml
index 05a06d6f48fe..03b8e4c976c1 100644
--- a/doc/manual/packages/garbage-collection.xml
+++ b/doc/manual/packages/garbage-collection.xml
@@ -37,7 +37,14 @@ generations, e.g.,
 <screen>
 $ nix-env --delete-generations 10 11 14</screen>
 
-</para>
+To delete all generations older than a specified number of days
+(except the current generation), use the <literal>d</literal>
+suffix. For example,
+
+<screen>
+$ nix-env --delete-generations 14d</screen>
+
+deletes all generations older than two weeks.</para>
 
 <para>After removing appropriate old generations you can run the
 garbage collector as follows: