How to update a binary installed with cargo install


#1

A while ago I did cargo install cargo-outdated. I find this tool useful-ish but don’t know how to update it. Or do I just do cargo install --force cargo-outdated?


#2

Yeaps you can do that, though it will always recompile and install cargo-outdated, even if you have the latest version.

A cargo subcommand that helps you update cargo subcommands is cargo-update:

cargo install cargo-update

# Usage:
# Note! It doesn't follow the usual convention of `cargo update <args>`
# This is because `cargo update` is already a built in cargo command
cargo install-update cargo-outdated