How To Install cbmc on Fedora 36

In this tutorial we learn how to install cbmc in Fedora 36. cbmc is Bounded Model Checker for ANSI-C and C++ programs

Introduction

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

What is cbmc

CBMC generates traces that demonstrate how an assertion can be violated, or proves that the assertion cannot be violated within a given number of loop iterations.

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

Install cbmc 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 cbmc using dnf by running the following command:

sudo dnf -y install cbmc

Install cbmc 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 cbmc using yum by running the following command:

sudo yum -y install cbmc

How To Uninstall cbmc on Fedora 36

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

sudo dnf remove cbmc

cbmc Package Contents on Fedora 36

/usr/bin/cbmc
/usr/bin/cbmc-convert-output
/usr/bin/crangler
/usr/bin/csexec-cbmc
/usr/bin/goto-analyzer
/usr/bin/goto-cc
/usr/bin/goto-diff
/usr/bin/goto-gcc
/usr/bin/goto-harness
/usr/bin/goto-instrument
/usr/bin/goto-ld
/usr/bin/ls_parse.py
/usr/bin/symtab2gb
/usr/lib/.build-id
/usr/lib/.build-id/04
/usr/lib/.build-id/04/6315276377c1d2b67a67c43d99c7efb26ac661
/usr/lib/.build-id/04/7e5af67d1813753fec79169db55e2275046996
/usr/lib/.build-id/65
/usr/lib/.build-id/65/f3bd2fbaf3dfd4df9d8092b0102137ff18deba
/usr/lib/.build-id/94
/usr/lib/.build-id/94/6f5bfe775af980cf5974128f3da7e4be26efd1
/usr/lib/.build-id/b1
/usr/lib/.build-id/b1/1b6e29b895c7680d1b95e701cd87d1c43ed3ed
/usr/lib/.build-id/e9
/usr/lib/.build-id/e9/6629872310649a4cf667d462ff8189cd4ae9d4
/usr/lib/.build-id/f4
/usr/lib/.build-id/f4/5002bc0d9d02424759048a3487d18398086bfd
/usr/lib/.build-id/fb
/usr/lib/.build-id/fb/39685216e21c0add9d109f022dd7e572ec92ee
/usr/share/doc/cbmc
/usr/share/doc/cbmc/README.md
/usr/share/licenses/cbmc
/usr/share/licenses/cbmc/LICENSE
/usr/share/man/man1/cbmc.1.gz
/usr/share/man/man1/goto-analyzer.1.gz
/usr/share/man/man1/goto-cc.1.gz
/usr/share/man/man1/goto-diff.1.gz
/usr/share/man/man1/goto-gcc.1.gz
/usr/share/man/man1/goto-harness.1.gz
/usr/share/man/man1/goto-instrument.1.gz
/usr/share/man/man1/goto-ld.1.gz

References

Summary

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