bdep-update(1)
π bdep-update β bestie edition π
okay so this is bdep-update(1) from the General Commands Manual and it's genuinely one of the most useful little commands in the whole bdep fam. sit down, grab a strawberry π, and let's get into it.
β¨ NAME β¨
bdep-update β update project in build configurations
like, it updates ur project. in ur build configs. that's the whole vibe. π¦
πΈ SYNOPSIS πΈ
bdep update [options] [pkg-spec] [cfg-spec] [cfg-var...]
cfg-spec = (@cfg-name | --config|-c cfg-dir)... | --all|-a
pkg-spec = (--directory|-d pkg-dir)... | prj-spec
prj-spec = --directory|-d prj-dir
no cap, that's the whole shape of it. options, then a pkg-spec, then a cfg-spec, then however many cfg-var... you feel like throwing in. π
π DESCRIPTION π
the update command updates the project packages in one or more build configurations. that's the main character job right there. π
and then β plot twist β you can ALSO update the immediate or all dependencies of the project packages by specifying the --immediate|-i or --recursive|-r options, respectively. pick ur fighter.
underneath, update executes the bpkg-pkg-update(1) command, which itself is not much more than the build system update operation (peep b(1) for details). so the real utility of this command? being able to refer to build configurations by names β¨ and to project packages implicitly via the current working directory β¨ as well as to update dependencies β¨. it's giving convenience, fr fr.
if no project or package directory is specified, then the current working directory is assumed. if no configuration is specified, then the default configurations are assumed. see bdep-projects-configs(1) for details on specifying projects and configurations. and the optional cfg-var... are the additional configuration variables to pass to the build system. π
π₯ UPDATE OPTIONS π₯
--immediate|-iβ also update immediate dependencies.--recursive|-rβ also update all dependencies, recursively. like, ALL of them. the whole tree. π--all|-aβ use all build configurations.--config|-cdir β specify the build configuration as a directory.--directory|-ddir β assume project/package is in the specified directory rather than in the current working directory.--config-name|-nname β specify the build configuration as a name.--config-idnum β specify the build configuration as an id.
π«Ά COMMON OPTIONS π«Ά
the common options are summarized below, with a more detailed description available in bdep-common-options(1). go read that if u want the director's cut. π¬
-vβ print essential underlying commands being executed.-Vβ print all underlying commands being executed.--quiet|-qβ run quietly, only printing error messages. shhh π€«--verboselevel β set the diagnostics verbosity to level between 0 and 6.--stdout-formatformat β representation format to use for printing to stdout.--jobs|-jnum β number of jobs to perform in parallel.--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.--bpkgpath β the package manager program to be used for build configuration management.--bpkg-optionopt β additional option to be passed to the package manager program.--buildpath β the build program to be used to build packages.--build-optionopt β additional option to be passed to the build program.--curlpath β the curl program to be used for network operations.--curl-optionopt β additional option to be passed to the curl program.--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.
π DEFAULT OPTIONS FILES π
see bdep-default-options-files(1) for an overview of the default options files. for the update command the search start directory is the project directory. the following options files are searched for in each directory and, if found, loaded in the order listed:
bdep.options
bdep-update.options
the following update command options cannot be specified in the default options files:
--directory|-d
π¨ bestie listen. --directory|-d is NOT allowed in ur default options files. do not try it. i'm serious. π
π BUGS π
send bug reports to the users@build2.org mailing list. they're nice, they'll read it. be brave. π¦
π 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 whole page, bestie. this was bdep 0.17.0, from June 2024, out here being iconic as ever. go update ur projects, u got this. periodt. ππβ¨
π¦ where this page comes from
- fedora 43: bdep 0.17.0-5.fc43 Β· MIT
- fedora 44: bdep 0.17.0-7.fc44 Β· MIT
- nixos 26.05: bdep 0.17.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms