The rustup.sh script for installing Rust from release channels
Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
rust-installer @ e54d482
test
.gitignore
.gitmodules
.travis.yml
LICENSE-APACHE
LICENSE-MIT
README.md
rustup.sh
test-v1.sh
test-v2.sh
test.sh

README.md

You're probably looking for rustup.rs if you arrived from Google

Despite being in rust-lang-nursery org, rustup.rs is now the default rustup.

Build Status

The rustup.sh script installs Rust from the Rust release channels. It is most often run as a copy of the file alone.

Note: rustup.sh will be replaced by rustup.rs.

curl -sf https://static.rust-lang.org/rustup.sh | sudo sh

Features:

  • Install from stable, beta, or nightly channels.
  • Install from the archives.
  • Verifies hashes.
  • Verifies signatures (if gpg is available).
  • Resumes downloads.
  • For Linux and OS X (Windows support someday).

Examples

Download and install the default channel, currently beta.

rustup.sh

Install to a particular location.

rustup.sh --prefix=my/install/dir

Save downloads for faster re-installs.

rustup.sh --save

Install nightly.

rustup.sh --channel=nightly

Install nightly archives.

rustup.sh --channel=nightly --date=2015-04-09

Install explicit versions.

rustup.sh --revision=1.0.0-beta

Future work

  • GC old temp and cache files.
  • Error on unknown command line options.
  • Do cleanup of in-use temp files on trap.
  • Don't clobber multirust if it is installed at the destination prefix.

License

This software is distributed under the terms of both the MIT license and/or the Apache License (Version 2.0), at your option.

See LICENSE-APACHE, LICENSE-MIT for details.