# Rust for Linux Applications

## About this Install Guide

| Reading time:              | 10 min                  |
|----------------------------|-------------------------|
| Last updated:              | 22 Jun 2026             |
| Ecosystem dashboard:       | [View](https://developer.arm.com/ecosystem-dashboard/linux?package=rust) |

| Author:                    | Mathias Brossard, Arm   |
|----------------------------|-------------------------|
| Official docs:             | [View](https://www.rust-lang.org/tools/install) |

This guide shows you how to install and use the tool with the most common configuration. For advanced options and complete reference information, see the official documentation. Some install guides also include optional next steps to help you explore related workflows or integrations.

[Rust](https://www.rust-lang.org/) is an open source programming language.

This install guide is for Linux application developers wishing to use Rust.

If you wish to use Rust to build embedded applications for Arm, refer to [Rust for Embedded Applications](https://learn.arm.com/install-guides/rust_embedded/) instead.

## What are the prerequisites before installing Rust on Arm Linux?

Rust is available for a variety of operating systems and Linux distributions, and there are multiple ways to install it.

This install guide provides a quick solution to install Rust on an Arm Linux distribution.

Confirm you are using an Arm machine by running:

```bash
uname -m
```

The output should be:

```bash
__output__aarch64
```

If you see a different result, you are not using an Arm computer running 64-bit Linux.

## How do I install Rust on an Arm Linux system?

### How do I install dependencies on Debian-based distributions?

Use the `apt` command to install the required software packages on any Debian-based Linux distribution, including Ubuntu.

```bash
sudo apt update
sudo apt install -y curl gcc
```

### How do I install dependencies on Red Hat, Fedora, or Amazon Linux?

These Linux distributions use `yum` as the package manager.

Use the `yum` command to install the required software packages. If the machine has `sudo` you can use it.

```bash
sudo yum update -y
sudo yum install -y curl gcc
```

### How do I download and install Rust?

Run the following command to download and install Rust:

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

The installer output will be similar to:

```bash
__output__info: downloading installer
__output__info: profile set to 'default'
__output__info: default host triple is aarch64-unknown-linux-gnu
__output__info: syncing channel updates for 'stable-aarch64-unknown-linux-gnu'
__output__info: latest update on 2023-12-07, rust version 1.74.1 (a28077b28 2023-12-04)
__output__info: downloading component 'cargo'
__output__info: downloading component 'clippy'
__output__info: downloading component 'rust-docs'
__output__info: downloading component 'rust-std'
__output__info: downloading component 'rustc'
__output__info: downloading component 'rustfmt'
__output__info: installing component 'cargo'
__output__info: installing component 'clippy'
__output__info: installing component 'rust-docs'
__output__ 13.6 MiB /  13.6 MiB (100 %)   8.2 MiB/s in  1s ETA:  0s
__output__info: installing component 'rust-std'
__output__ 32.8 MiB /  32.8 MiB (100 %)  12.6 MiB/s in  2s ETA:  0s
__output__info: installing component 'rustc'
__output__ 75.5 MiB /  75.5 MiB (100 %)  17.7 MiB/s in  4s ETA:  0s
__output__info: installing component 'rustfmt'
__output__info: default toolchain set to 'stable-aarch64-unknown-linux-gnu'
__output__ stable-aarch64-unknown-linux-gnu installed - rustc 1.70.0 (90c541806 2023-05-31)
__output__ Rust is installed now. Great!
__output__ To get started, you may need to restart your current shell.
__output__ This reloads your PATH environment variable to include
__output__ Cargo's bin directory ($HOME/.cargo/bin).
__output__ To configure your current shell, run:
__output__ source "$HOME/.cargo/env"
```

The latest version of Rust is now installed.

The installer updates `$HOME/.bashrc` and `SHOME/.profile` to set up the environment. Start a new shell or run the following command to continue:

```bash
source "$HOME/.cargo/env"
```

To confirm the installation is complete run `cargo version` (`cargo` is the Rust package manager):

```bash
cargo version
```

This command will print the version:

```bash
__output__cargo 1.93.0 (083ac5135 2025-12-15)
```

You are ready to use the Rust programming language on your Arm Linux machine.

## How do I get started using Rust?

To compile an example program, run the following commands:

```bash
cargo new hello
cd hello
cargo run
```

The `cargo run` command outputs:

```bash
__output__Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.01s
__output__     Running `target/debug/hello`
__output__Hello, world!
```
