1CARGO-UNINSTALL(1) 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 -h, --help
69 Prints help information.
70
71 -Z FLAG...
72 Unstable (nightly-only) flags to Cargo. Run cargo -Z help for
73 details.
74
76 See the reference
77 <https://doc.rust-lang.org/cargo/reference/environment-variables.html>
78 for details on environment variables that Cargo reads.
79
81 0
82 Cargo succeeded.
83
84 101
85 Cargo failed to complete.
86
88 1. Uninstall a previously installed package.
89
90 cargo uninstall ripgrep
91
93 cargo(1), cargo-install(1)
94
95
96
97 2018-12-20 CARGO-UNINSTALL(1)