1bpkg-pkg-drop(1) General Commands Manual bpkg-pkg-drop(1)
2
3
4
6 bpkg-pkg-drop - drop package
7
9 bpkg pkg-drop|drop [options] <pkg>...
10 bpkg pkg-drop|drop [options] --all|-a
11 bpkg pkg-drop|drop [options] (--all-pattern <pattern>)...
12
14 The pkg-drop command drops from the configuration the specified pack‐
15 ages (the first form), all the held packages (the second form, see
16 bpkg-pkg-status(1)), or all the held packages that match any of the
17 specified wildcard patterns (the third form). If the packages being
18 dropped still have dependent packages, then those will have to be
19 dropped as well and you will be prompted to confirm. And if the pack‐
20 ages being dropped have dependency packages that would otherwise no
21 longer be used, then they will be dropped as well unless the --keep-un‐
22 used|-K option is specified.
23
24 The pkg-drop command also supports several options (described below)
25 that allow you to control the amount of work that will be done.
26
28 --all|-a
29 Drop all held packages.
30
31 --all-pattern pattern
32 Drop held packages that match the specified wildcard pattern.
33 Repeat this option to match multiple patterns. Note that you may
34 need to quote the pattern to prevent expansion by your shell.
35
36 --yes|-y
37 Assume the answer to all prompts is yes. Note that this option
38 does not apply to the dropping of dependents; use --drop-depen‐
39 dent for that.
40
41 --no|-n
42 Assume the answer to all prompts is no. Only makes sense to‐
43 gether with --print-only|-p.
44
45 --keep-unused|-K
46 Don't drop dependency packages that were automatically built but
47 will no longer be used.
48
49 --drop-dependent|-D
50 Don't warn about or ask for confirmation if dropping dependent
51 packages.
52
53 --keep-dependent
54 Issue an error if attempting to drop dependent packages.
55
56 --dependent-exit code
57 Silently exit with the specified error code if attempting to
58 drop dependent packages.
59
60 --disfigure-only
61 Disfigure all the packages but don't purge.
62
63 --print-only|-p
64 Print to stdout what would be done without actually doing any‐
65 thing.
66
67 --plan header
68 Print the plan (even if --yes is specified) and start it with
69 the header line (unless it is empty).
70
71 --directory|-d dir
72 Assume configuration is in dir rather than in the current work‐
73 ing directory.
74
76 The common options are summarized below with a more detailed descrip‐
77 tion available in bpkg-common-options(1).
78
79 -v Print essential underlying commands being executed.
80
81 -V Print all underlying commands being executed.
82
83 --quiet|-q
84 Run quietly, only printing error messages.
85
86 --verbose level
87 Set the diagnostics verbosity to level between 0 and 6.
88
89 --stdout-format format
90 Representation format to use for printing to stdout.
91
92 --jobs|-j num
93 Number of jobs to perform in parallel.
94
95 --no-result
96 Don't print informational messages about the outcome of perform‐
97 ing a command or some of its parts.
98
99 --structured-result fmt
100 Write the result of performing a command in a structured form.
101
102 --progress
103 Display progress indicators for long-lasting operations, such as
104 network transfers, building, etc.
105
106 --no-progress
107 Suppress progress indicators for long-lasting operations, such
108 as network transfers, building, etc.
109
110 --diag-color
111 Use color in diagnostics.
112
113 --no-diag-color
114 Don't use color in diagnostics.
115
116 --build path
117 The build program to be used to build packages.
118
119 --build-option opt
120 Additional option to be passed to the build program.
121
122 --fetch path
123 The fetch program to be used to download resources.
124
125 --fetch-option opt
126 Additional option to be passed to the fetch program.
127
128 --fetch-timeout sec
129 The fetch and fetch-like (for example, git) program timeout.
130
131 --pkg-proxy url
132 HTTP proxy server to use when fetching package manifests and ar‐
133 chives from remote pkg repositories.
134
135 --git path
136 The git program to be used to fetch git repositories.
137
138 --git-option opt
139 Additional common option to be passed to the git program.
140
141 --sha256 path
142 The sha256 program to be used to calculate SHA256 sums.
143
144 --sha256-option opt
145 Additional option to be passed to the sha256 program.
146
147 --tar path
148 The tar program to be used to extract package archives.
149
150 --tar-option opt
151 Additional option to be passed to the tar program.
152
153 --openssl path
154 The openssl program to be used for crypto operations.
155
156 --openssl-option opt
157 Additional option to be passed to the openssl program.
158
159 --auth type
160 Types of repositories to authenticate.
161
162 --trust fingerprint
163 Trust repository certificate with a SHA256 fingerprint.
164
165 --trust-yes
166 Assume the answer to all authentication prompts is yes.
167
168 --trust-no
169 Assume the answer to all authentication prompts is no.
170
171 --git-capabilities up=pc
172 Protocol capabilities (pc) for a git repository URL prefix (up).
173
174 --pager path
175 The pager program to be used to show long text.
176
177 --pager-option opt
178 Additional option to be passed to the pager program.
179
180 --options-file file
181 Read additional options from file.
182
183 --default-options dir
184 The directory to load additional default options files from.
185
186 --no-default-options
187 Don't load default options files.
188
189 --keep-tmp
190 Don't remove the bpkg's temporary directory at the end of the
191 command execution and print its path at the verbosity level 2 or
192 higher.
193
195 See bpkg-default-options-files(1) for an overview of the default op‐
196 tions files. For the pkg-drop command the search start directory is the
197 configuration directory. The following options files are searched for
198 in each directory and, if found, loaded in the order listed:
199
200 bpkg.options
201 bpkg-pkg-drop.options
202
203 The following pkg-drop command options cannot be specified in the de‐
204 fault options files:
205
206 --directory|-d
207
209 Send bug reports to the users@build2.org mailing list.
210
212 Copyright (c) 2014-2023 the build2 authors.
213
214 Permission is granted to copy, distribute and/or modify this document
215 under the terms of the MIT License.
216
217
218
219bpkg 0.16.0 June 2023 bpkg-pkg-drop(1)