]> git.proxmox.com Git - rustc.git/blob - src/tools/cargo/src/doc/man/cargo-uninstall.md
New upstream version 1.70.0+dfsg2
[rustc.git] / src / tools / cargo / src / doc / man / cargo-uninstall.md
1 # cargo-uninstall(1)
2
3 ## NAME
4
5 cargo-uninstall --- Remove a Rust binary
6
7 ## SYNOPSIS
8
9 `cargo uninstall` [_options_] [_spec_...]
10
11 ## DESCRIPTION
12
13 This command removes a package installed with {{man "cargo-install" 1}}. The _spec_
14 argument is a package ID specification of the package to remove (see
15 {{man "cargo-pkgid" 1}}).
16
17 By default all binaries are removed for a crate but the `--bin` and
18 `--example` flags can be used to only remove particular binaries.
19
20 {{> description-install-root }}
21
22 ## OPTIONS
23
24 ### Install Options
25
26 {{#options}}
27
28 {{#option "`-p`" "`--package` _spec_..." }}
29 Package to uninstall.
30 {{/option}}
31
32 {{#option "`--bin` _name_..." }}
33 Only uninstall the binary _name_.
34 {{/option}}
35
36 {{#option "`--root` _dir_" }}
37 Directory to uninstall packages from.
38 {{/option}}
39
40 {{/options}}
41
42 ### Display Options
43
44 {{#options}}
45
46 {{> options-display }}
47
48 {{/options}}
49
50 {{> section-options-common }}
51
52 {{> section-environment }}
53
54 {{> section-exit-status }}
55
56 ## EXAMPLES
57
58 1. Uninstall a previously installed package.
59
60 cargo uninstall ripgrep
61
62 ## SEE ALSO
63 {{man "cargo" 1}}, {{man "cargo-install" 1}}