3.1 Linux Users

For many Linux distributions, Rust may already be preinstalled or can be installed easily using the distribution's package manager. Examples include:

  • On Ubuntu or other Debian-based systems, you can install Rust with:

    sudo apt install rustc
    
  • On Fedora-based systems, use:

    sudo dnf install rust
    

However, to ensure that you have the latest version of Rust and the ability to easily manage multiple versions, it is recommended to install Rust using the rustup tool. rustup provides the most current release of Rust and simplifies switching between versions.

To install Rust using rustup, follow the instructions on the official website or run the following command in your terminal:

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