How To Install apache-commons-validator on CentOS 7
Introduction
In this tutorial we learn how to install apache-commons-validator
on CentOS 7.
What is apache-commons-validator
A common issue when receiving data either electronically or from user input is verifying the integrity of the data. This work is repetitive and becomes even more complicated when different sets of validation rules need to be applied to the same set of data based on locale for example. Error messages may also vary by locale. This package attempts to address some of these issues and speed development and maintenance of validation rules.
We can use yum
or dnf
to install apache-commons-validator
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install apache-commons-validator.
Install apache-commons-validator on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install apache-commons-validator
using yum
by running the following command:
Install apache-commons-validator 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.
After updating yum database, We can install apache-commons-validator
using dnf
by running the following command:
How To Uninstall apache-commons-validator on CentOS 7
To uninstall only the apache-commons-validator
package we can use the following command:
References
Summary
In this tutorial we learn how to install apache-commons-validator
on CentOS 7 using yum
and dnf
.