From 92e832348db13637875c4f529ed0aa83d3d34493 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 10 Feb 2004 16:14:47 +0000 Subject: * Lots of manual stuff. Reference pages for most Nix commands. * nix-pull now requires the full url to the manifest, i.e., `/MANIFEST/' is no longer automatically appended. * nix-prefetch-url works again. --- doc/manual/nix-env.xml | 226 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 224 insertions(+), 2 deletions(-) (limited to 'doc/manual/nix-env.xml') diff --git a/doc/manual/nix-env.xml b/doc/manual/nix-env.xml index 874f27081636..70069fa1af84 100644 --- a/doc/manual/nix-env.xml +++ b/doc/manual/nix-env.xml @@ -111,8 +111,9 @@ For the , - and - operations, this flag will + , , + and + operations, this flag will cause nix-env to print what would be done if this flag had not been specified, without actually doing it. @@ -594,4 +595,225 @@ foo-1.2.3 + + + + + Operation <option>--switch-profile</option> + + + Synopsis + + nix-env + + + + + path + + + + + Description + + + This operation makes path the + current profile for the user. That is, the symlink + ~/.nix-profile is made to point to + path. + + + + + + Examples + + +$ nix-env -S ~/my-profile + + + + + + + + + + + Operation <option>--list-generations</option> + + + Synopsis + + nix-env + + + + + + Description + + + This operation print a list of all the currently existing + generations for the active profile. These may be switched to + using the operation. It + also prints the creation date of the generation, and indicates + the current generation. + + + + + + Examples + + +$ nix-env --list-generations + 95 2004-02-06 11:48:24 + 96 2004-02-06 11:49:01 + 97 2004-02-06 16:22:45 + 98 2004-02-06 16:24:33 (current) + + + + + + + + + + + Operation <option>--switch-generation</option> + + + Synopsis + + nix-env + + + + + generation + + + + + Description + + + This operation makes generation number + generation the current generation + of the active profile. That is, if the + profile is the + path to the active profile, then the symlink + profile is + made to point to + profile-generation-link, + which is in turn a symlink to the actual user environment in + the Nix store. + + + + Switching will fail if the specified generation does not + exist. + + + + + + Examples + + +$ nix-env -G 42 +switching from generation 50 to 42 + + + + + + + + + + + Operation <option>--rollback</option> + + + Synopsis + + nix-env + + + + + + Description + + + This operation switches to the previous + generation of the active profile, that is, the highest + numbered generation lower than the current generation, if it + exists. It is just a convenience wrapper around + and + . + + + + + + Examples + + +$ nix-env --rollback +switching from generation 92 to 91 + +$ nix-env --rolback +error: no generation older than the current (91) exists + + + + + + + + + + + Operation <option>--import</option> + + + Synopsis + + nix-env + + + + + path + + + + + Description + + + This operation makes path the + default active Nix expression for the user. That is, the + symlink ~/.nix-userenv is made to point + to path. + + + + + + Examples + + +$ nix-env -I ~/nixpkgs-0.5/ + + + + + + + -- cgit 1.4.1