diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2021-11-17 16:30:39 +0100 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2021-11-17 17:04:25 +0100 |
commit | ca4d8ce9e22ef04687b1516c9472a5d3f82e056b (patch) | |
tree | e7560aabd3d472391776070745e8a9dcb37ac0aa /doc/manual/src/package-management/profiles.md | |
parent | 480c883f363912df611c545b05ae0f6f1b9a6c61 (diff) |
doc: De-emphasize nix-env without -A
The manual uses `nix-env -i` without `-A` prominently, teaching a bad practice to newcomers.
Diffstat (limited to 'doc/manual/src/package-management/profiles.md')
-rw-r--r-- | doc/manual/src/package-management/profiles.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/manual/src/package-management/profiles.md b/doc/manual/src/package-management/profiles.md index fbbfb7320..d1a2580d4 100644 --- a/doc/manual/src/package-management/profiles.md +++ b/doc/manual/src/package-management/profiles.md @@ -39,7 +39,7 @@ just Subversion 1.1.2 (arrows in the figure indicate symlinks). This would be what we would obtain if we had done ```console -$ nix-env -i subversion +$ nix-env -iA nixpkgs.subversion ``` on a set of Nix expressions that contained Subversion 1.1.2. @@ -54,7 +54,7 @@ environment is generated based on the current one. For instance, generation 43 was created from generation 42 when we did ```console -$ nix-env -i subversion firefox +$ nix-env -iA nixpkgs.subversion nixpkgs.firefox ``` on a set of Nix expressions that contained Firefox and a new version of @@ -127,7 +127,7 @@ All `nix-env` operations work on the profile pointed to by (abbreviation `-p`): ```console -$ nix-env -p /nix/var/nix/profiles/other-profile -i subversion +$ nix-env -p /nix/var/nix/profiles/other-profile -iA nixpkgs.subversion ``` This will *not* change the `~/.nix-profile` symlink. |