How To Install dom4j.noarch on Amazon Linux 2

In this tutorial we learn how to install dom4j.noarch in Amazon Linux 2. dom4j.noarch is Open Source XML framework for Java

Introduction

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

What is dom4j.noarch

dom4j is an Open Source XML framework for Java. dom4j allows you to read, write, navigate, create and modify XML documents. dom4j integrates with DOM and SAX and is seamlessly integrated with full XPath support.

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

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

sudo yum -y install dom4j.noarch

How To Uninstall dom4j.noarch on Amazon Linux 2

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

sudo yum remove dom4j.noarch

dom4j.noarch Package Contents on Amazon Linux 2

/usr/share/doc/dom4j-1.6.1
/usr/share/doc/dom4j-1.6.1/LICENSE.txt
/usr/share/java/dom4j.jar
/usr/share/maven-fragments/dom4j
/usr/share/maven-poms/JPP-dom4j.pom

References

Summary

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