bpkg-pkg-fetch(1)

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

πŸ’– bpkg-pkg-fetch β€” the manual, but make it cute πŸ’–

okay bestie, so this is bpkg-pkg-fetch(1) β€” the bpkg manual page about fetching package archives. general commands manual vibes. sit down, grab a strawberry πŸ“, and let's get into it.


✨ NAME ✨

bpkg-pkg-fetch β€” fetch package archive. that's it. that's the whole job. fetching. archives. iconic behavior honestly πŸŽ€


🌸 SYNOPSIS 🌸

bpkg pkg-fetch [options] (pkg/ver | --existing|-e file)

like… you either give it a pkg/ver, or you hit it with --existing|-e and a file. pick a lane, queen. πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜•. the pkg-fetch command fetches the archive for the package name and version you specify, and it pulls it from one of the archive-based repositories (bpkg-rep-add(1)). once it's done, the resulting package state is fetched (bpkg-pkg-status(1)). slay.

if you pass the --replace|-r option, then pkg-fetch will replace the archive of a package that is already in the fetched or unpacked state. otherwise? pkg-fetch expects the package to not exist in the configuration. so like, don't come in acting brand new if you're already here, iykyk πŸ™ˆ

and if you use the --existing|-e option, then instead of the name and version arguments, pkg-fetch expects a local path to an existing package archive. in that case, bpkg will use the archive in place, without copying it into the configuration directory. also β€” and this is the important part, no cap β€” unless you specify the --purge|-p option, bpkg will not attempt to remove this archive when the package is later purged with the bpkg-pkg-purge(1) command. so that file is staying, bestie. it lives here now πŸ’…


πŸ‘‘ PKG-FETCH OPTIONS πŸ‘‘

  • --replace|-r β€” Replace the archive if the package is already fetched or unpacked.
  • --existing|-e β€” Treat the argument as an existing package archive path rather than the package name/version to fetch.
  • --purge|-p β€” Remove the existing package archive when the package is purged.
  • --directory|-d dir β€” Assume configuration is in dir rather than in the current working directory.

🌈 COMMON OPTIONS 🌈

these are the common options, summarized right here for you πŸ’œ β€” and if you want the full deep-dive detailed description, it's all in bpkg-common-options(1). go read it, i'll wait.

  • -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 🧚

want the whole overview of default options files? it's in bpkg-default-options-files(1). for real. go look πŸ‘€

for the pkg-fetch command, 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-pkg-fetch.options

and these pkg-fetch command options cannot be specified in the default options files:

--directory|-d
--purge|-p
so like… those two are strictly a you-and-the-terminal thing. no sneaking them into a file, bestie 🫢

πŸ’€ BUGS πŸ’€

found a bug? send bug reports to the users@build2.org mailing list. we listen, fr fr πŸ“¬


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.


and that's the whole page, bestie!! this was bpkg version 0.17.0, dated June 2024 β€” thanks for reading, you absolute icon, mwah πŸ’–πŸ’…βœ¨

πŸ“¦ where this page comes from