bpkg-pkg-checkout(1)
π bpkg-pkg-checkout(1) β the manual page, but make it make sense π
okay bestie, so this is the General Commands Manual page for bpkg-pkg-checkout, and I'm gonna walk you through it like we're texting at 2am. grab a snack. π
β¨ NAME β¨
bpkg-pkg-checkout β check out package version
like. it checks out a package version. that's the whole vibe. π
πΈ SYNOPSIS πΈ
bpkg pkg-checkout [options] pkg/ver
that's it. that's the shape of it. options go in, pkg/ver goes in, magic happens. β¨
π¦ DESCRIPTION π¦
so the pkg-checkout command checks out the version of the package you asked for, and it pulls it from one of the version control-based repositories (peep bpkg-rep-add(1) for that). after all that, the resulting package state is unpacked β go look at bpkg-pkg-status(1) if you wanna confirm. π
here's where it gets kinda important, so pay attention bestie π
if you pass the --output-root option, then the package gets checked out into the directory you specified instead of into the configuration directory. when that happens, bpkg uses the package (source) directory in place, which is basically the same energy as the pkg-unpack --existing|-e mode. also β and this is the sneaky part β unless you also pass --output-purge, bpkg will not attempt to remove that directory when the package is later purged with the bpkg-pkg-purge(1) command. oh and heads up: a package like that is not external (the details live in bpkg-pkg-unpack(1) if you're nosy, and honestly you should be). π
and if you specify the --replace|-r option, then pkg-checkout will replace the archive and/or source directory of a package that is already in the unpacked or fetched state. so like, it's an override. it's giving "I said what I said". π«Ά
π PKG-CHECKOUT OPTIONS π
these are the ones that belong to pkg-checkout specifically. the main character options, if you will. π
--replace|-rβ Replace the source directory if the package is already fetched or unpacked.--output-rootdir β Check out the package into the specified directory rather than into the configuration directory. heads up though: the package source is placed into the package-version subdirectory of this directory, so don't be surprised when it's nested. πͺ--output-purgeβ Remove the checked out package (source) directory when the package is purged.--directory|-ddir β Assume configuration is in dir rather than in the current working directory.
β COMMON OPTIONS β
here's the summary of the common options, and if you want the full tea there's a way more detailed description in bpkg-common-options(1). no cap. π
-vβ Print essential underlying commands being executed.-Vβ Print all underlying commands being executed. (yes, capital V means everything. it's a lot. it's a vibe.)--quiet|-qβ Run quietly, only printing error messages.--verboselevel β Set the diagnostics verbosity to level between0and6.--stdout-formatformat β Representation format to use for printing to stdout.--jobs|-jnum β 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-resultfmt β 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.--buildpath β The build program to be used to build packages.--build-optionopt β Additional option to be passed to the build program.--fetchpath β The fetch program to be used to download resources.--fetch-optionopt β Additional option to be passed to the fetch program.--fetch-timeoutsec β The fetch and fetch-like (for example,git) program timeout.--pkg-proxyurl β HTTP proxy server to use when fetching package manifests and archives from remote pkg repositories.--gitpath β The git program to be used to fetch git repositories.--git-optionopt β Additional common option to be passed to the git program.--sha256path β The sha256 program to be used to calculate SHA256 sums.--sha256-optionopt β Additional option to be passed to the sha256 program.--tarpath β The tar program to be used to extract package archives.--tar-optionopt β Additional option to be passed to the tar program.--opensslpath β The openssl program to be used for crypto operations.--openssl-optionopt β Additional option to be passed to the openssl program.--authtype β Types of repositories to authenticate.--trustfingerprint β 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-capabilitiesup=pc β Protocol capabilities (pc) for a git repository URL prefix (up).--pagerpath β The pager program to be used to show long text.--pager-optionopt β Additional option to be passed to the pager program.--options-filefile β Read additional options from file.--default-optionsdir β 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 level2or higher.
π DEFAULT OPTIONS FILES π
want the whole overview of default options files? it's in bpkg-default-options-files(1), go read it, it's good for you. π§
for the pkg-checkout command, the search start directory is the configuration directory. these are the options files it looks for in each directory, and if it finds them, it loads them in the order listed:
bpkg.options
bpkg-pkg-checkout.options
and here's the thing β the following pkg-checkout command options cannot be specified in the default options files:
--directory|-d
so don't try it. it's not gonna work. periodt. π
π BUGS π
found a bug? send bug reports to the users@build2.org mailing list. they wanna hear it fr fr.
π COPYRIGHT π
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 page bestie!! π«Ά this was bpkg version 0.17.0, from June 2024, and yes it's still bpkg-pkg-checkout(1) in case you lost track. go check out some packages. slay. πβ¨π
π¦ where this page comes from
- fedora 43: bpkg 0.17.0-5.fc43 Β· MIT
- fedora 44: bpkg 0.17.0-7.fc44 Β· MIT
- nixos 26.05: bpkg 0.17.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms