Where are the Rust (aka rust-lang) packages for Ubuntu?

I'd like to play with the Rust language on Ubuntu, but there don't seem to be any packages. Did I miss it or is there some problem?


Solution 1:

On ubuntu 16.04 you can use official apt package without install any other ppa repository.

sudo apt install rustc

... and don't forget cargo

sudo apt install cargo

... but the versions are not really updated: (August 2016) rustc 1.7.0 and cargo 0.8.0. Unfortunally cargo is not compatible with IDEA rust plugin... I used the script pointed in Rust Documentation.

Solution 2:

Jonathon Fernyhough has a PPA (personal package archive) where he provides unofficial nightly and versioned builds of rust, but it does require libstdc++ 6.x (Xenial uses 5.4.0). With Yakkety you can install Rust 1.10 from the universe repository, and 1.13 with Zesty.

Rust can be installed from this PPA by running the following, as well as llvm which is now needed:

sudo add-apt-repository ppa:jonathonf/rustlang (accept to add llvm)
sudo apt-get update
sudo apt-get install rustc

Alternatively different backport ppas like rustlang-1.13 or rustlang-test can be substituted instead of rustlang to get a the latest unstable code or a particular version.