From 54c7a870d5b6324462ea293e3e5a8bb59c7d5ac3 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 12 Nov 2004 23:56:37 +0000 Subject: * Document --delete-generations and other nix-env options. --- doc/manual/nix-env.xml | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) (limited to 'doc/manual/nix-env.xml') diff --git a/doc/manual/nix-env.xml b/doc/manual/nix-env.xml index 4772c2b1109b..35107115a881 100644 --- a/doc/manual/nix-env.xml +++ b/doc/manual/nix-env.xml @@ -22,6 +22,11 @@ path + + + + system + operation options @@ -121,6 +126,38 @@ + + + + + By default, when you install a derivation with the + operation, it will replace + previously installed versions with the same derivation + name (regardless of the version number). This option + causes those previously installed versions to be kept in + the new generation of the profile. Note that this will + generally cause conflicts in the creation of the user + environment (since multiple versions of a package + typically contain the same programs). + + + + + + system + + + By default, operations such as only include derivations matching the + current platform. This option allows you to use + derivations for the specified platform + system. The special value + * causes derivations for any platform + to be included. + + + + @@ -719,6 +756,47 @@ $ nix-env --list-generations + + + + Operation <option>--delete-generations</option> + + + Synopsis + + nix-env + + generations + + + + + Description + + + This operation deletes the specified generations of the + current profile. The generations can be a list of generation + numbers, or the special value old to delete + all non-current generations. Periodically deleting old + generations is important to make garbage collection effective. + + + + + + Examples + + +$ nix-env --delete-generations 3 4 8 + +$ nix-env -p other_profile --delete-generations old + + + + + + + -- cgit 1.4.1