Book: rustup.sh -> rustup.rs

Fixes #35653

cc https://github.com/rust-lang/rust-www/pull/621
This commit is contained in:
Steve Klabnik 2016-11-22 13:31:09 -05:00 committed by Brian Anderson
parent d250169cb5
commit 38cb687075

View File

@ -24,41 +24,29 @@ see the website][platform-support].
[platform-support]: https://forge.rust-lang.org/platform-support.html
## Installing on Linux or Mac
## Installing Rust
If we're on Linux or a Mac, all we need to do is open a terminal and type this:
All we need to do is open a terminal and type this:
```bash
$ curl -sSf https://static.rust-lang.org/rustup.sh | sh
$ curl https://sh.rustup.rs -sSf | sh
```
This will download a script, and start the installation. If it all goes well,
youll see this appear:
```text
Rust is ready to roll.
Rust is installed now. Great!
```
From here, press `y` for yes, and then follow the rest of the prompts.
## Installing on Windows
If you're on Windows, please download the appropriate [installer][install-page].
[install-page]: https://www.rust-lang.org/install.html
## Uninstalling
Uninstalling Rust is as easy as installing it. On Linux or Mac, run
the uninstall script:
Uninstalling Rust is as easy as installing it:
```bash
$ sudo /usr/local/lib/rustlib/uninstall.sh
$ rustup self uninstall
```
If we used the Windows installer, we can re-run the `.msi` and it will give us
an uninstall option.
## Troubleshooting
If we've got Rust installed, we can open up a shell, and type this:
@ -106,9 +94,7 @@ resources include [the users forum][users] and [Stack Overflow][stackoverflow
[stackoverflow]: http://stackoverflow.com/questions/tagged/rust
This installer also installs a copy of the documentation locally, so we can
read it offline. On UNIX systems, `/usr/local/share/doc/rust` is the location.
On Windows, it's in a `share/doc` directory, inside the directory to which Rust
was installed.
read it offline. It's only a `rustup doc` away!
# Hello, world!