@@ -111,41 +111,29 @@ unofficial locations.
111
111
Note that this table can be expanded over time, this isn't the exhaustive set of
112
112
tier 3 platforms that will ever be!
113
113
114
- ## Installing on Linux or Mac
114
+ ## Installing Rust
115
115
116
- If we're on Linux or a Mac, all we need to do is open a terminal and type this:
116
+ All we need to do is open a terminal and type this:
117
117
118
118
``` bash
119
- $ curl -sSf https://static.rust-lang.org/ rustup.sh | sh
119
+ $ curl https://sh. rustup.rs -sSf | sh
120
120
```
121
121
122
122
This will download a script, and start the installation. If it all goes well,
123
123
you’ll see this appear:
124
124
125
125
``` text
126
- Rust is ready to roll.
126
+ Rust is installed now. Great!
127
127
```
128
128
129
- From here, press ` y ` for ‘yes’, and then follow the rest of the prompts.
130
-
131
- ## Installing on Windows
132
-
133
- If you're on Windows, please download the appropriate [ installer] [ install-page ] .
134
-
135
- [ install-page ] : https://www.rust-lang.org/install.html
136
-
137
129
## Uninstalling
138
130
139
- Uninstalling Rust is as easy as installing it. On Linux or Mac, run
140
- the uninstall script:
131
+ Uninstalling Rust is as easy as installing it:
141
132
142
133
``` bash
143
- $ sudo /usr/local/lib/rustlib/ uninstall.sh
134
+ $ rustup self uninstall
144
135
```
145
136
146
- If we used the Windows installer, we can re-run the ` .msi ` and it will give us
147
- an uninstall option.
148
-
149
137
## Troubleshooting
150
138
151
139
If we've got Rust installed, we can open up a shell, and type this:
@@ -193,9 +181,7 @@ resources include [the user’s forum][users] and [Stack Overflow][stackoverflow
193
181
[ stackoverflow ] : http://stackoverflow.com/questions/tagged/rust
194
182
195
183
This installer also installs a copy of the documentation locally, so we can
196
- read it offline. On UNIX systems, ` /usr/local/share/doc/rust ` is the location.
197
- On Windows, it's in a ` share/doc ` directory, inside the directory to which Rust
198
- was installed.
184
+ read it offline. It's only a ` rustup doc ` away!
199
185
200
186
# Hello, world!
201
187
0 commit comments