Skip to content

Commit 1a23902

Browse files
authored
Merge pull request #194 from zakaluka/rustup2148
Updated install and uninstall instructions
2 parents 6601cab + 7570e6e commit 1a23902

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

src/rust-2018/rustup-for-managing-rust-versions.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,24 @@ To install Rust through Rustup, you can go to
1414
so on your platform. This will install both `rustup` itself and the `stable`
1515
version of `rustc` and `cargo`.
1616

17-
To install a specific Rust version, you can use `rustup install`:
17+
To install a specific Rust version, you can use `rustup toolchain install`:
1818

1919
```console
20-
$ rustup install 1.30.0
20+
$ rustup toolchain install 1.30.0
2121
```
2222

2323
This works for a specific nightly, as well:
2424

2525
```console
26-
$ rustup install nightly-2018-08-01
26+
$ rustup toolchain install nightly-2018-08-01
2727
```
2828

2929
As well as any of our release channels:
3030

3131
```console
32-
$ rustup install stable
33-
$ rustup install beta
34-
$ rustup install nightly
32+
$ rustup toolchain install stable
33+
$ rustup toolchain install beta
34+
$ rustup toolchain install nightly
3535
```
3636

3737
## For updating your installation
@@ -53,6 +53,12 @@ To set the default toolchain to something other than `stable`:
5353
$ rustup default nightly
5454
```
5555

56+
To uninstall a specific Rust version, you can use `rustup toolchain uninstall`:
57+
58+
```console
59+
$ rustup toolchain uninstall 1.30.0
60+
```
61+
5662
To use a toolchain other than the default, use `rustup run`:
5763

5864
```console

0 commit comments

Comments
 (0)