Skip to content

This document is a WORK IN PROGRESS.
This is just a quick personal cheat sheet: treat its contents with caution!


Rust is a multi paradigm system programming language focused on safety, especially safe concurrency. Rust is syntactically similar to C++, but is designed to provide better memory safety while maintaining high performance.


Table of contents

Avoid dotfile madness

Prior to installation, make sure you stay in control of your home directory.


See how to handle Rust related dotfiles.


Install rust-bin, the last ("testing" on gentoo but stable according to rust) pre-compiled (binary) version:

# echo "dev-lang/rust-bin ~amd64" >> /etc/portage/package.accept_keywords
# emerge -a dev-lang/rust-bin

Or install and compile the last ("testing"...) rust version from sources (this can take a long time):
# echo "dev-lang/rust ~amd64" >> /etc/portage/package.accept_keywords
# emerge -a dev-lang/rust

# pacman -S rust
# apt install rust
# yum install rust
# dnf install rust

$ sudo curl -sSf | sh #then enter "1" when asked for a default install

Check if rust is well installed
# rustc --version




Update (only after online rust install way)

Update rust:

# rustup update

Uninstall rust (only after online rust install way)

If you want to uninstall rust (e.g. you finally prefer to install rust with portage or apt or yum or whatever):

# rustup self uninstall

If this cheat sheet has been useful to you, then please consider leaving a star here.