diff options
author | Alexander Schmolck <a.schmolck+git@gmail.com> | 2023-04-30 14:52:38 +0100 |
---|---|---|
committer | Alexander Schmolck <a.schmolck+git@gmail.com> | 2023-05-17 08:10:30 +0100 |
commit | 8d4b6766e297314f69ee96b6c9d74c6c2637f84b (patch) | |
tree | 87887a5594bb26729795157dea40168d29923699 /doc/manual/src/installation | |
parent | 5fd161189d2405353eef6b1e7eb9441d6be1911e (diff) |
Convert short nix options to long ones
e.g. nix-env -e subversion => nix-env --uninstall subversion
The aim is to make the documentation less cryptic for newcomers and the
long options are more self-documenting.
The change was made with the following script:
<https://github.com/aschmolck/convert-short-nix-opts-to-long-ones>
and sanity checked visually.
Diffstat (limited to 'doc/manual/src/installation')
-rw-r--r-- | doc/manual/src/installation/upgrading.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/manual/src/installation/upgrading.md b/doc/manual/src/installation/upgrading.md index 24efc4681..6d09f54d8 100644 --- a/doc/manual/src/installation/upgrading.md +++ b/doc/manual/src/installation/upgrading.md @@ -2,13 +2,13 @@ Multi-user Nix users on macOS can upgrade Nix by running: `sudo -i sh -c 'nix-channel --update && -nix-env -iA nixpkgs.nix && +nix-env --install --attr nixpkgs.nix && launchctl remove org.nixos.nix-daemon && launchctl load /Library/LaunchDaemons/org.nixos.nix-daemon.plist'` Single-user installations of Nix should run this: `nix-channel --update; -nix-env -iA nixpkgs.nix nixpkgs.cacert` +nix-env --install --attr nixpkgs.nix nixpkgs.cacert` Multi-user Nix users on Linux should run this with sudo: `nix-channel ---update; nix-env -iA nixpkgs.nix nixpkgs.cacert; systemctl +--update; nix-env --install --attr nixpkgs.nix nixpkgs.cacert; systemctl daemon-reload; systemctl restart nix-daemon` |