@@ -24,41 +24,29 @@ see the website][platform-support].
24
24
25
25
[ platform-support ] : https://forge.rust-lang.org/platform-support.html
26
26
27
- ## Installing on Linux or Mac
27
+ ## Installing Rust
28
28
29
- If we're on Linux or a Mac, all we need to do is open a terminal and type this:
29
+ All we need to do is open a terminal and type this:
30
30
31
31
``` bash
32
- $ curl -sSf https://static.rust-lang.org/ rustup.sh | sh
32
+ $ curl https://sh. rustup.rs -sSf | sh
33
33
```
34
34
35
35
This will download a script, and start the installation. If it all goes well,
36
36
you’ll see this appear:
37
37
38
38
``` text
39
- Rust is ready to roll.
39
+ Rust is installed now. Great!
40
40
```
41
41
42
- From here, press ` y ` for ‘yes’, and then follow the rest of the prompts.
43
-
44
- ## Installing on Windows
45
-
46
- If you're on Windows, please download the appropriate [ installer] [ install-page ] .
47
-
48
- [ install-page ] : https://www.rust-lang.org/install.html
49
-
50
42
## Uninstalling
51
43
52
- Uninstalling Rust is as easy as installing it. On Linux or Mac, run
53
- the uninstall script:
44
+ Uninstalling Rust is as easy as installing it:
54
45
55
46
``` bash
56
- $ sudo /usr/local/lib/rustlib/ uninstall.sh
47
+ $ rustup self uninstall
57
48
```
58
49
59
- If we used the Windows installer, we can re-run the ` .msi ` and it will give us
60
- an uninstall option.
61
-
62
50
## Troubleshooting
63
51
64
52
If we've got Rust installed, we can open up a shell, and type this:
@@ -106,9 +94,7 @@ resources include [the user’s forum][users] and [Stack Overflow][stackoverflow
106
94
[ stackoverflow ] : http://stackoverflow.com/questions/tagged/rust
107
95
108
96
This installer also installs a copy of the documentation locally, so we can
109
- read it offline. On UNIX systems, ` /usr/local/share/doc/rust ` is the location.
110
- On Windows, it's in a ` share/doc ` directory, inside the directory to which Rust
111
- was installed.
97
+ read it offline. It's only a ` rustup doc ` away!
112
98
113
99
# Hello, world!
114
100
0 commit comments