1bpkg-pkg-unpack(1) General Commands Manual bpkg-pkg-unpack(1)
2
3
4
6 bpkg-pkg-unpack - unpack package archive
7
9 bpkg pkg-unpack [options] (pkg[/ver] | --existing|-e dir)
10
12 If only the package name is specified, then the pkg-unpack command
13 unpacks the archive for the previously fetched (bpkg-pkg-fetch(1))
14 package. The resulting package state is unpacked (bpkg-pkg-status(1)).
15
16 If the package version is also specified, then the (source) directory
17 from one of the directory-based repositories (bpkg-rep-add(1)) is used
18 in place, without copying it into the configuration directory. Such a
19 package is called external.
20
21 If the --existing|-e option is used, then instead of the package name,
22 pkg-unpack expects a local path to an existing package directory. In
23 this case, bpkg will use the (source) directory in place, the same as
24 for packages from directory-based repositories. Also, unless the
25 --purge|-p option is specified, bpkg will not attempt to remove this
26 directory when the package is later purged with the bpkg-pkg-purge(1)
27 command. Such a package is also external.
28
29 If --existing|-e is specified together with the --replace|-r option,
30 then pkg-unpack will replace the archive and/or source directory of a
31 package that is already in the unpacked or fetched state.
32
33 An external package triggers several changes in semantics compared to a
34 normal package: The package (output) directory inside the configuration
35 is called just pkg rather than pkg-ver. It is also assumed that the
36 packaging information (package manifest and lockfile) for such packages
37 may change without incrementing the package version (for example, dur‐
38 ing development). To support this, bpkg implements the package itera‐
39 tion mechanism which may result in iteration numbers to be shown as
40 part of the package version, for example, 1.2.3#1 (see Package Version
41 (#package-version)).
42
44 --existing|-e
45 Treat the argument as an existing package directory path rather
46 than the package name to unpack.
47
48 --purge|-p
49 Remove the existing package directory when the package is
50 purged.
51
52 --replace|-r
53 Replace the source directory if the package is already unpacked
54 or fetched. Can only be specified with an external package.
55
56 --directory|-d dir
57 Assume configuration is in dir rather than in the current work‐
58 ing directory.
59
61 The common options are summarized below with a more detailed descrip‐
62 tion available in bpkg-common-options(1).
63
64 -v Print essential underlying commands being executed.
65
66 -V Print all underlying commands being executed.
67
68 --quiet|-q
69 Run quietly, only printing error messages.
70
71 --verbose level
72 Set the diagnostics verbosity to level between 0 and 6.
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.
80
81 --no-progress
82 Suppress progress indicators for long-lasting operations, such
83 as network transfers, building, etc.
84
85 --build path
86 The build program to be used to build packages.
87
88 --build-option opt
89 Additional option to be passed to the build program.
90
91 --fetch path
92 The fetch program to be used to download resources.
93
94 --fetch-option opt
95 Additional option to be passed to the fetch program.
96
97 --fetch-timeout sec
98 The fetch and fetch-like (for example, git) program timeout.
99
100 --git path
101 The git program to be used to fetch git repositories.
102
103 --git-option opt
104 Additional common option to be passed to the git program.
105
106 --sha256 path
107 The sha256 program to be used to calculate SHA256 sums.
108
109 --sha256-option opt
110 Additional option to be passed to the sha256 program.
111
112 --tar path
113 The tar program to be used to extract package archives.
114
115 --tar-option opt
116 Additional option to be passed to the tar program.
117
118 --openssl path
119 The openssl program to be used for crypto operations.
120
121 --openssl-option opt
122 Additional option to be passed to the openssl program.
123
124 --auth type
125 Types of repositories to authenticate.
126
127 --trust fingerprint
128 Trust repository certificate with a SHA256 fingerprint.
129
130 --trust-yes
131 Assume the answer to all authentication prompts is yes.
132
133 --trust-no
134 Assume the answer to all authentication prompts is no.
135
136 --pager path
137 The pager program to be used to show long text.
138
139 --pager-option opt
140 Additional option to be passed to the pager program.
141
142 --options-file file
143 Read additional options from file.
144
145 --default-options dir
146 The directory to load additional default options files from.
147
148 --no-default-options
149 Don't load default options files.
150
152 See bpkg-default-options-files(1) for an overview of the default
153 options files. For the pkg-unpack command the search start directory is
154 the configuration directory. The following options files are searched
155 for in each directory and, if found, loaded in the order listed:
156
157 bpkg.options
158 bpkg-pkg-unpack.options
159
160 The following pkg-unpack command options cannot be specified in the
161 default options files:
162
163 --directory|-d
164 --purge|-p
165
167 Send bug reports to the users@build2.org mailing list.
168
170 Copyright (c) 2014-2019 Code Synthesis Ltd
171
172 Permission is granted to copy, distribute and/or modify this document
173 under the terms of the MIT License.
174
175
176
177bpkg 0.12.0 November 2019 bpkg-pkg-unpack(1)