Is there a cargo install command to update installed packages?
Hello everyone! I'm new to Rust and actively learning the ecosystem. I installed several useful utilities via `cargo install` — for example, `ripgrep`, `bat`, and `fd-find`. Everything works great, but I noticed that these tools are periodically updated on GitHub. I want to keep them up to date, but I can't find a command similar to `apt update && apt upgrade` in Ubuntu or `brew upgrade` in Homebrew.
I tried:
```bash
cargo install --update ripgrep
```
But got an error: `error: unexpected argument '--update' found`. Then I tried `cargo update ripgrep` — it also didn't work, because `cargo update` only works for dependencies in a project with Cargo.toml.
So it seems that to update each utility, I first need to find out the latest version, and then run `cargo install ripgrep
No answers yet.
Log in to leave an answer