Files
lix/doc/manual
Eelco Dolstra 2c1ecf8e81 nix-env -i: Add a flag ‘--remove-all’ / ‘-r’
This is equivalent to running ‘nix-env -e '*'’ first, except that it
happens in a single transaction.  Thus, ‘nix-env -i pkgs...’ replaces
the profile with the specified set of packages.

The main motivation is to support declarative package management
(similar to environment.systemPackages in NixOS).  That is, if you
have a specification ‘profile.nix’ like this:

  with import <nixpkgs> {};
  [ thunderbird
    geeqie
    ...
  ]

then after any change to ‘profile.nix’, you can run:

  $ nix-env -f profile.nix -ir

to update the profile to match the specification.  (Without the ‘-r’
flag, if you remove a package from ‘profile.nix’, it won't be removed
from the actual profile.)

Suggested by @zefhemel.
2013-09-03 21:21:14 +02:00
..
2013-08-21 12:53:51 +02:00
2013-05-29 12:36:56 +02:00
2012-10-03 17:59:23 -04:00
2009-11-05 09:07:43 +00:00
2013-08-26 11:15:22 +02:00
2012-07-29 14:37:40 -04:00
2007-12-31 02:52:17 +00:00
2013-09-02 13:19:34 +02:00
2013-05-29 12:36:56 +02:00
2013-09-02 13:11:36 +02:00
2004-10-31 17:08:48 +00:00
2012-05-11 17:39:06 -04:00