How To Install javapoet on Fedora 36

In this tutorial we learn how to install javapoet in Fedora 36. javapoet is A Java API for generating .java source files

Introduction

In this tutorial we learn how to install javapoet on Fedora 36.

What is javapoet

A utility class which aids in generating Java source files.

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

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

sudo dnf -y install javapoet

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

sudo yum -y install javapoet

How To Uninstall javapoet on Fedora 36

To uninstall only the javapoet package we can use the following command:

sudo dnf remove javapoet

javapoet Package Contents on Fedora 36

/usr/share/doc/javapoet
/usr/share/doc/javapoet/CHANGELOG.md
/usr/share/doc/javapoet/README.md
/usr/share/java/javapoet.jar
/usr/share/licenses/javapoet
/usr/share/licenses/javapoet/LICENSE.txt
/usr/share/maven-metadata/javapoet.xml
/usr/share/maven-poms/javapoet.pom

References

Summary

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