How To Install lcov on Fedora 36
Introduction
In this tutorial we learn how to install lcov
on Fedora 36.
What is lcov
LCOV is an extension of GCOV, a GNU tool which provides information about what parts of a program are actually executed (i.e. “covered”) while running a particular test case. The extension consists of a set of PERL scripts which build on the textual GCOV output to implement HTML output and support for large projects.
We can use yum
or dnf
to install lcov
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install lcov.
Install lcov 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 lcov
using dnf
by running the following command:
sudo dnf -y install lcov
Install lcov 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 lcov
using yum
by running the following command:
sudo yum -y install lcov
How To Uninstall lcov on Fedora 36
To uninstall only the lcov
package we can use the following command:
sudo dnf remove lcov
lcov Package Contents on Fedora 36
/etc/lcovrc
/usr/bin/gendesc
/usr/bin/genhtml
/usr/bin/geninfo
/usr/bin/genpng
/usr/bin/lcov
/usr/share/man/man1/gendesc.1.gz
/usr/share/man/man1/genhtml.1.gz
/usr/share/man/man1/geninfo.1.gz
/usr/share/man/man1/genpng.1.gz
/usr/share/man/man1/lcov.1.gz
/usr/share/man/man5/lcovrc.5.gz
References
Summary
In this tutorial we learn how to install lcov
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).