How To Install csmith on Fedora 34
Introduction
In this tutorial we learn how to install csmith
on Fedora 34.
What is csmith
Csmith is a tool that can generate random C programs that statically and dynamically conform to the C99 standard. It is useful for stress-testing compilers, static analyzers, and other tools that process C code csmith 2.4.0 1.fc34 x86_64 384 k csmith-2.4.0-1.fc34.src.rpm fedora Tool to generate random C programs for compiler testing http BSD and GPLv2+ and LGPLv2+ Csmith is a tool that can generate random C programs that statically and dynamically conform to the C99 standard. It is useful for stress-testing compilers, static analyzers, and other tools that process C code
We can use yum
or dnf
to install csmith
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install csmith.
Install csmith 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 csmith
using dnf
by running the following command:
sudo dnf -y install csmith
Install csmith 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 csmith
using yum
by running the following command:
sudo yum -y install csmith
How To Uninstall csmith on Fedora 34
To uninstall only the csmith
package we can use the following command:
sudo dnf remove csmith
csmith Package Contents on Fedora 34
/usr/bin/compiler_test.pl
/usr/bin/csmith
/usr/bin/launchn.pl
/usr/lib/.build-id
/usr/lib/.build-id/2f
/usr/lib/.build-id/2f/36f5105969d10e1638b513a2cecf2f5c2959aa
/usr/lib/.build-id/68
/usr/lib/.build-id/68/bf0c600c250c0ccb264e43b7513850cd6b5775
/usr/lib/libcsmith.so.0
/usr/lib/libcsmith.so.0.0.0
/usr/share/doc/csmith
/usr/share/doc/csmith/AUTHORS
/usr/share/doc/csmith/ChangeLog
/usr/share/doc/csmith/README.md
/usr/share/doc/csmith/TODO
/usr/share/doc/csmith/compiler_test.in
/usr/share/doc/csmith/probabilities.txt
/usr/share/licenses/csmith
/usr/share/licenses/csmith/COPYING
/usr/bin/compiler_test.pl
/usr/bin/csmith
/usr/bin/launchn.pl
/usr/lib/.build-id
/usr/lib/.build-id/87
/usr/lib/.build-id/87/f23a5d14c3130e408102ac099e71725b749dcd
/usr/lib/.build-id/8e
/usr/lib/.build-id/8e/a5afc6e7b914ccf8f2c4795e3b4e333ab9b870
/usr/lib64/libcsmith.so.0
/usr/lib64/libcsmith.so.0.0.0
/usr/share/doc/csmith
/usr/share/doc/csmith/AUTHORS
/usr/share/doc/csmith/ChangeLog
/usr/share/doc/csmith/README.md
/usr/share/doc/csmith/TODO
/usr/share/doc/csmith/compiler_test.in
/usr/share/doc/csmith/probabilities.txt
/usr/share/licenses/csmith
/usr/share/licenses/csmith/COPYING
References
- [csmith website](http://embed.cs.utah.edu/csmith/ http://embed.cs.utah.edu/csmith/)
Summary
In this tutorial we learn how to install csmith
on Fedora 34 using yum and dnf.