How To Install jdom.noarch on Amazon Linux 2

In this tutorial we learn how to install jdom.noarch in Amazon Linux 2. jdom.noarch is Java alternative to DOM and SAX

Introduction

In this tutorial we learn how to install jdom.noarch on Amazon Linux 2.

What is jdom.noarch

JDOM is, quite simply, a Java representation of an XML document. JDOM provides a way to represent that document for easy and efficient reading, manipulation, and writing. It has a straightforward API, is a lightweight and fast, and is optimized for the Java programmer. It’s an alternative to DOM and SAX, although it integrates well with both DOM and SAX.

We can use yum to install jdom.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install jdom.noarch.

Install jdom.noarch on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install jdom.noarch using yum by running the following command:

sudo yum -y install jdom.noarch

How To Uninstall jdom.noarch on Amazon Linux 2

To uninstall only the jdom.noarch package we can use the following command:

sudo yum remove jdom.noarch

jdom.noarch Package Contents on Amazon Linux 2

/usr/share/doc/jdom-1.1.3
/usr/share/doc/jdom-1.1.3/CHANGES.txt
/usr/share/doc/jdom-1.1.3/COMMITTERS.txt
/usr/share/doc/jdom-1.1.3/LICENSE.txt
/usr/share/doc/jdom-1.1.3/README.txt
/usr/share/doc/jdom-1.1.3/TODO.txt
/usr/share/java/jdom.jar
/usr/share/maven-fragments/jdom
/usr/share/maven-poms/JPP-jdom.pom

References

Summary

In this tutorial we learn how to install jdom.noarch on Amazon Linux 2 using yum.