Skip to content
This repository has been archived by the owner. It is now read-only.
The rustup.sh script for installing Rust from release channels
Branch: master
Clone or download
alexcrichton Merge pull request #80 from brson/rustup.sh
Rename ./rustup to ./rustup.sh
Latest commit a8d6f0b Nov 12, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
rust-installer @ e54d482 Don't let CDPATH mess with `cd` invocations Apr 22, 2015
test Initial Apr 9, 2015
.gitignore Begin tests againist v2 metadata Mar 8, 2016
.gitmodules Initial Apr 9, 2015
.travis.yml Check for root *before* downloading Sep 8, 2016
LICENSE-APACHE Add license to README Jul 10, 2015
LICENSE-MIT
README.md Update readme about rustup.rs May 14, 2016
rustup.sh Rename ./rustup to ./rustup.sh Nov 12, 2016
test-v1.sh on ARMv7 devices, install the armv7-unknown-linux-gnueabihf toolchain Mar 18, 2016
test-v2.sh
test.sh Clean up tests Mar 8, 2016

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.

You can’t perform that action at this time.