macOS
brew install build2local Homebrew formula metadata
brew
C/C++ Build Toolchain. Version 0.18.1 via Homebrew; verified 2026-06-27.
install
brew install build2local Homebrew formula metadata
sudo dnf install bdepFedora Rawhide package metadata · bdep · source: dl.fedoraproject.org
nix profile install nixpkgs#build2nixpkgs package indexes · pkgs/by-name/bu/build2/package.nix · source: api.github.com
winget install --id build2.build2.MSVC -eWindows Package Manager source index · build2.build2.MSVC · source: cdn.winget.microsoft.com
overview
C/C++ Build Toolchain
history
build2 is a cross-platform, MIT-licensed C/C++ build toolchain made of a build system, package manager, project manager, and supporting libraries.
The build2 project started in the mid-2010s with documentation copyright dating from 2014 and public toolchain tags beginning at 0.1.0. Its stated goal is to approximate Rust Cargo's convenience for C and C++ while keeping enough depth for complex real-world build requirements.
The toolchain is intentionally hierarchical: `b` is the general-purpose build system, `bpkg` handles package consumption, and `bdep` handles project development. The `build2-toolchain` repository is an amalgamation used to build and package those components together.
build2 has remained a specialist C/C++ toolchain rather than a default ecosystem standard like CMake, but its own community page says it is used for real development and cites customer-facing software such as ODB and XSD. The project also maintains cppget.org as its package repository.
It is packaged by Homebrew, Nix, Fedora-style `bdep` packages, and Windows winget according to the input. Upstream development happens in self-hosted git repositories on git.build2.org with GitHub mirrors for collaboration.
Users typically create or initialize projects with `bdep`, build with `b`, and consume dependencies with `bpkg`. The documented configuration surface includes project-local `build/config.build`, `.build2/` state, `.build2/local/`, user-level `~/.build2/`, and system-level `/etc/build2/` locations.
The toolchain is aimed primarily at C/C++ and mixed-language projects involving C or C++, though the project describes a longer-term universal build-toolchain goal.
build2 is significant because it is one of the more complete attempts to give C and C++ a Cargo-like combined build, package, and project-management workflow without hiding the complexity needed by native-code builds.
For package managers, it is also recursive in an interesting way: the build2 toolchain is used for its own development, and the upstream amalgamation repository exists specifically to make source builds and binary packaging of the whole toolchain practical.
security posture
generalized runtime or code generation signal.
yellow risk · medium confidence · runtime
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
build/config.build.build2/.build2/local/~/.build2//etc/build2/executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
b | cli | global executable | |
bdep | cli | global executable | |
bpkg | cli | global executable | |
bx | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:build2 |
|---|---|
| Version | 0.18.1 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/build2 |
| Homepage | https://build2.org |
| Repository | https://git.build2.org/cgit/build2-toolchain |
| Upstream docs | https://build2.org/bdep/doc/build2-project-manager-manual.xhtml |
| License | MIT |
| Source archive | https://download.build2.org/0.18.1/build2-toolchain-0.18.1.tar.xz |
| Last updated | 2026-06-27T13:57:07Z |
| Pulse | updated |
| Uses from macOS | curl, openssl |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | build2 |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
build2
nix profile install nixpkgs#build2bdep 0.17.0-7.fc44
build2 project dependency manager
sudo dnf install bdepbdep-doc 0.17.0-7.fc44
bdep documentation
sudo dnf install bdep-docbpkg 0.17.0-7.fc44
build2 package dependency manager
sudo dnf install bpkgbpkg-doc 0.17.0-7.fc44
bpkg documentation
sudo dnf install bpkg-docbuild2 0.17.0-7.fc44
Cross-platform build toolchain for developing and packaging C++ code
sudo dnf install build2build2-doc 0.17.0-7.fc44
build2 documentation
sudo dnf install build2-docbuild2-rpm-macros 0.17.0-7.fc44
build2 RPM macros
sudo dnf install build2-rpm-macroslibbpkg 0.17.0-7.fc44
build2 package dependency manager library
sudo dnf install libbpkglibbpkg-devel 0.17.0-7.fc44
Development files for build2 package dependency manager library
sudo dnf install libbpkg-devellibbuild2 0.17.0-7.fc44
build2 library
sudo dnf install libbuild2libbuild2-devel 0.17.0-7.fc44
Development files for build2 library
sudo dnf install libbuild2-devellibbutl 0.17.0-7.fc44
build2 utility library
sudo dnf install libbutllibbutl-devel 0.17.0-7.fc44
Development files for build2 utility library
sudo dnf install libbutl-develbuild2.build2.MSVC
winget install --id build2.build2.MSVC -ebuild2.build2.MinGW
winget install --id build2.build2.MinGW -esource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.