@@ -6,42 +6,42 @@ process, see ‘[Stability as a deliverable][stability]’.
6
6
7
7
[ stability ] : http://blog.rust-lang.org/2014/10/30/Stability.html
8
8
9
- To install nightly Rust, you can use ` rustup.sh ` :
9
+ To install nightly Rust, you can use [ rustup.rs] [ rustup ] :
10
+
11
+ [ rustup ] : https://rustup.rs
10
12
11
13
``` bash
12
- $ curl -s https://static.rust-lang.org/rustup.sh | sh -s -- --channel=nightly
14
+ $ curl https://sh.rustup.rs -sSf | sh
15
+ $ rustup install nightly
13
16
```
14
17
15
18
If you're concerned about the [ potential insecurity] [ insecurity ] of using `curl
16
19
| sh`, please keep reading and see our disclaimer below. And feel free to
17
20
use a two-step version of the installation and examine our installation script:
18
21
19
22
``` bash
20
- $ curl -f -L https://static.rust-lang.org/rustup.sh -O
21
- $ sh rustup.sh --channel=nightly
23
+ $ curl https://sh.rustup.rs -sSf -o rustup.sh
24
+ $ sh rustup.sh
25
+ $ rustup install nightly
22
26
```
23
27
24
28
[ insecurity ] : http://curlpipesh.tumblr.com
25
29
26
- If you're on Windows, please download either the [ 32-bit installer] [ win32 ] or
27
- the [ 64-bit installer ] [ win64 ] and run it.
30
+ If you're on Windows, please download the [ rustup installer] [ installer ]
31
+ and run it.
28
32
29
- [ win32 ] : https://static.rust-lang.org/dist/rust-nightly-i686-pc-windows-gnu.msi
30
- [ win64 ] : https://static.rust-lang.org/dist/rust-nightly-x86_64-pc-windows-gnu.msi
33
+ [ installer ] : https://win.rustup.rs
31
34
32
35
## Uninstalling
33
36
34
37
If you decide you don't want Rust anymore, we'll be a bit sad, but that's okay.
35
38
Not every programming language is great for everyone. Just run the uninstall
36
- script :
39
+ command :
37
40
38
41
``` bash
39
- $ sudo /usr/local/lib/rustlib/ uninstall.sh
42
+ $ rustup self uninstall
40
43
```
41
44
42
- If you used the Windows installer, re-run the ` .msi ` and it will give you
43
- an uninstall option.
44
-
45
45
Some people, and somewhat rightfully so, get very upset when we tell you to
46
46
` curl | sh ` . Basically, when you do this, you are trusting that the good
47
47
people who maintain Rust aren't going to hack your computer and do bad things.
0 commit comments