1CARGO-UNINSTALL(1) General Commands Manual CARGO-UNINSTALL(1)
2
3
4
6 cargo-uninstall - Remove a Rust binary
7
9 cargo uninstall [options] [spec...]
10
12 This command removes a package installed with cargo-install(1). The
13 spec argument is a package ID specification of the package to remove
14 (see cargo-pkgid(1)).
15
16 By default all binaries are removed for a crate but the --bin and
17 --example flags can be used to only remove particular binaries.
18
19 The installation root is determined, in order of precedence:
20
21 · --root option
22
23 · CARGO_INSTALL_ROOT environment variable
24
25 · install.root Cargo config value
26 <https://doc.rust-lang.org/cargo/reference/config.html>
27
28 · CARGO_HOME environment variable
29
30 · $HOME/.cargo
31
33 Install Options
34 -p, --package spec...
35 Package to uninstall.
36
37 --bin name...
38 Only uninstall the binary name.
39
40 --root dir
41 Directory to uninstall packages from.
42
43 Display Options
44 -v, --verbose
45 Use verbose output. May be specified twice for "very verbose"
46 output which includes extra output such as dependency warnings and
47 build script output. May also be specified with the term.verbose
48 config value
49 <https://doc.rust-lang.org/cargo/reference/config.html>.
50
51 -q, --quiet
52 No output printed to stdout.
53
54 --color when
55 Control when colored output is used. Valid values:
56
57 · auto (default): Automatically detect if color support is
58 available on the terminal.
59
60 · always: Always display colors.
61
62 · never: Never display colors.
63
64 May also be specified with the term.color config value
65 <https://doc.rust-lang.org/cargo/reference/config.html>.
66
67 Common Options
68 +toolchain
69 If Cargo has been installed with rustup, and the first argument to
70 cargo begins with +, it will be interpreted as a rustup toolchain
71 name (such as +stable or +nightly). See the rustup documentation
72 <https://rust-lang.github.io/rustup/overrides.html> for more
73 information about how toolchain overrides work.
74
75 -h, --help
76 Prints help information.
77
78 -Z flag
79 Unstable (nightly-only) flags to Cargo. Run cargo -Z help for
80 details.
81
83 See the reference
84 <https://doc.rust-lang.org/cargo/reference/environment-variables.html>
85 for details on environment variables that Cargo reads.
86
88 · 0: Cargo succeeded.
89
90 · 101: Cargo failed to complete.
91
93 1. Uninstall a previously installed package.
94
95 cargo uninstall ripgrep
96
98 cargo(1), cargo-install(1)
99
100
101
102 CARGO-UNINSTALL(1)