How To Install jsr-305 on Fedora 36

In this tutorial we learn how to install jsr-305 in Fedora 36. jsr-305 is Correctness annotations for Java code

Introduction

In this tutorial we learn how to install jsr-305 on Fedora 36.

What is jsr-305

This package contains reference implementations, test cases, and other documents for Java Specification Request 305 Detection.

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

Install jsr-305 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 jsr-305 using dnf by running the following command:

sudo dnf -y install jsr-305

Install jsr-305 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 jsr-305 using yum by running the following command:

sudo yum -y install jsr-305

How To Uninstall jsr-305 on Fedora 36

To uninstall only the jsr-305 package we can use the following command:

sudo dnf remove jsr-305

jsr-305 Package Contents on Fedora 36

/usr/share/doc/jsr-305
/usr/share/doc/jsr-305/sampleUses
/usr/share/doc/jsr-305/sampleUses/.classpath
/usr/share/doc/jsr-305/sampleUses/.project
/usr/share/doc/jsr-305/sampleUses/pom.xml
/usr/share/doc/jsr-305/sampleUses/src
/usr/share/doc/jsr-305/sampleUses/src/main
/usr/share/doc/jsr-305/sampleUses/src/main/java
/usr/share/doc/jsr-305/sampleUses/src/main/java/CreditCardNumber.java
/usr/share/doc/jsr-305/sampleUses/src/main/java/FixedLengthString.java
/usr/share/doc/jsr-305/sampleUses/src/main/java/LuhnVerification.java
/usr/share/doc/jsr-305/sampleUses/src/main/java/SocialSecurityNumber.java
/usr/share/doc/jsr-305/sampleUses/src/main/java/edu
/usr/share/doc/jsr-305/sampleUses/src/main/java/edu/umd
/usr/share/doc/jsr-305/sampleUses/src/main/java/edu/umd/cs
/usr/share/doc/jsr-305/sampleUses/src/main/java/edu/umd/cs/findbugs
/usr/share/doc/jsr-305/sampleUses/src/main/java/edu/umd/cs/findbugs/DottedClassName.java
/usr/share/doc/jsr-305/sampleUses/src/main/java/edu/umd/cs/findbugs/SlashedClassName.java
/usr/share/doc/jsr-305/sampleUses/src/main/java/edu/umd/cs/findbugs/examples
/usr/share/doc/jsr-305/sampleUses/src/main/java/edu/umd/cs/findbugs/examples/ParametersAreSlashedByDefault.java
/usr/share/doc/jsr-305/sampleUses/src/main/java/edu/umd/cs/findbugs/examples/Test.java
/usr/share/doc/jsr-305/sampleUses/src/main/java/edu/umd/cs/findbugs/examples/TestDefaults.java
/usr/share/doc/jsr-305/sampleUses/src/main/java/java
/usr/share/doc/jsr-305/sampleUses/src/main/java/java/sql
/usr/share/doc/jsr-305/sampleUses/src/main/java/java/sql/ResultSetConcurrency.java
/usr/share/doc/jsr-305/sampleUses/src/main/java/java/sql/ResultSetHoldability.java
/usr/share/doc/jsr-305/sampleUses/src/main/java/java/sql/ResultSetType.java
/usr/share/java/jsr-305.jar
/usr/share/licenses/jsr-305
/usr/share/licenses/jsr-305/LICENSE
/usr/share/licenses/jsr-305/NOTICE-CC-BY
/usr/share/maven-metadata/jsr-305.xml
/usr/share/maven-poms/jsr-305
/usr/share/maven-poms/jsr-305.pom
/usr/share/maven-poms/jsr-305/jsr-305.pom

References

Summary

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