Skip to content

Rust

Install via rustup

Rustup is the Rust Language's installer and primary front-end.

  • Rustup metadata and toolchains will be installed into the Rustup home directory, located at: ~/.rustup
  • The Cargo home directory located at: ~/.cargo
  • The cargo, rustc, rustup and other commands will be added to Cargo's bin directory, located at: ~/.cargo/bin

Install rustup from https://rustup.rs

Install latest/nightly from rustup.rs:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Install rustup as snap

NOTA BENE: This is an experimental, unofficial, snap and should not be relied on.

sudo snap install rustup

Install rustc + cargo from from system apt repo

sudo apt install rustc

Usage