bpkg-cfg-link(1)

πŸ“¦
version 0.17.0 Β· 2 versions
, in fedora 43, fedora 44, nixos 26.05

πŸŽ€ NAME πŸŽ€

bpkg-cfg-link β€” link configuration. that's the whole assignment, bestie πŸ’– this page is bpkg-cfg-link(1), and it's literally just about gluing one config to another. periodt.


πŸ¦‹ SYNOPSIS πŸ¦‹

bpkg cfg-link [options] dir

✨ DESCRIPTION ✨

okay so the cfg-link command links the specified bpkg configuration with the current configuration. and bestie, it's not a one-way thing β€” it also establishes an implicit backlink from the specified configuration back to the current one. mutual. reciprocal. the two configs are in a committed relationship now πŸ’ž

if you wanna know the whole lore behind linked configurations, go read bpkg-cfg-create(1). and if you ever need to break them up, that's bpkg-cfg-unlink(1) β€” we don't do messy breakups here, we use the right command πŸ’…

linked configurations are normally referred to using names when you specify them on the bpkg command line. unless you override it with the --name option, the original configuration name is used to name the link. and if the link ends up unnamed? no worries β€” you can refer to it either by the numeric id that gets automatically assigned when the link is established, or by the configuration UUID. so many ways to find your girl 🫢

now here's the path math, and it's actually iconic:

  • if the specified configuration path is relative, then it gets rebased relative to the current configuration directory. this is the smart move, because when linked configurations are moved around together, the stored relative paths stay valid ✨
  • if the specified directory path is absolute, then it's stored as absolute β€” unless you pass --relative, in which case it also gets rebased relative to the current configuration directory.

  • --name name β€” alternative link name. if you don't specify this option, then the configuration name is used as the link name (see bpkg-cfg-create(1) for the details, bestie).
  • --relative β€” rebase the absolute linked configuration path relative to the current configuration directory.
  • --directory, -d dir β€” assume configuration is in dir rather than in the current working directory.

πŸ‘‘ COMMON OPTIONS πŸ‘‘

here's the summary, but if you want the full deep dive, bpkg-common-options(1) has you covered πŸ’œ

  • -v β€” print essential underlying commands being executed.
  • -V β€” print all underlying commands being executed.
  • --quiet, -q β€” run quietly, only printing error messages.
  • --verbose level β€” set the diagnostics verbosity to level between 0 and 6.
  • --stdout-format format β€” representation format to use for printing to stdout.
  • --jobs, -j num β€” number of jobs to perform in parallel.
  • --no-result β€” don't print informational messages about the outcome of performing a command or some of its parts.
  • --structured-result fmt β€” write the result of performing a command in a structured form.
  • --progress β€” display progress indicators for long-lasting operations, such as network transfers, building, etc.
  • --no-progress β€” suppress progress indicators for long-lasting operations, such as network transfers, building, etc.
  • --diag-color β€” use color in diagnostics.
  • --no-diag-color β€” don't use color in diagnostics.
  • --build path β€” the build program to be used to build packages.
  • --build-option opt β€” additional option to be passed to the build program.
  • --fetch path β€” the fetch program to be used to download resources.
  • --fetch-option opt β€” additional option to be passed to the fetch program.
  • --fetch-timeout sec β€” the fetch and fetch-like (for example, git) program timeout.
  • --pkg-proxy url β€” HTTP proxy server to use when fetching package manifests and archives from remote pkg repositories.
  • --git path β€” the git program to be used to fetch git repositories.
  • --git-option opt β€” additional common option to be passed to the git program.
  • --sha256 path β€” the sha256 program to be used to calculate SHA256 sums.
  • --sha256-option opt β€” additional option to be passed to the sha256 program.
  • --tar path β€” the tar program to be used to extract package archives.
  • --tar-option opt β€” additional option to be passed to the tar program.
  • --openssl path β€” the openssl program to be used for crypto operations.
  • --openssl-option opt β€” additional option to be passed to the openssl program.
  • --auth type β€” types of repositories to authenticate.
  • --trust fingerprint β€” trust repository certificate with a SHA256 fingerprint.
  • --trust-yes β€” assume the answer to all authentication prompts is yes.
  • --trust-no β€” assume the answer to all authentication prompts is no.
  • --git-capabilities up=pc β€” protocol capabilities (pc) for a git repository URL prefix (up).
  • --pager path β€” the pager program to be used to show long text.
  • --pager-option opt β€” additional option to be passed to the pager program.
  • --options-file file β€” read additional options from file.
  • --default-options dir β€” the directory to load additional default options files from.
  • --no-default-options β€” don't load default options files.
  • --keep-tmp β€” don't remove the bpkg's temporary directory at the end of the command execution and print its path at the verbosity level 2 or higher.

🧚 DEFAULT OPTIONS FILES 🧚

for the big-picture overview of default options files, see bpkg-default-options-files(1) πŸ’–

for the cfg-link command specifically, the search start directory is the configuration directory. the following options files are searched for in each directory and, if found, loaded in the order listed:

bpkg.options
bpkg-cfg-link.options

and these cfg-link command options cannot be specified in the default options files:

  • --directory, -d
not up for negotiation bestie, that one lives on the command line only πŸ’…

πŸ’€ BUGS πŸ’€

send bug reports to the users@build2.org mailing list. we're nice, we promise πŸ™ˆ


Copyright (c) 2014-2024 the build2 authors.

Permission is granted to copy, distribute and/or modify this document under the terms of the MIT License.


okay that's the whole page, you ate that πŸ“ this was bpkg 0.17.0, from June 2024 β€” bpkg-cfg-link(1), signing off, mwah πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from