Install Rust on a Ubuntu machine using the terminal?

looper003 asked this question 5 months ago
looper003 on Dec 19, 2021

In my terminal, what's the easiest way to install the Rust programming language?

I'm running the Ubuntu 20.04 operating system.

2 suggested answers
suparman21 on Dec 23, 2021

Install Rust:

Install Rust via Rustup, the installer for Rust:

curl -sSf | sh

When the installation is complete, you should get this output:

Rust is installed now. Great!

You can verify Rust was installed with this command:

rustc --version

It should output the version number installed.

Updating Rust:

Updates Rust to the latest version available:

rustup update

Uninstalling Rust:

Remove rustup, cargo, and rustc from your machine:

rustup self uninstall
0 replies
itsbambi on Dec 23, 2021

Just one command:

curl -sSf | sh
0 replies