Install Rust on Linux + Windows

In this article, we have explained the steps needed to install Rust compiler (rustc) and other essential tools to run Rust code. We have presented the steps for both Linux variants (like Ubuntu) and Windows.

Table of contents:

  1. Install Rust on Linux
  2. Install Rust on Windows

Install Rust on Linux

Install Rust on Linux / Ubuntu as follows:

curl -sSf | sh

The above command will download file on your system and run it which will install all essential Rust tools include rustc which is the Rust compiler.

Rustup is a tool that manages Rust toolchains across various platforms and helps download and run the correct installation files directly.

Install Rust on Windows

To install Rust on Windows, download rustup-init.exe file at following URL:

Once downloaded, double click the rustup-init.exe file and all Rust tools will be installed.

With this article at OpenGenus, you must have a complete idea of how to install Rust on your system. Enjoy.