How to remove Rust compiler toolchains with Rustup?

一曲冷凌霜 提交于 2020-07-18 03:28:27

问题


The Rustup documentation shows how to install Rust nightly, but not how to remove it.

While the docs do show how to uninstall rustup entirely, I'd like to keep the stable branch.

How can I uninstall Rust nightly?


Note that I attempted to do the opposite of rustup install nightly... (rustup uninstall nightly, rustup remove nightly & rustup delete nightly) to no avail.

Even though I read the documentation it wasn't clear that nightly was a toolchain, a channel... or something else.


回答1:


The command you're looking for is:

rustup toolchain remove nightly

remove and uninstall both work for this.

For more details see:

rustup help toolchain


来源:https://stackoverflow.com/questions/42322879/how-to-remove-rust-compiler-toolchains-with-rustup

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!