table of contents
CARGO-UNINSTALL(1) | General Commands Manual | CARGO-UNINSTALL(1) |
NAME¶
cargo-uninstall — Remove a Rust binary
SYNOPSIS¶
cargo uninstall [options] [spec…]
DESCRIPTION¶
This command removes a package installed with cargo-install(1). The spec argument is a package ID specification of the package to remove (see cargo-pkgid(1)).
By default all binaries are removed for a crate but the --bin and --example flags can be used to only remove particular binaries.
The installation root is determined, in order of precedence:
OPTIONS¶
Install Options¶
-p, --package spec…
--bin name…
--root dir
Display Options¶
-v, --verbose
-q, --quiet
--color when
May also be specified with the term.color config value <https://doc.rust-lang.org/cargo/reference/config.html>.
Common Options¶
+toolchain
--config KEY=VALUE or PATH
-C PATH
This option is only available on the nightly channel <https://doc.rust-lang.org/book/appendix-07-nightly-rust.html> and requires the -Z unstable-options flag to enable (see #10098 <https://github.com/rust-lang/cargo/issues/10098>).
-h, --help
-Z flag
ENVIRONMENT¶
See the reference <https://doc.rust-lang.org/cargo/reference/environment-variables.html> for details on environment variables that Cargo reads.
EXIT STATUS¶
EXAMPLES¶
cargo uninstall ripgrep