How To Install fop.noarch on Amazon Linux 2

In this tutorial we learn how to install fop.noarch in Amazon Linux 2. fop.noarch is XSL-driven print formatter

Introduction

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

What is fop.noarch

FOP is the world’s first print formatter driven by XSL formatting objects. It is a Java application that reads a formatting object tree and then turns it into a PDF document. The formatting object tree, can be in the form of an XML document (output by an XSLT engine like XT or Xalan) or can be passed in memory as a DOM Document or (in the case of XT) SAX events.

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

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

sudo yum -y install fop.noarch

How To Uninstall fop.noarch on Amazon Linux 2

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

sudo yum remove fop.noarch

fop.noarch Package Contents on Amazon Linux 2

/usr/bin/fop
/usr/share/doc/fop-1.1
/usr/share/doc/fop-1.1/LICENSE
/usr/share/doc/fop-1.1/LICENSE-1.1
/usr/share/doc/fop-1.1/NOTICE
/usr/share/doc/fop-1.1/README
/usr/share/fop
/usr/share/fop/conf
/usr/share/fop/conf/fop.xconf
/usr/share/java/fop.jar
/usr/share/java/pdf-transcoder.jar
/usr/share/maven-fragments/fop
/usr/share/maven-poms/JPP-fop.pom

References

Summary

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