Rust
Rust
The preferred Rust installation method is to do so in your user home folder. This allows for Rust to be managed on a per user basis rather than a system level install, and also allows individuals to manage their own Rust packages via Cargo. The following guide will cover installation, updating, and removal of Rust.
Installing Rust
run the following script on the server:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Select option 1 when prompted or press enter
once the install has completed you will need to update your environment to source the new rust directories:
source $HOME/.cargo/env
To verify the install has completed successfully run
rustc --version
Updating Rust
After installation to update your Rust install you can run the following command:
rustup update
Uninstalling Rust
To remove rust you can run the following command:
rustup self uninstall