How To Install kcov on Fedora 36

In this tutorial we learn how to install kcov in Fedora 36. kcov is Code coverage tool without special compilation options

Introduction

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

What is kcov

Kcov is a code coverage tester for compiled programs, Python scripts and shell scripts. It allows collecting code coverage information from executables without special command-line arguments, and continuously produces output from long-running applications.

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

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

sudo dnf -y install kcov

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

sudo yum -y install kcov

How To Uninstall kcov on Fedora 36

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

sudo dnf remove kcov

kcov Package Contents on Fedora 36

/usr/bin/kcov
/usr/bin/kcov-system-daemon
/usr/lib/.build-id
/usr/lib/.build-id/0d
/usr/lib/.build-id/0d/f75ba3057f9a823136ce5e34bba1759a03da4e
/usr/lib/.build-id/b7
/usr/lib/.build-id/b7/ae620f8b14cea85d6235c5b83b92ae5fabbe8a
/usr/share/doc/kcov
/usr/share/doc/kcov/COPYING
/usr/share/doc/kcov/COPYING.externals
/usr/share/doc/kcov/ChangeLog
/usr/share/licenses/kcov
/usr/share/licenses/kcov/COPYING
/usr/share/licenses/kcov/COPYING.externals
/usr/share/man/man1/kcov.1.gz

References

Summary

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