I would like to install Xargo v0.3.10 on my machine. The current version of Xargo is v0.3.11 and it is installed by the cargo install xargo
command. How can I install an older version of Xargo?
Asked
Active
Viewed 1.2k times
20

Shepmaster
- 388,571
- 95
- 1,107
- 1,366

Dragonight
- 1,033
- 2
- 10
- 20
1 Answers
34
cargo install --version 0.3.10 xargo
Reading the help for the cargo
tool is very useful:
$ cargo install --help
cargo-install
Install a Rust binary
USAGE:
cargo install [OPTIONS] [--] [crate]...
OPTIONS:
--version <VERSION> Specify a version to install from crates.io
[... snip ...]
If you've already installed a version of the tool, you'll need to add the -f
/ --force
flag:
-f, --force Force overwriting existing crates or binaries
See also:

Shepmaster
- 388,571
- 95
- 1,107
- 1,366
-
4You'll also need `--force` if you want to downgrade an already-installed package. – mcarton Apr 03 '18 at 21:35