How To Install saxon on CentOS 7

In this tutorial we learn how to install saxon on CentOS 7. saxon is Java XPath, XSLT 2.0 and XQuery implementation

Introduction

In this tutorial we learn how to install saxon on CentOS 7.

What is saxon

Saxon HE is Saxonica’s non-schema-aware implementation of the XPath 2.0, XSLT 2.0, and XQuery 1.0 specifications aligned with the W3C Candidate Recommendation published on 3 November 2005. It is a complete and conformant implementation, providing all the mandatory features of those specifications and nearly all the optional features.

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

Install saxon on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install saxon using yum by running the following command:

sudo yum -y install saxon

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

sudo dnf -y install saxon

How To Uninstall saxon on CentOS 7

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

sudo dnf remove saxon

References

Summary

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