20

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?

Shepmaster
  • 388,571
  • 95
  • 1,107
  • 1,366
Dragonight
  • 1,033
  • 2
  • 10
  • 20

1 Answers1

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