How To Install jacoco on Fedora 34

jacoco is Java Code Coverage for Eclipse

Introduction

In this tutorial we learn how to install jacoco on Fedora 34.

What is jacoco

JaCoCo is a free code coverage library for Java, which has been created by the EclEmma team based on the lessons learned from using and integration existing libraries over the last five years.

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

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

sudo dnf -y install jacoco

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

sudo yum -y install jacoco

How To Uninstall jacoco on Fedora 34

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

sudo dnf remove jacoco

jacoco Package Contents on Fedora 34

/etc/ant.d/jacoco
/usr/share/doc/jacoco
/usr/share/doc/jacoco/about.html
/usr/share/doc/jacoco/doc
/usr/share/doc/jacoco/doc/agent.html
/usr/share/doc/jacoco/doc/ant.html
/usr/share/doc/jacoco/doc/api.html
/usr/share/doc/jacoco/doc/build.html
/usr/share/doc/jacoco/doc/changes.html
/usr/share/doc/jacoco/doc/classids.html
/usr/share/doc/jacoco/doc/conventions.html
/usr/share/doc/jacoco/doc/counters.html
/usr/share/doc/jacoco/doc/empty.html
/usr/share/doc/jacoco/doc/environment.html
/usr/share/doc/jacoco/doc/epl-v10.html
/usr/share/doc/jacoco/doc/faq.html
/usr/share/doc/jacoco/doc/flow.html
/usr/share/doc/jacoco/doc/implementation.html
/usr/share/doc/jacoco/doc/index.html
/usr/share/doc/jacoco/doc/integrations.html
/usr/share/doc/jacoco/doc/license.html
/usr/share/doc/jacoco/doc/maven.html
/usr/share/doc/jacoco/doc/mission.html
/usr/share/doc/jacoco/doc/offline.html
/usr/share/doc/jacoco/doc/repo.html
/usr/share/doc/jacoco/doc/resources
/usr/share/doc/jacoco/doc/resources/doc.css
/usr/share/doc/jacoco/doc/resources/extern.gif
/usr/share/doc/jacoco/doc/resources/flow-cond-probe.png
/usr/share/doc/jacoco/doc/resources/flow-cond.png
/usr/share/doc/jacoco/doc/resources/flow-example.png
/usr/share/doc/jacoco/doc/resources/flow-exit-probe.png
/usr/share/doc/jacoco/doc/resources/flow-exit.png
/usr/share/doc/jacoco/doc/resources/flow-goto-probe.png
/usr/share/doc/jacoco/doc/resources/flow-goto.png
/usr/share/doc/jacoco/doc/resources/flow-sequence-probe.png
/usr/share/doc/jacoco/doc/resources/flow-sequence.png
/usr/share/doc/jacoco/doc/resources/group.gif
/usr/share/doc/jacoco/doc/resources/implementation.png
/usr/share/doc/jacoco/doc/resources/jar.gif
/usr/share/doc/jacoco/doc/resources/report.gif
/usr/share/doc/jacoco/doc/resources/source.gif
/usr/share/doc/jacoco/doc/resources/test.gif
/usr/share/doc/jacoco/doc/resources/testsuite.gif
/usr/share/doc/jacoco/doc/support.html
/usr/share/doc/jacoco/doc/team.html
/usr/share/doc/jacoco/index.html
/usr/share/java/jacoco
/usr/share/java/jacoco/org.jacoco.agent-runtime.jar
/usr/share/java/jacoco/org.jacoco.agent.jar
/usr/share/java/jacoco/org.jacoco.agent.rt.jar
/usr/share/java/jacoco/org.jacoco.ant.jar
/usr/share/java/jacoco/org.jacoco.cli.jar
/usr/share/java/jacoco/org.jacoco.core.jar
/usr/share/java/jacoco/org.jacoco.report.jar
/usr/share/maven-metadata/jacoco.xml
/usr/share/maven-poms/jacoco
/usr/share/maven-poms/jacoco/org.jacoco.agent.pom
/usr/share/maven-poms/jacoco/org.jacoco.agent.rt.pom
/usr/share/maven-poms/jacoco/org.jacoco.ant.pom
/usr/share/maven-poms/jacoco/org.jacoco.build.pom
/usr/share/maven-poms/jacoco/org.jacoco.cli.pom
/usr/share/maven-poms/jacoco/org.jacoco.core.pom
/usr/share/maven-poms/jacoco/org.jacoco.report.pom
/usr/share/maven-poms/jacoco/root.pom

References

Summary

In this tutorial we learn how to install jacoco on Fedora 34 using yum and dnf.