# build2 mit Homebrew, dnf, Nix, winget installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für build2 in AI-Agent-Workflows.

## Installation

```sh
sudo av install brew:build2
```

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install build2
```

  Evidenz: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install build2
```

  Evidenz: Fedora Rawhide package metadata: build2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#build2
```

  Evidenz: nixpkgs package indexes: pkgs/by-name/bu/build2/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- winget (92%):

```sh
winget install --id build2.build2.MSVC -e
```

  Evidenz: Windows Package Manager source index: build2.build2.MSVC from https://cdn.winget.microsoft.com/cache/source.msix

## Paketfakten

- **Paketschlüssel:** brew:build2
- **Paketmanager:** Homebrew
- **Version:** 0.18.1
- **Quellzusammenfassung:** C/C++ Build Toolchain
- **Homepage:** <https://build2.org>
- **Zuletzt aktualisiert:** 2026-06-27T13:57:07Z
- **Generiert:** 2026-08-03T19:37:03+00:00

## Executables

- b (Alias)
- bdep (Alias)
- bpkg (Alias)
- bx (Alias)

## Installationsverhalten

- Bottle: nicht verfügbar

## Version und Aktualität

- Seite generiert: 2026-08-03
- Manager-Version: 0.18.1
## Projektgeschichte und Nutzung

build2 is a cross-platform, MIT-licensed C/C++ build toolchain made of a build system, package manager, project manager, and supporting libraries.

### Projektgeschichte

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.

### Adoptionsgeschichte

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.

### Wie es verwendet wird

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.

### Warum Paket-Nerds sich dafür interessieren

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.

### Zeitleiste

- 2014: build2 documentation copyright begins, marking the early public project era.
- 2010s: Public 0.x toolchain tags began with 0.1.0 and evolved through the pre-1.0 series.
- 2018: The project pointed users to a CppCon 2018 presentation as a toolchain overview.
- 2020s: The community page described build2 as in the final stage of pre-1.0 development and already used in projects such as ODB and XSD.
- 2026: The Toolchain Introduction metadata showed version 0.18 and copyright through 2026.

### Related projects

- Cargo is the explicit convenience benchmark named by the build2 homepage.
- CMake and Autotools are common neighboring C/C++ build-system incumbents, though build2 packages build, dependency, and project management together.
- cppget.org is the build2 package repository referenced by the project community page.

### Quellen

- <https://build2.org>
- <https://build2.org/build2-toolchain/doc/build2-toolchain-intro.xhtml>
- <https://build2.org/community.xhtml>
- <https://git.build2.org/cgit/build2-toolchain/plain/README.md>
- source_facts.package-manager


## Sicherheitshinweise

generalized runtime or code generation signal.

- **Geiger-Risiko:** yellow / mittel
- generalized runtime or code generation signal


## Configuration and credential file locations

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.


## Configuration files

- Unix: build/config.build, .build2/, .build2/local/, ~/.build2/, /etc/build2/
## Andere Paketmanager-Einträge

- Nix - build2: normalized package name match | nixpkgs package indexes: pkgs/by-name/bu/build2/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- dnf - bdep - 0.17.0-9.fc45: normalized package name match | Fedora Rawhide package metadata: bdep from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | build2 project dependency manager | https://build2.org/
- dnf - bdep-doc - 0.17.0-9.fc45: normalized package name match | Fedora Rawhide package metadata: bdep-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | bdep documentation | https://build2.org/
- dnf - bpkg - 0.17.0-9.fc45: normalized package name match | Fedora Rawhide package metadata: bpkg from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | build2 package dependency manager | https://build2.org/
- dnf - bpkg-doc - 0.17.0-9.fc45: normalized package name match | Fedora Rawhide package metadata: bpkg-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | bpkg documentation | https://build2.org/
- dnf - build2 - 0.17.0-9.fc45: normalized package name match | Fedora Rawhide package metadata: build2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Cross-platform build toolchain for developing and packaging C++ code | https://build2.org/
- dnf - build2-doc - 0.17.0-9.fc45: normalized package name match | Fedora Rawhide package metadata: build2-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | build2 documentation | https://build2.org/
- dnf - build2-rpm-macros - 0.17.0-9.fc45: normalized package name match | Fedora Rawhide package metadata: build2-rpm-macros from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | build2 RPM macros | https://build2.org/
- dnf - libbpkg - 0.17.0-9.fc45: normalized package name match | Fedora Rawhide package metadata: libbpkg from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | build2 package dependency manager library | https://build2.org/
- dnf - libbpkg-devel - 0.17.0-9.fc45: normalized package name match | Fedora Rawhide package metadata: libbpkg-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for build2 package dependency manager library | https://build2.org/
- dnf - libbuild2 - 0.17.0-9.fc45: normalized package name match | Fedora Rawhide package metadata: libbuild2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | build2 library | https://build2.org/
- dnf - libbuild2-devel - 0.17.0-9.fc45: normalized package name match | Fedora Rawhide package metadata: libbuild2-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for build2 library | https://build2.org/
- dnf - libbutl - 0.17.0-9.fc45: normalized package name match | Fedora Rawhide package metadata: libbutl from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | build2 utility library | https://build2.org/
- dnf - libbutl-devel - 0.17.0-9.fc45: normalized package name match | Fedora Rawhide package metadata: libbutl-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for build2 utility library | https://build2.org/
- winget - build2.build2.MSVC: normalized package name match | Windows Package Manager source index: build2.build2.MSVC from https://cdn.winget.microsoft.com/cache/source.msix
- winget - build2.build2.MinGW: normalized package name match | Windows Package Manager source index: build2.build2.MinGW from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/build2.yml](https://github.com/mxcl/pkgdb/blob/main/combined/build2.yml)


## Quellen

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
