How To Install apache-commons-jexl on CentOS 7

In this tutorial we learn how to install apache-commons-jexl on CentOS 7. apache-commons-jexl is Java Expression Language (JEXL)

Introduction

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

What is apache-commons-jexl

Java Expression Language (JEXL) is an expression language engine which can be embedded in applications and frameworks. JEXL is inspired by Jakarta Velocity and the Expression Language defined in the JavaServer Pages Standard Tag Library version 1.1 (JSTL) and JavaServer Pages version 2.0 (JSP). While inspired by JSTL EL, it must be noted that JEXL is not a compatible implementation of EL as defined in JSTL 1.1 (JSR-052) or JSP 2.0 (JSR-152). For a compatible implementation of these specifications, see the Commons EL project. JEXL attempts to bring some of the lessons learned by the Velocity community about expression languages in templating to a wider audience. Commons Jelly needed Velocity-ish method access, it just had to have it.

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

Install apache-commons-jexl on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install apache-commons-jexl

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

sudo dnf -y install apache-commons-jexl

How To Uninstall apache-commons-jexl on CentOS 7

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

sudo dnf remove apache-commons-jexl

References

Summary

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