To uninstall rust from your system, you can make use of the rustup command with the self uninstall option.
Steps to Uninstall Rust
- Openn Terminal,
- Run the below command,
rustup self uninstall
Logs,
Thanks for hacking in Rust! This will uninstall all Rust toolchains and data, and remove $HOME/.cargo/bin from your PATH environment variable. Continue? (y/N) y info: removing rustup home info: removing cargo home info: removing rustup binaries info: rustup is uninstalled
![How to uninstall Rust Lang from Mac or Linux Example using Terminal How to uninstall Rust Lang from Mac or Linux Example using Terminal](https://code2care.org/rust/uninstall-rust-lang-from-mac-linux-or-ubuntu/images/How to uninstall Rust Lang from Mac or Linux Example using Terminal.jpg)
Facing issues? Have Questions? Post them here! I am happy to answer!
Author Info:
Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.
Follow him on: X
You can also reach out to him via e-mail: rakesh@code2care.org
More Posts related to Rust,
- Rust: Cargo Init vs Cargo New Command
- Rust: Write and Run Hello World! Program Example
- How to Split a String using Rust Language
- How to Sort a Vector in Rust with Examples
- Fix: error: could not find `Cargo.toml` in Users or any parent directory
- How to uninstall Rust Language from Mac/Linux/Ubuntu
- How to update Cargo (Rust Lang)
- Fix: rust-analyzer failed to discover workspace [Visual Studio Code]
- How to install Rust using rustup on macOS/Linux/Ubuntu
- Cargo Watch: To Recompile Rust Project Automatically
- Difference between rustc and cargo build commands
- How to Split a String by Space in Rust
- How to know Rust is Installed on Mac?
- Rust: zsh: no such file or directory: ./main
- How to update Rust on Mac/Linux
- List of Rust Cargo Commands
- How to find version of Cargo in Rust
- Fix: error: mismatched closing delimiter } [Rust]
More Posts:
- Online UUID Generator Tool - Tools
- This Toast was not created with Toast.makeText() : Android RuntimeException - Android
- WhatsApp Keyboard shortcuts for Mac - WhatsApp
- Command to know the Available Memory on Linux System - Linux
- SharePoint excel error - A problem occurred while connecting to the server. If the problem continues, contact your administrator. - SharePoint
- How to Run Terminal As Admin on Mac - MacOS
- SharePoint Online REST API not returning all list items and limit to only 100 rows - SharePoint
- Go to Specific file path using Mac Finder - MacOS