How To Install xmlunit on Fedora 36

In this tutorial we learn how to install xmlunit in Fedora 36. xmlunit is Provides classes to do asserts on xml

Introduction

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

What is xmlunit

XMLUnit provides you with the tools to verify the XML you emit is the one you want to create. It provides helpers to validate against an XML Schema, assert the values of XPath queries or compare XML documents against expected outcomes.

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

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

sudo dnf -y install xmlunit

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

sudo yum -y install xmlunit

How To Uninstall xmlunit on Fedora 36

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

sudo dnf remove xmlunit

xmlunit Package Contents on Fedora 36

/usr/share/doc/xmlunit
/usr/share/doc/xmlunit/CONTRIBUTING.md
/usr/share/doc/xmlunit/README.md
/usr/share/doc/xmlunit/RELEASE_NOTES.md
/usr/share/licenses/xmlunit
/usr/share/licenses/xmlunit/LICENSE
/usr/share/maven-metadata/xmlunit-xmlunit-parent.xml
/usr/share/maven-poms/xmlunit
/usr/share/maven-poms/xmlunit/xmlunit-parent.pom

References

Summary

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