From 151e61fa5a94950d3701f6df0b40fa970e3cf320 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 28 Jun 2004 14:40:26 +0000 Subject: * By default, `nix-env -i' now deletes previously installed derivations with names matching the derivations being installed. The option `--preserve-installed / -P' overrides this behaviour. --- doc/manual/nix-env.xml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'doc') diff --git a/doc/manual/nix-env.xml b/doc/manual/nix-env.xml index 8a496da25988..4772c2b1109b 100644 --- a/doc/manual/nix-env.xml +++ b/doc/manual/nix-env.xml @@ -183,6 +183,10 @@ + + + + drvnames @@ -197,6 +201,35 @@ in the active Nix expression are added. + + Currently installed derivations with a name equal to the name + of a derivation being added are removed unless the option + is specified. + + + + + + Flags + + + + + / + + + Do not remove derivations with a name matching one of + the derivations being installed. Usually, trying to + have two versions of the same package installed in the + same generation of a profile will lead to an error in + building the generation, due to file name clashes + between the two versions. However, this is not the case + for all packages. + + + + + @@ -204,7 +237,11 @@ $ nix-env --install gcc-3.3.2 (install specific version) +installing `gcc-3.3.2' +uninstalling `gcc-3.1' (previously installed version is removed) + $ nix-env --install gcc (just pick any version) + $ nix-env -f ~/foo.nix -i '*' (install everything in foo.nix) -- cgit 1.4.1