Skip to content

Commit

Permalink
Merge pull request #2434 from grahamc/graham-improve-upgrade
Browse files Browse the repository at this point in the history
Upgrade docs: improve the upgrade command
  • Loading branch information
edolstra authored Sep 19, 2018
2 parents 43b7eeb + 1915862 commit a48c2e3
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions doc/manual/installation/upgrading.xml
Original file line number Diff line number Diff line change
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 a48c2e3

Please sign in to comment.