How To Install owasp-java-encoder on Rocky Linux 8
Introduction
In this tutorial we learn how to install owasp-java-encoder
on Rocky Linux 8.
What is owasp-java-encoder
The OWASP Encoders package is a collection of high-performance low-overhead contextual encoders, that when utilized correctly, is an effective tool in preventing Web Application security vulnerabilities such as Cross-Site Scripting.
We can use yum
or dnf
to install owasp-java-encoder
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install owasp-java-encoder.
Install owasp-java-encoder on Rocky Linux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install owasp-java-encoder
using dnf
by running the following command:
sudo dnf -y install owasp-java-encoder
Install owasp-java-encoder on Rocky Linux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install owasp-java-encoder
using yum
by running the following command:
sudo yum -y install owasp-java-encoder
How To Uninstall owasp-java-encoder on Rocky Linux 8
To uninstall only the owasp-java-encoder
package we can use the following command:
sudo dnf remove owasp-java-encoder
owasp-java-encoder Package Contents on Rocky Linux 8
/usr/share/doc/owasp-java-encoder
/usr/share/doc/owasp-java-encoder/README.md
/usr/share/java/owasp-java-encoder
/usr/share/java/owasp-java-encoder/encoder.jar
/usr/share/licenses/owasp-java-encoder
/usr/share/licenses/owasp-java-encoder/LICENSE
/usr/share/maven-metadata/owasp-java-encoder.xml
/usr/share/maven-poms/owasp-java-encoder
/usr/share/maven-poms/owasp-java-encoder/encoder-parent.pom
/usr/share/maven-poms/owasp-java-encoder/encoder.pom
References
Summary
In this tutorial we learn how to install owasp-java-encoder
on Rocky Linux 8 using yum and dnf.