How Do You Install Rust on Any Distribution of Linux?

Problem scenario
You want to install Rust on Linux (e.g., SUSE, Debian/Ubuntu or CentOS/RHEL/Fedora).

Solution

  1. Run this command:
sudo curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Choose "1" and press enter.

2. Run this command:

source $HOME/.cargo/env

Leave a comment

Your email address will not be published. Required fields are marked *