Skip to content

Commit

Permalink
Upgrade docs: improve the upgrade command
Browse files Browse the repository at this point in the history
and make it more copy-pastable.
  • Loading branch information
ariutta authored and grahamc committed Sep 19, 2018
1 parent 2ca6ef0 commit 1915862
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions doc/manual/installation/upgrading.xml
Expand Up @@ -7,15 +7,16 @@
<title>Upgrading Nix</title>

<para>
Multi-user Nix users on macOS can upgrade Nix by running
<command>sudo -i sh -c 'nix-channel --update &amp;&amp; nix-env
-iA nixpkgs.nix'; sudo launchctl stop org.nixos.nix-daemon; sudo
launchctl start org.nixos.nix-daemon</command>.
Multi-user Nix users on macOS can upgrade Nix by running:
<command>sudo -i sh -c 'nix-channel --update &amp;&amp;
nix-env -iA nixpkgs.nix &amp;&amp;
launchctl remove org.nixos.nix-daemon &amp;&amp;
launchctl load /Library/LaunchDaemons/org.nixos.nix-daemon.plist'</command>
</para>


<para>
Single-user installations of Nix should run <command>nix-channel
--update; nix-env -iA nixpkgs.nix</command>.
Single-user installations of Nix should run this:
<command>nix-channel --update; nix-env -iA nixpkgs.nix</command>
</para>

</chapter>

0 comments on commit 1915862

Please sign in to comment.