macOS
brew install bearlocal Homebrew formula metadata
sudo port install BearMacPorts ports tree · devel/Bear/Portfile · Source: api.github.com
brew
Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de bear pour les workflows d'agents IA.
installation
brew install bearlocal Homebrew formula metadata
sudo port install BearMacPorts ports tree · devel/Bear/Portfile · Source: api.github.com
sudo apk add bearAlpine Linux edge package indexes · bear · Source: dl-cdn.alpinelinux.org
sudo apt install bearDebian stable package indexes · bear · Source: deb.debian.org
sudo dnf install bearFedora Rawhide package metadata · bear · Source: dl.fedoraproject.org
nix profile install nixpkgs#bearnixpkgs package indexes · pkgs/by-name/be/bear/package.nix · Source: api.github.com
sudo pacman -S bearArch Linux sync databases · bear · Source: geo.mirror.pkgbuild.com
sudo zypper install BearopenSUSE Tumbleweed package metadata · Bear · Source: download.opensuse.org
winget install --id the-sz.Bear -eWindows Package Manager source index · the-sz.Bear · Source: cdn.winget.microsoft.com
aperçu
Generate compilation database for clang tooling
historique
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.
posture de sécurité
broad file, network, media, or database tool signal.
risque blue · confiance moyen · tool
Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.
exécutables
| Commande | Type | Exposition | Note |
|---|---|---|---|
bear | cli | exécutable global | |
bear-driver | cli | exécutable global | |
bear-wrapper | cli | exécutable global |
fraîcheur
Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.
https://github.com/rizsotto/Bear
métadonnées d'installation
| Clé du paquet | brew:bear |
|---|---|
| Version | 4.1.5 |
| Gestionnaire de paquets | Homebrew |
| Page du gestionnaire de paquets | https://formulae.brew.sh/formula/bear |
| Page d'accueil | https://github.com/rizsotto/Bear |
| Dépôt | https://github.com/rizsotto/Bear |
| Docs amont | https://github.com/rizsotto/Bear#readme |
| Licence | GPL-3.0-or-later |
| Archive source | https://github.com/rizsotto/Bear/archive/refs/tags/4.1.5.tar.gz |
| Dernière mise à jour | 2026-07-03T17:56:33Z |
| Pulse | updated |
| Dépendances de compilation | pkgconf, rust |
| Bouteille | disponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| post-install Homebrew | non défini |
| Service | aucun déclaré |
faits du registre
| 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 |
|
correspondances dans les bases sources
Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.
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 -episte source
Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.