How To Install forbidden-apis on Fedora 36
Introduction
In this tutorial we learn how to install forbidden-apis
on Fedora 36.
What is forbidden-apis
Allows to parse Java byte code to find invocations of method/class/field signatures and fail build (Apache Ant, Apache Maven, or Gradle).
We can use yum
or dnf
to install forbidden-apis
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install forbidden-apis.
Install forbidden-apis 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 forbidden-apis
using dnf
by running the following command:
sudo dnf -y install forbidden-apis
Install forbidden-apis 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 forbidden-apis
using yum
by running the following command:
sudo yum -y install forbidden-apis
How To Uninstall forbidden-apis on Fedora 36
To uninstall only the forbidden-apis
package we can use the following command:
sudo dnf remove forbidden-apis
forbidden-apis Package Contents on Fedora 36
/etc/ant.d/forbidden-apis
/usr/share/doc/forbidden-apis
/usr/share/doc/forbidden-apis/README.md
/usr/share/java/forbidden-apis
/usr/share/java/forbidden-apis/forbiddenapis.jar
/usr/share/licenses/forbidden-apis
/usr/share/licenses/forbidden-apis/LICENSE.txt
/usr/share/licenses/forbidden-apis/NOTICE.txt
/usr/share/maven-metadata/forbidden-apis.xml
/usr/share/maven-poms/forbidden-apis
/usr/share/maven-poms/forbidden-apis/forbiddenapis.pom
References
Summary
In this tutorial we learn how to install forbidden-apis
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).