Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
82 lines (55 sloc) 2.56 KB
[% WRAPPER layout.tt title="Getting Nix" menu='nix' %]
<section><h2>Latest release</h2>
<p>The latest and recommended version of Nix is
<strong>[%latestNixVersion%]</strong>. The quickest way to install it
on Linux and macOS is to run the following in a shell (as a user
other than <tt>root</tt>):</p>
<pre>
<span class="nix-command">curl https://nixos.org/nix/install | sh</span>
</pre>
<p>Make sure to follow the instructions output by the script.</p>
<h3>GPG Verification</h3>
<p>You may want to verify the integrity of the installation script
using GPG:</p>
<pre>
<span class="nix-command">curl -o install-nix-[%latestNixVersion%] https://nixos.org/nix/install</span>
<span class="nix-command">curl -o install-nix-[%latestNixVersion%].sig https://nixos.org/nix/install.sig</span>
<span class="nix-command">gpg2 --recv-keys B541D55301270E0BCF15CA5D8170B4726D7198DE</span>
<span class="nix-command">gpg2 --verify ./install-nix-[%latestNixVersion%].sig</span>
<span class="nix-command">sh ./install-nix-[%latestNixVersion%]</span>
</pre>
<p>The <a href="[%root%]edolstra.gpg">signing key</a> has fingerprint <tt>B541 D553 0127 0E0B CF15 CA5D 8170 B472 6D71 98DE</tt>.
It is also available <a href="https://github.com/NixOS/nixos-homepage/blob/master/edolstra.gpg">on GitHub</a>.</p>
<p>The installation script requires that you have <tt>sudo</tt> access
to <tt>root</tt>. You can uninstall Nix simply by running <tt>rm
-rf /nix</tt>. See <a href="[%nixManual%]#chap-installation">the
manual</a> for more information.</p>
<p>The following are also available:</p>
<ul>
<li><a href="[%latestNixMirror%]/nix-[%latestNixVersion%].tar.xz">Source tarball</a>.</li>
<!--
<li><a
href="https://hydra.nixos.org/release/nix/nix-[%latestNixVersion%]">Binary
packages for several platforms</a>, including RPMs, Debs and binary
tarballs for Mac OS X.</li>
-->
<li><a href="[%nixManual%]#ssec-relnotes-[%latestNixVersion%]">Release
notes</a>.</li>
<li><a href="[%nixManual%]">Manual</a>. Please read the <a
href="[%nixManual%]#chap-quick-start">“Quick Start” section of the
manual</a> for an overview of how to install and use Nix.</li>
</ul>
</section>
<section><h2>Continuous builds</h2>
<p>You can grab the latest bleeding-edge pre-release from our <a
href="../hydra">continuous build system</a>:</p>
<ul>
<li><a
href="https://hydra.nixos.org/job/nix/trunk/release#tabs-constituents">The
latest development release of Nix</a></li>
</ul>
</section>
<section><h2>Old releases</h2>
<p>Old releases are <a href="/releases/nix">also available</a>.</p>
</section>
[% END %]