23.12 Installing Binary Application Packages

You can install published application crates (those providing binaries) with:

cargo install <crate_name>

Cargo will download, compile, and place the binary in ~/.cargo/bin by default. Ensure ~/.cargo/bin is in your PATH. For example:

cargo install ripgrep

You can then run rg (ripgrepā€™s command) from any directory.