1bpkg-pkg-install(1) General Commands Manual bpkg-pkg-install(1)
2
3
4
6 bpkg-pkg-install - install package
7
9 bpkg pkg-install|install [options] [vars] pkg...
10 bpkg pkg-install|install [options] [vars] --all|-a
11 bpkg pkg-install|install [options] [vars] (--all-pattern <pattern>)...
12
14 The pkg-install command installs the specified packages (the first
15 form), all the held packages (the second form, see bpkg-pkg-status(1)),
16 or all the held packages that match any of the specified wildcard pat‐
17 terns (the third form). Additionally, immediate or all dependencies of
18 these packages can be also installed by specifying the --immediate|-i
19 or --recursive|-r options, respectively. Underneath, this command
20 doesn't do much more than run b install. In the first form the speci‐
21 fied packages must have been previously configured with bpkg-pkg-
22 build(1) or bpkg-pkg-configure(1).
23
24 Additional command line variables (vars, normally config.*) can be
25 passed to the build system. Such variables apply to all the specified
26 packages but can also be specified to only apply to specific packages
27 using the argument grouping mechanism (see bpkg-argument-grouping(1)
28 for details). In particular, this mechanism can be used to specify the
29 installation directory, for example:
30
31 bpkg install config.install.root=/usr/local \
32 config.install.sudo=sudo \
33 libfoo libbar
34
35 Alternatively, the installation directory can be specified once when
36 creating the configuration (bpkg-cfg-create(1)).
37
39 --all|-a
40 Install all held packages.
41
42 --all-pattern pattern
43 Install held packages that match the specified wildcard pattern.
44 Repeat this option to match multiple patterns. Note that you may
45 need to quote the pattern to prevent expansion by your shell.
46
47 --immediate|-i
48 Also install immediate dependencies.
49
50 --recursive|-r
51 Also install all dependencies, recursively.
52
53 --directory|-d dir
54 Assume configuration is in dir rather than in the current work‐
55 ing directory.
56
58 The common options are summarized below with a more detailed descrip‐
59 tion available in bpkg-common-options(1).
60
61 -v Print essential underlying commands being executed.
62
63 -V Print all underlying commands being executed.
64
65 --quiet|-q
66 Run quietly, only printing error messages.
67
68 --verbose level
69 Set the diagnostics verbosity to level between 0 and 6.
70
71 --stdout-format format
72 Representation format to use for printing to stdout.
73
74 --jobs|-j num
75 Number of jobs to perform in parallel.
76
77 --no-result
78 Don't print informational messages about the outcome of perform‐
79 ing a command or some of its parts.
80
81 --progress
82 Display progress indicators for long-lasting operations, such as
83 network transfers, building, etc.
84
85 --no-progress
86 Suppress progress indicators for long-lasting operations, such
87 as network transfers, building, etc.
88
89 --build path
90 The build program to be used to build packages.
91
92 --build-option opt
93 Additional option to be passed to the build program.
94
95 --fetch path
96 The fetch program to be used to download resources.
97
98 --fetch-option opt
99 Additional option to be passed to the fetch program.
100
101 --fetch-timeout sec
102 The fetch and fetch-like (for example, git) program timeout.
103
104 --pkg-proxy url
105 HTTP proxy server to use when fetching package manifests and ar‐
106 chives from remote pkg repositories.
107
108 --git path
109 The git program to be used to fetch git repositories.
110
111 --git-option opt
112 Additional common option to be passed to the git program.
113
114 --sha256 path
115 The sha256 program to be used to calculate SHA256 sums.
116
117 --sha256-option opt
118 Additional option to be passed to the sha256 program.
119
120 --tar path
121 The tar program to be used to extract package archives.
122
123 --tar-option opt
124 Additional option to be passed to the tar program.
125
126 --openssl path
127 The openssl program to be used for crypto operations.
128
129 --openssl-option opt
130 Additional option to be passed to the openssl program.
131
132 --auth type
133 Types of repositories to authenticate.
134
135 --trust fingerprint
136 Trust repository certificate with a SHA256 fingerprint.
137
138 --trust-yes
139 Assume the answer to all authentication prompts is yes.
140
141 --trust-no
142 Assume the answer to all authentication prompts is no.
143
144 --pager path
145 The pager program to be used to show long text.
146
147 --pager-option opt
148 Additional option to be passed to the pager program.
149
150 --options-file file
151 Read additional options from file.
152
153 --default-options dir
154 The directory to load additional default options files from.
155
156 --no-default-options
157 Don't load default options files.
158
159 --keep-tmp
160 Don't remove the bpkg's temporary directory at the end of the
161 command execution and print its path at the verbosity level 2 or
162 higher.
163
165 See bpkg-default-options-files(1) for an overview of the default op‐
166 tions files. For the pkg-install command the search start directory is
167 the configuration directory. The following options files are searched
168 for in each directory and, if found, loaded in the order listed:
169
170 bpkg.options
171 bpkg-pkg-install.options
172
173 The following pkg-install command options cannot be specified in the
174 default options files:
175
176 --directory|-d
177
179 Send bug reports to the users@build2.org mailing list.
180
182 Copyright (c) 2014-2022 the build2 authors.
183
184 Permission is granted to copy, distribute and/or modify this document
185 under the terms of the MIT License.
186
187
188
189bpkg 0.15.0 July 2022 bpkg-pkg-install(1)