mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 23:36:16 +02:00
Merge pull request #2434 from grahamc/graham-improve-upgrade
Upgrade docs: improve the upgrade command
This commit is contained in:
commit
a48c2e3411
1 changed files with 8 additions and 7 deletions
|
@ -7,15 +7,16 @@
|
||||||
<title>Upgrading Nix</title>
|
<title>Upgrading Nix</title>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
Multi-user Nix users on macOS can upgrade Nix by running
|
Multi-user Nix users on macOS can upgrade Nix by running:
|
||||||
<command>sudo -i sh -c 'nix-channel --update && nix-env
|
<command>sudo -i sh -c 'nix-channel --update &&
|
||||||
-iA nixpkgs.nix'; sudo launchctl stop org.nixos.nix-daemon; sudo
|
nix-env -iA nixpkgs.nix &&
|
||||||
launchctl start org.nixos.nix-daemon</command>.
|
launchctl remove org.nixos.nix-daemon &&
|
||||||
|
launchctl load /Library/LaunchDaemons/org.nixos.nix-daemon.plist'</command>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
Single-user installations of Nix should run <command>nix-channel
|
Single-user installations of Nix should run this:
|
||||||
--update; nix-env -iA nixpkgs.nix</command>.
|
<command>nix-channel --update; nix-env -iA nixpkgs.nix</command>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
</chapter>
|
</chapter>
|
||||||
|
|
Loading…
Reference in a new issue