How To Install xmlgraphics-commons on CentOS 7

In this tutorial we learn how to install xmlgraphics-commons on CentOS 7. xmlgraphics-commons is XML Graphics Commons

Introduction

In this tutorial we learn how to install xmlgraphics-commons on CentOS 7.

What is xmlgraphics-commons

Apache XML Graphics Commons is a library that consists of several reusable components used by Apache Batik and Apache FOP. Many of these components can easily be used separately outside the domains of SVG and XSL-FO. You will find components such as a PDF library, an RTF library, Graphics2D implementations that let you generate PDF & PostScript files, and much more.

We can use yum or dnf to install xmlgraphics-commons on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install xmlgraphics-commons.

Install xmlgraphics-commons on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install xmlgraphics-commons using yum by running the following command:

sudo yum -y install xmlgraphics-commons

Install xmlgraphics-commons on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install xmlgraphics-commons using dnf by running the following command:

sudo dnf -y install xmlgraphics-commons

How To Uninstall xmlgraphics-commons on CentOS 7

To uninstall only the xmlgraphics-commons package we can use the following command:

sudo dnf remove xmlgraphics-commons

References

Summary

In this tutorial we learn how to install xmlgraphics-commons on CentOS 7 using yum and dnf.