How To Install cbmc on Fedora 34
Introduction
In this tutorial we learn how to install cbmc
on Fedora 34.
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 34. In this tutorial we discuss both methods but you only need to choose one of method to install cbmc.
Install cbmc on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install cbmc
using dnf
by running the following command:
sudo dnf -y install cbmc
Install cbmc on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
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 34
To uninstall only the cbmc
package we can use the following command:
sudo dnf remove cbmc
cbmc Package Contents on Fedora 34
/usr/bin/cbmc
/usr/bin/cbmc-convert-output
/usr/bin/csexec-cbmc
/usr/bin/goto-analyzer
/usr/bin/goto-cc
/usr/bin/goto-clang
/usr/bin/goto-diff
/usr/bin/goto-gcc
/usr/bin/goto-harness
/usr/bin/goto-instrument
/usr/bin/goto-ld
/usr/bin/symtab2gb
/usr/lib/.build-id
/usr/lib/.build-id/06
/usr/lib/.build-id/06/4919ee64225bbef916813ed74ec9a1b5488c5a
/usr/lib/.build-id/15
/usr/lib/.build-id/15/d4ca3a80a80521ad39714fd0d578a62e6df506
/usr/lib/.build-id/21
/usr/lib/.build-id/21/0ed8011f8141460cf1732951c0f170dae930b1
/usr/lib/.build-id/3b
/usr/lib/.build-id/3b/d5958c54e26f27c9e2190ffdbcf166520293cf
/usr/lib/.build-id/60
/usr/lib/.build-id/60/6951e0b481811eb06aff5855560be9af09e0de
/usr/lib/.build-id/65
/usr/lib/.build-id/65/438ca232c01ec27644a3aab4844eb0380becad
/usr/lib/.build-id/fd
/usr/lib/.build-id/fd/9c20040c620c215528199ae4bd266b120a3c45
/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
/usr/bin/cbmc
/usr/bin/cbmc-convert-output
/usr/bin/csexec-cbmc
/usr/bin/goto-analyzer
/usr/bin/goto-cc
/usr/bin/goto-clang
/usr/bin/goto-diff
/usr/bin/goto-gcc
/usr/bin/goto-harness
/usr/bin/goto-instrument
/usr/bin/goto-ld
/usr/bin/symtab2gb
/usr/lib/.build-id
/usr/lib/.build-id/16
/usr/lib/.build-id/16/858ad101b80b16f594decccf78d2fb27494068
/usr/lib/.build-id/17
/usr/lib/.build-id/17/c84affe4e6394d6d3fcf5969541e3277a58f05
/usr/lib/.build-id/18
/usr/lib/.build-id/18/952c75f6337ca741b30a381d193ccedb3ceada
/usr/lib/.build-id/3f
/usr/lib/.build-id/3f/5ad80d0a049b710fbc3d23d61b87a1c61521f6
/usr/lib/.build-id/55
/usr/lib/.build-id/55/db76a5e80d0d898bbc95db7538ea564975ccfe
/usr/lib/.build-id/9b
/usr/lib/.build-id/9b/59eb72049a09ca3b9e7ba60656096e9039a399
/usr/lib/.build-id/fd
/usr/lib/.build-id/fd/13fa6c2fe52a01888ec10ff590fe76279f3ab8
/usr/share/doc/cbmc
/usr/share/doc/cbmc/CHANGELOG
/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 34 using yum and dnf.