1bpkg-rep-add(1)             General Commands Manual            bpkg-rep-add(1)
2
3
4

NAME

6       bpkg-rep-add - add repository to configuration
7

SYNOPSIS

9       bpkg rep-add|add [options] rep-loc...
10

DESCRIPTION

12       The rep-add command adds the specified package repositories to the con‐
13       figuration. The repository location rep-loc is a  URL  or  a  directory
14       path.  If  a  repository with the same canonical name already exists in
15       the configuration, then its location is replaced with the specified.
16
17       Note that this command doesn't fetch the list of available packages for
18       the  newly  added  repository. For that, use the bpkg-rep-fetch(1) com‐
19       mand, normally, after adding all the repositories you wish to use.
20
21       Currently three types of repositories are supported: archive-based pkg,
22       directory-based  dir,  and  version control-based git. See bpkg-reposi‐
23       tory-types(1) for details on their structure and URL format.
24
25       Normally the repository type can be automatically guessed by  examining
26       its  URL  (for example, the presence of the .git extension) or, in case
27       of a local repository, its content (for example, the  presence  of  the
28       .git/  subdirectory).  Without any identifying information the pkg type
29       is assumed unless explicitly specified with the --type option or in the
30       URL  scheme.  Note,  however,  that  the  dir  repository type is never
31       guessed since it is not easily distinguishable from local pkg  and  git
32       repositories.
33

REP-ADD OPTIONS

35       --type type
36              Specify  the  repository  type with valid values being pkg, dir,
37              and git.
38
39       --directory|-d dir
40              Assume configuration is in dir rather than in the current  work‐
41              ing directory.
42

COMMON OPTIONS

44       The  common  options are summarized below with a more detailed descrip‐
45       tion available in bpkg-common-options(1).
46
47       -v     Print essential underlying commands being executed.
48
49       -V     Print all underlying commands being executed.
50
51       --quiet|-q
52              Run quietly, only printing error messages.
53
54       --verbose level
55              Set the diagnostics verbosity to level between 0 and 6.
56
57       --stdout-format format
58              Representation format to use for printing to stdout.
59
60       --jobs|-j num
61              Number of jobs to perform in parallel.
62
63       --no-result
64              Don't print informational messages about the outcome of perform‐
65              ing a command or some of its parts.
66
67       --structured-result fmt
68              Write the result of performing a command in a structured form.
69
70       --progress
71              Display progress indicators for long-lasting operations, such as
72              network transfers, building, etc.
73
74       --no-progress
75              Suppress progress indicators for long-lasting  operations,  such
76              as network transfers, building, etc.
77
78       --diag-color
79              Use color in diagnostics.
80
81       --no-diag-color
82              Don't use color in diagnostics.
83
84       --build path
85              The build program to be used to build packages.
86
87       --build-option opt
88              Additional option to be passed to the build program.
89
90       --fetch path
91              The fetch program to be used to download resources.
92
93       --fetch-option opt
94              Additional option to be passed to the fetch program.
95
96       --fetch-timeout sec
97              The fetch and fetch-like (for example, git) program timeout.
98
99       --pkg-proxy url
100              HTTP proxy server to use when fetching package manifests and ar‐
101              chives from remote pkg repositories.
102
103       --git path
104              The git program to be used to fetch git repositories.
105
106       --git-option opt
107              Additional common option to be passed to the git program.
108
109       --sha256 path
110              The sha256 program to be used to calculate SHA256 sums.
111
112       --sha256-option opt
113              Additional option to be passed to the sha256 program.
114
115       --tar path
116              The tar program to be used to extract package archives.
117
118       --tar-option opt
119              Additional option to be passed to the tar program.
120
121       --openssl path
122              The openssl program to be used for crypto operations.
123
124       --openssl-option opt
125              Additional option to be passed to the openssl program.
126
127       --auth type
128              Types of repositories to authenticate.
129
130       --trust fingerprint
131              Trust repository certificate with a SHA256 fingerprint.
132
133       --trust-yes
134              Assume the answer to all authentication prompts is yes.
135
136       --trust-no
137              Assume the answer to all authentication prompts is no.
138
139       --git-capabilities up=pc
140              Protocol capabilities (pc) for a git repository URL prefix (up).
141
142       --pager path
143              The pager program to be used to show long text.
144
145       --pager-option opt
146              Additional option to be passed to the pager program.
147
148       --options-file file
149              Read additional options from file.
150
151       --default-options dir
152              The directory to load additional default options files from.
153
154       --no-default-options
155              Don't load default options files.
156
157       --keep-tmp
158              Don't remove the bpkg's temporary directory at the  end  of  the
159              command execution and print its path at the verbosity level 2 or
160              higher.
161

DEFAULT OPTIONS FILES

163       See bpkg-default-options-files(1) for an overview of  the  default  op‐
164       tions  files. For the rep-add command the search start directory is the
165       configuration directory. The following options files are  searched  for
166       in each directory and, if found, loaded in the order listed:
167
168       bpkg.options
169       bpkg-rep-add.options
170
171       The  following  rep-add  command options cannot be specified in the de‐
172       fault options files:
173
174       --directory|-d
175

BUGS

177       Send bug reports to the users@build2.org mailing list.
178
180       Copyright (c) 2014-2023 the build2 authors.
181
182       Permission is granted to copy, distribute and/or modify  this  document
183       under the terms of the MIT License.
184
185
186
187bpkg 0.16.0                        June 2023                   bpkg-rep-add(1)
Impressum