How To Install maven-enforcer-rules on Fedora 36

In this tutorial we learn how to install maven-enforcer-rules in Fedora 36. maven-enforcer-rules is Enforcer Rules

Introduction

In this tutorial we learn how to install maven-enforcer-rules on Fedora 36.

What is maven-enforcer-rules

This component contains the standard Enforcer Rules.

We can use yum or dnf to install maven-enforcer-rules on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install maven-enforcer-rules.

Install maven-enforcer-rules on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install maven-enforcer-rules using dnf by running the following command:

sudo dnf -y install maven-enforcer-rules

Install maven-enforcer-rules on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install maven-enforcer-rules using yum by running the following command:

sudo yum -y install maven-enforcer-rules

How To Uninstall maven-enforcer-rules on Fedora 36

To uninstall only the maven-enforcer-rules package we can use the following command:

sudo dnf remove maven-enforcer-rules

maven-enforcer-rules Package Contents on Fedora 36

/usr/share/java/maven-enforcer
/usr/share/java/maven-enforcer/enforcer-rules.jar
/usr/share/maven-metadata/maven-enforcer-enforcer-rules.xml
/usr/share/maven-poms/maven-enforcer
/usr/share/maven-poms/maven-enforcer/enforcer-rules.pom

References

Summary

In this tutorial we learn how to install maven-enforcer-rules on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).