Skip to content

Instantly share code, notes, and snippets.

@brson
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brson/9777333 to your computer and use it in GitHub Desktop.
Save brson/9777333 to your computer and use it in GitHub Desktop.
New Rust installers

Hi.

I have very exciting news. Rust now has binary installers for Linux and Mac, as well as nightly builds for Windows, Linux and Mac.

Official Rust installers now come in the following forms:

  • source .tar.gz - the same old source tarball
  • binary .tar.gz - Generic Unix installers, currently built for Linux and Mac
  • win .exe - 32-bit windows installers
  • mac .pkg files - Mac installers in the standard .pkg format

With 0.10 coming next week, there's a pretty big risk changing the installation mechanism now, so please do test Rust installation, particularly on more exotic systems that need to use --prefix, --libdir, etc.

About the new installation system

We have a new installation script, install.sh that is contained in the binary tarballs and also used for make install. install.sh takes several arguments controlling the installation, as well as an --uninstall argument that can be used to uninstall previous versions. This installation script manages upgrades correctly.

The binary tarballs are also suitable for running rustc in place without installing.

For convenience I've also published a little script called rustup.sh that downloads the appropriate nightly and installs:

curl -s http://www.rust-lang.org/rustup.sh | sudo sh

Uninstall:

curl -s http://www.rust-lang.org/rustup.sh | sudo sh -s -- --uninstall

I don't plan to recommend this method for general use since people tend to have security concerns with it, but I expect it to make keeping up with master much more convenient.

Nightly

Source

Linux

Mac

Windows (32-bit)

0.10-pre

Source

Linux

Mac

Windows (32-bit)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment