aboutsummaryrefslogtreecommitdiff
path: root/doc/manual/nix-env.xml
AgeCommit message (Collapse)Author
2014-08-27Restructuring the Nix manualMikey Ariel
2014-04-15nix-env: Minor change to '--delete-generations Nd' semanticsRicardo M. Correia
The option '--delete-generations Nd' deletes all generations older than N days. However, most likely the user does not want to delete the generation that was active N days ago. For example, say that you have these 3 generations: 1: <30 days ago> 2: <15 days ago> 3: <1 hour ago> If you do --delete-generations 7d (say, as part of a cron job), most likely you still want to keep generation 2, i.e. the generation that was active 7 days ago (and for most of the past 7 days, in fact). This patch fixes this issue. Note that this also affects 'nix-collect-garbage --delete-older-than Nd'. Thanks to @roconnor for noticing the issue!
2014-03-30nix-env: Add support for --delete-generations 15dRicardo M. Correia
It will delete all generations older than the specified number of days.
2014-03-12Document nix-env -q --jsonEelco Dolstra
2013-10-24Rename "attribute sets" to "sets"Eelco Dolstra
We don't have any other kind of sets so calling them attribute sets is unnecessarily verbose.
2013-09-03nix-env -i: Add a flag ‘--remove-all’ / ‘-r’Eelco Dolstra
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-08-26Fix typos, especially those that end up in the Nix manualIvan Kozik
2012-12-12Allow setting the profile location using $NIX_PROFILEEelco Dolstra
Fixes #69.
2012-09-13nix-env --delete-generations: Support --dry-run flagEelco Dolstra
Fixes #43.
2012-04-06Documentation fixEelco Dolstra
2012-04-06Include environment variables in the manpagesEelco Dolstra
2012-04-06Include common options in the manpages using some XInclude hackeryEelco Dolstra
2011-12-01doc/manual/nix-env.xml: fixed "nix-env -qaA" typoPeter Simons
2011-12-01doc/manual/nix-env.xml: stripped trailing whitespacePeter Simons
2009-07-14* Remove the redundant <sections> around refentries.Eelco Dolstra
2008-11-19(no commit message)Eelco Dolstra
2007-12-31* More documentation.Eelco Dolstra
2007-12-04* component -> package.Eelco Dolstra
2007-10-31* Documented multi-user Nix.Eelco Dolstra
2007-09-19* Manpage for nix-copy-closure.Eelco Dolstra
2007-09-17* nix-env: allow ~/.nix-defexpr to be a directory. If it is, then theEelco Dolstra
Nix expressions in that directory are combined into an attribute set {file1 = import file1; file2 = import file2; ...}, i.e. each Nix expression is an attribute with the file name as the attribute name. Also recurses into directories. * nix-env: removed the "--import" (-I) option which set the ~/.nix-defexpr symlink. * nix-channel: don't use "nix-env --import", instead symlink ~/.nix-defexpr/channels. So finally nix-channel --update doesn't override any default Nix expressions but combines with them. This means that you can have (say) a local Nixpkgs SVN tree and use it as a default for nix-env: $ ln -s .../path-to-nixpkgs-tree ~/.nix-defexpr/nixpkgs_svn and be subscribed to channels (including Nixpkgs) at the same time. (If there is any ambiguity, the -A flag can be used to disambiguate, e.g. "nix-env -i -A nixpkgs_svn.pan".)
2007-02-05* Compatibility with docbook5-xsl.Eelco Dolstra
2006-10-06* Typos etc.Eelco Dolstra
* Set the release date.
2006-10-05* Documented new nix-env options.Eelco Dolstra
2006-10-05* Documented --attr / -A.Eelco Dolstra
2006-10-05* Document --arg.Eelco Dolstra
2006-08-21* Convert to DocBook 5.Eelco Dolstra
* Use Jing for RelaxNG validation, xmllint seems buggy.
2005-10-06* Document `nix-env --compare-versions'.Eelco Dolstra
2005-05-09* Crazy: don't use real hashes of real components in examples, sinceEelco Dolstra
they cause Nix builds to have unnecessary retained dependences (e.g., on Subversion).
2005-04-10* Manual updates.Eelco Dolstra
2005-03-16* Documented common environment variables.Eelco Dolstra
2005-03-15* XInclude all the way.Eelco Dolstra
2004-11-12* Document --delete-generations and other nix-env options.Eelco Dolstra
2004-06-28* By default, `nix-env -i' now deletes previously installedEelco Dolstra
derivations with names matching the derivations being installed. The option `--preserve-installed / -P' overrides this behaviour.
2004-06-28* `nix-env -u' now allows a specific version to be specified whenEelco Dolstra
upgrading. This fixes a bug reported by Martin: $ nix-env -i foo-1.0 $ nix-env -u foo-1.0 upgrading foo-1.0 to foo-1.1
2004-02-10* Lots of manual stuff. Reference pages for most Nix commands.Eelco Dolstra
* nix-pull now requires the full url to the manifest, i.e., `/MANIFEST/' is no longer automatically appended. * nix-prefetch-url works again.
2004-02-10* Documented the most important nix-env flags.Eelco Dolstra
2004-02-06* Improvements to profiles. Generations are now per-profile, e.g.,Eelco Dolstra
default -> default-94-link default-82-link -> /nix/store/cc4480... default-83-link -> /nix/store/caeec8... ... default-94-link -> /nix/store/2896ca... experimental -> experimental-2-link experimental-1-link -> /nix/store/cc4480... experimental-2-link -> /nix/store/a3148f... * `--profile' / `-p' -> `--switch-profile' / `-S' * `--link' / `-l' -> `--profile' / `-p' * The default profile is stored in $prefix/var/nix/profiles. $prefix/var/nix/links is gone. Profiles can be stored anywhere. * The current profile is now referenced from ~/.nix-profile, not ~/.nix-userenv. * The roots to the garbage collector now have extension `.gcroot', not `.id'.
2004-02-02* Sort `nix-env -q' output by derivation name.Eelco Dolstra
* `--version' flag for all commands. * Manual updates.
2004-01-13* Option `-B' to always show the output of builders, regardless ofEelco Dolstra
verbosity level.
2004-01-09* Option `--force-realise' in `nix-store --query'.Eelco Dolstra
2004-01-08* Start of nix-env reference.Eelco Dolstra
* Some CSS tweaks.