Downgrade to specific Rust version with rustup
May 30, 2022 ‐ 1 min read
If you manage your Rust environment with rustup
then downgrading to a specific version can be done with a single command, the same goes for upgrading to a specific version for that matter.
We can pass the desired version as an argument to the rustup install
command.
$ rustup install 1.58
info: syncing channel updates for '1.58-x86_64-unknown-linux-gnu'
info: latest update on 2022-01-20, rust version 1.58.1 (db9d1b20b 2022-01-20
...
When no version number is specified to the install
subcommand rustup
defaults to the latest available version.