macOS
brew install bearlocal Homebrew formula metadata
sudo port install BearMacPorts ports tree · devel/Bear/Portfile · Quelle: api.github.com
brew
Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für bear in AI-Agent-Workflows.
Installation
brew install bearlocal Homebrew formula metadata
sudo port install BearMacPorts ports tree · devel/Bear/Portfile · Quelle: api.github.com
sudo apk add bearAlpine Linux edge package indexes · bear · Quelle: dl-cdn.alpinelinux.org
sudo apt install bearDebian stable package indexes · bear · Quelle: deb.debian.org
sudo dnf install bearFedora Rawhide package metadata · bear · Quelle: dl.fedoraproject.org
nix profile install nixpkgs#bearnixpkgs package indexes · pkgs/by-name/be/bear/package.nix · Quelle: api.github.com
sudo pacman -S bearArch Linux sync databases · bear · Quelle: geo.mirror.pkgbuild.com
sudo zypper install BearopenSUSE Tumbleweed package metadata · Bear · Quelle: download.opensuse.org
winget install --id the-sz.Bear -eWindows Package Manager source index · the-sz.Bear · Quelle: cdn.winget.microsoft.com
Überblick
Generate compilation database for clang tooling
Verlauf
Bear generates compile_commands.json compilation databases for Clang tooling by capturing compiler invocations during a build.
The official repository describes Bear as a tool for producing the JSON compilation database used by Clang-based tools to understand compiler flags, include paths, and other translation-unit settings.
Bear exists for build systems that cannot emit a compilation database directly. Its README now advises users to prefer native compilation-database export from CMake, Meson, or Bazel when available, and to use Bear as the compatibility bridge for other builds.
The install documentation notes that Bear has been around for a while, is packaged by many distributions, and is now implemented in Rust, with a preload library still involved in compiler-call interception.
Bear's adoption followed the spread of clang tooling, clangd, clang-tidy, and editor integrations that expect compile_commands.json. The supplied package metadata shows broad packaging across Homebrew, Debian, Ubuntu, Fedora, Alpine, Arch, MacPorts, Nix, Winget, and openSUSE.
The README warns that some package managers still ship the 2.4.x command-line behavior, which is a useful package-history detail: Bear is widely packaged, but users can encounter different major-version interfaces depending on distribution lag.
Modern Bear usage is `bear -- <build-command>`. It writes compile_commands.json to the current working directory after observing the build.
The README calls out platform-specific limitations around interception, including macOS System Integrity Protection and sandboxed builds such as Nix and Flatpak; users are directed to the wiki for workarounds.
Bear is important because compile_commands.json became the lingua franca for C and C++ tooling. Installing Bear can make old Makefile or custom builds visible to clangd and static-analysis tools without rewriting the build system.
For package nerds it is also a reminder that developer tools can be infrastructure glue: a small CLI whose whole job is to translate messy local build behavior into a stable JSON artifact other tools understand.
Sicherheitslage
broad file, network, media, or database tool signal.
blue Risiko · mittel Konfidenz · tool
Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.
Executables
| Befehl | Art | Sichtbarkeit | Hinweis |
|---|---|---|---|
bear | cli | globales Executable | |
bear-driver | cli | globales Executable | |
bear-wrapper | cli | globales Executable |
Aktualität
Diese Signale trennen das Alter der Seitengenerierung, Aktivität des Paketmanagers und Upstream-Release-Vergleich. Versionsrückstand wird nur gemeldet, wenn eine Evidenz-URL und vergleichbare Versionen vorhanden sind.
https://github.com/rizsotto/Bear
Installationsmetadaten
| Paketschlüssel | brew:bear |
|---|---|
| Version | 4.1.5 |
| Paketmanager | Homebrew |
| Paketmanager-Seite | https://formulae.brew.sh/formula/bear |
| Homepage | https://github.com/rizsotto/Bear |
| Repository | https://github.com/rizsotto/Bear |
| Upstream-Dokumentation | https://github.com/rizsotto/Bear#readme |
| Lizenz | GPL-3.0-or-later |
| Quellarchiv | https://github.com/rizsotto/Bear/archive/refs/tags/4.1.5.tar.gz |
| Zuletzt aktualisiert | 2026-07-03T17:56:33Z |
| Pulse | updated |
| Build-Abhängigkeiten | pkgconf, rust |
| Bottle | verfügbar (auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | nicht definiert |
| Dienst | keiner deklariert |
Registry-Fakten
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | bear |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
Source-Datenbank-Treffer
Treffer stammen aus externen Paketmanager-Indizes und bleiben von lokalen Automic-Vault-Paketlinks getrennt.
bear 3.1.6-1
generate compilation database for Clang tooling
https://github.com/rizsotto/Bear
sudo apt install bearlibear 3.1.6-1
generate compilation database for Clang tooling (wrapper library)
https://github.com/rizsotto/Bear
sudo apt install libearbear
nix profile install nixpkgs#bearbear 3.1.3-1build4
generate compilation database for Clang tooling
https://github.com/rizsotto/Bear
sudo apt install bearlibear 3.1.3-1build4
generate compilation database for Clang tooling (wrapper library)
https://github.com/rizsotto/Bear
sudo apt install libearbear 4.1.4-r0
Tool that generates a compilation database for clang tooling
https://github.com/rizsotto/Bear
sudo apk add bearbear-doc 4.1.4-r0
Tool that generates a compilation database for clang tooling (documentation)
https://github.com/rizsotto/Bear
sudo apk add bear-docbear 4.1.4-1.fc45
Tool that generates a compilation database for clang tooling
https://github.com/rizsotto/bear
sudo dnf install bearbear 4.1.4-1
A tool to generate compilation database for clang tooling
https://github.com/rizsotto/Bear
sudo pacman -S bearBear 3.1.6-1.20
Tool to generate compilation database for clang tooling
https://github.com/rizsotto/Bear
sudo zypper install BearBear
sudo port install Bearthe-sz.Bear
winget install --id the-sz.Bear -eQuellspur
Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.
View the package source record on GitHub.