From 7570e6effbb37e2bf855febeb2182b33d14298e1 Mon Sep 17 00:00:00 2001 From: zakaluka Date: Sun, 15 Dec 2019 17:54:17 -0600 Subject: [PATCH] Updated install and uninstall instructions rust-lang/rustup#2148 Signed-off-by: zakaluka --- .../rustup-for-managing-rust-versions.md | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/rust-2018/rustup-for-managing-rust-versions.md b/src/rust-2018/rustup-for-managing-rust-versions.md index 1a2f1112..715f3fec 100644 --- a/src/rust-2018/rustup-for-managing-rust-versions.md +++ b/src/rust-2018/rustup-for-managing-rust-versions.md @@ -14,24 +14,24 @@ To install Rust through Rustup, you can go to so on your platform. This will install both `rustup` itself and the `stable` version of `rustc` and `cargo`. -To install a specific Rust version, you can use `rustup install`: +To install a specific Rust version, you can use `rustup toolchain install`: ```console -$ rustup install 1.30.0 +$ rustup toolchain install 1.30.0 ``` This works for a specific nightly, as well: ```console -$ rustup install nightly-2018-08-01 +$ rustup toolchain install nightly-2018-08-01 ``` As well as any of our release channels: ```console -$ rustup install stable -$ rustup install beta -$ rustup install nightly +$ rustup toolchain install stable +$ rustup toolchain install beta +$ rustup toolchain install nightly ``` ## For updating your installation @@ -53,6 +53,12 @@ To set the default toolchain to something other than `stable`: $ rustup default nightly ``` +To uninstall a specific Rust version, you can use `rustup toolchain uninstall`: + +```console +$ rustup toolchain uninstall 1.30.0 +``` + To use a toolchain other than the default, use `rustup run`: ```console