2018-09-01 19:35:46 +00:00
|
|
|
<chapter xmlns="http://docbook.org/ns/docbook"
|
|
|
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
|
|
xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
version="5.0"
|
|
|
|
xml:id="ch-upgrading-nix">
|
|
|
|
|
|
|
|
<title>Upgrading Nix</title>
|
|
|
|
|
|
|
|
<para>
|
2018-09-17 20:19:02 +00:00
|
|
|
Multi-user Nix users on macOS can upgrade Nix by running:
|
|
|
|
<command>sudo -i sh -c 'nix-channel --update &&
|
|
|
|
nix-env -iA nixpkgs.nix &&
|
|
|
|
launchctl remove org.nixos.nix-daemon &&
|
|
|
|
launchctl load /Library/LaunchDaemons/org.nixos.nix-daemon.plist'</command>
|
2018-09-01 19:35:46 +00:00
|
|
|
</para>
|
|
|
|
|
2018-09-17 20:19:02 +00:00
|
|
|
|
2018-09-01 19:35:46 +00:00
|
|
|
<para>
|
2018-09-17 20:19:02 +00:00
|
|
|
Single-user installations of Nix should run this:
|
2020-05-09 13:59:39 +00:00
|
|
|
<command>nix-channel --update; nix-env -iA nixpkgs.nix nixpkgs.cacert</command>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Multi-user Nix users on Linux should run this with sudo:
|
|
|
|
<command>nix-channel --update; nix-env -iA nixpkgs.nix nixpkgs.cacert; systemctl daemon-reload; systemctl restart nix-daemon</command>
|
2018-09-01 19:35:46 +00:00
|
|
|
</para>
|
|
|
|
</chapter>
|