How To Install bear on Fedora 36

In this tutorial we learn how to install bear in Fedora 36. bear is Tool that generates a compilation database for clang tooling

Introduction

In this tutorial we learn how to install bear on Fedora 36.

What is bear

Build ear produces compilation database in JSON format. This database describes how single compilation unit should be processed and can be used by Clang tooling.

We can use yum or dnf to install bear on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install bear.

Install bear on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install bear using dnf by running the following command:

sudo dnf -y install bear

Install bear on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install bear using yum by running the following command:

sudo yum -y install bear

How To Uninstall bear on Fedora 36

To uninstall only the bear package we can use the following command:

sudo dnf remove bear

bear Package Contents on Fedora 36

/usr/bin/bear
/usr/bin/citnames
/usr/bin/intercept
/usr/lib/.build-id
/usr/lib/.build-id/05
/usr/lib/.build-id/05/a251c1268fb5fdff80b11f80333fc89148c3b4
/usr/lib/.build-id/8a
/usr/lib/.build-id/8a/3c922c0290088f89abf251085c360a07e96f94
/usr/lib/.build-id/b7
/usr/lib/.build-id/b7/6ff7428f5c2a666abb4efc1000fb001fbb4b4d
/usr/lib/.build-id/de
/usr/lib/.build-id/de/b255201d49c4d91b2481dfb973a0242b595a3d
/usr/lib/.build-id/f6
/usr/lib/.build-id/f6/87a05e901701210d9d02e79d56fa318afc4c68
/usr/lib64/bear
/usr/lib64/bear/libexec.so
/usr/lib64/bear/wrapper
/usr/lib64/bear/wrapper.d
/usr/lib64/bear/wrapper.d/ar
/usr/lib64/bear/wrapper.d/as
/usr/lib64/bear/wrapper.d/bison
/usr/lib64/bear/wrapper.d/c++
/usr/lib64/bear/wrapper.d/cc
/usr/lib64/bear/wrapper.d/clang
/usr/lib64/bear/wrapper.d/clang++
/usr/lib64/bear/wrapper.d/cpp
/usr/lib64/bear/wrapper.d/ctangle
/usr/lib64/bear/wrapper.d/cweave
/usr/lib64/bear/wrapper.d/f77
/usr/lib64/bear/wrapper.d/flex
/usr/lib64/bear/wrapper.d/g++
/usr/lib64/bear/wrapper.d/gcc
/usr/lib64/bear/wrapper.d/ld
/usr/lib64/bear/wrapper.d/lex
/usr/lib64/bear/wrapper.d/lint
/usr/lib64/bear/wrapper.d/m2c
/usr/lib64/bear/wrapper.d/makeinfo
/usr/lib64/bear/wrapper.d/nm
/usr/lib64/bear/wrapper.d/objcopy
/usr/lib64/bear/wrapper.d/objdump
/usr/lib64/bear/wrapper.d/pc
/usr/lib64/bear/wrapper.d/ranlib
/usr/lib64/bear/wrapper.d/readelf
/usr/lib64/bear/wrapper.d/strip
/usr/lib64/bear/wrapper.d/tangle
/usr/lib64/bear/wrapper.d/tex
/usr/lib64/bear/wrapper.d/tex2dvi
/usr/lib64/bear/wrapper.d/weave
/usr/lib64/bear/wrapper.d/yacc
/usr/share/doc/bear
/usr/share/doc/bear/CODE_OF_CONDUCT.md
/usr/share/doc/bear/CONTRIBUTING.md
/usr/share/doc/bear/COPYING
/usr/share/doc/bear/INSTALL.md
/usr/share/doc/bear/README.md
/usr/share/licenses/bear
/usr/share/licenses/bear/COPYING
/usr/share/man/man1/bear.1.gz
/usr/share/man/man1/citnames.1.gz
/usr/share/man/man1/intercept.1.gz

References

Summary

In this tutorial we learn how to install bear on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).