How To Install jdom2 on Fedora 36

In this tutorial we learn how to install jdom2 in Fedora 36. jdom2 is Java manipulation of XML made easy

Introduction

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

What is jdom2

JDOM is a Java-oriented object model which models XML documents. It provides a Java-centric means of generating and manipulating XML documents. While JDOM inter-operates well with existing standards such as the Simple API for XML (SAX) and the Document Object Model (DOM), it is not an abstraction layer or enhancement to those APIs. Rather, it seeks to provide a robust, light-weight means of reading and writing XML data without the complex and memory-consumptive options that current API offerings provide.

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

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

sudo dnf -y install jdom2

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

sudo yum -y install jdom2

How To Uninstall jdom2 on Fedora 36

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

sudo dnf remove jdom2

jdom2 Package Contents on Fedora 36

/usr/share/doc/jdom2
/usr/share/doc/jdom2/CHANGES.txt
/usr/share/doc/jdom2/COMMITTERS.txt
/usr/share/doc/jdom2/README.txt
/usr/share/doc/jdom2/TODO.txt
/usr/share/java/jdom2
/usr/share/java/jdom2/jdom2.jar
/usr/share/licenses/jdom2
/usr/share/licenses/jdom2/LICENSE.txt
/usr/share/maven-metadata/jdom2.xml
/usr/share/maven-poms/jdom2
/usr/share/maven-poms/jdom2/jdom2.pom

References

Summary

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