mirror of
https://github.com/NixOS/nix
synced 2025-07-07 06:01:48 +02:00
Add 'nix upgrade-nix' command
This command upgrades Nix to the latest stable version by installing a store path obtained from https://github.com/NixOS/nixpkgs/raw/master/nixos/modules/installer/tools/nix-fallback-paths.nix which is the same store path that the installer at https://nixos.org/nix/install.sh uses. The upgrade fails if Nix is not installed in a profile (e.g. on NixOS, or when installed outside of the Nix store).
This commit is contained in:
parent
8af911be5c
commit
6fa690291a
4 changed files with 142 additions and 1 deletions
|
@ -79,6 +79,11 @@
|
|||
|
||||
<listitem><para><command>nix add-to-store</command> (970366266b8df712f5f9cedb45af183ef5a8357f).</para></listitem>
|
||||
|
||||
<listitem><para><command>nix upgrade-nix</command> upgrades Nix
|
||||
to the latest stable version. This requires that Nix is
|
||||
installed in a profile. (Thus it won’t work on NixOS, or if it’s
|
||||
installed outside of the Nix store.)</para></listitem>
|
||||
|
||||
<listitem><para>Progress indicator.</para></listitem>
|
||||
|
||||
<listitem><para>All options are available as flags now
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue