How To Install truth on Fedora 36

In this tutorial we learn how to install truth in Fedora 36. truth is An assertion framework for Java unit tests

Introduction

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

What is truth

Truth is a library provides alternative ways to express assertions in unit tests. It can be used as a replacement for JUnit’s assertions or FEST or it can be used alongside where other approaches seem more suitable.

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

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

sudo dnf -y install truth

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

sudo yum -y install truth

How To Uninstall truth on Fedora 36

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

sudo dnf remove truth

truth Package Contents on Fedora 36

/usr/share/doc/truth
/usr/share/doc/truth/README.md
/usr/share/java/truth
/usr/share/java/truth/truth-java8-extension.jar
/usr/share/java/truth/truth.jar
/usr/share/licenses/truth
/usr/share/licenses/truth/LICENSE
/usr/share/maven-metadata/truth.xml
/usr/share/maven-poms/truth
/usr/share/maven-poms/truth/truth-extensions-parent.pom
/usr/share/maven-poms/truth/truth-java8-extension.pom
/usr/share/maven-poms/truth/truth-parent.pom
/usr/share/maven-poms/truth/truth.pom

References

Summary

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