Bear Installation On A Debian, Ubuntu, Kali, Fedora, Raspbian And MacOS

Bear Installation On A Debian, Ubuntu, Kali, Fedora, Raspbian And MacOS

bear

generate compilation database for Clang tooling

Maintainer: Sebastian Ramacher



Section: devel

Install bear

  • Debian apt-get install bear Click to copy
  • Ubuntu apt-get install bear Click to copy
  • Kali Linux apt-get install bear Click to copy
  • Fedora dnf install bear Click to copy
  • Raspbian apt-get install bear Click to copy
  • macOS brew install bear Click to copy

bear

generate compilation database for Clang tooling

Bear records the flags passed to the compiler for each translation unit and stores them in a JSON file. This file can be used by Clang's tooling interface and programs like clang-check to process a translation unit. cmake supports the generation of JSON compilation databases out of the box. For any other build system that does not support this, Bear can be used instead to intercept the invocation of the compiler.

Installation of latest bear command is available for Debian, Ubuntu, Kali, Fedora, Raspbian and macOS. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2026 latest package from the repository and install it in your computer/server.