How To Install jnr-netdb on Fedora 36

In this tutorial we learn how to install jnr-netdb in Fedora 36. jnr-netdb is Network services database access for java

Introduction

In this tutorial we learn how to install jnr-netdb on Fedora 36.

What is jnr-netdb

jnr-netdb is a java interface to getservbyname(3), getservbyport(3)

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

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

sudo dnf -y install jnr-netdb

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

sudo yum -y install jnr-netdb

How To Uninstall jnr-netdb on Fedora 36

To uninstall only the jnr-netdb package we can use the following command:

sudo dnf remove jnr-netdb

jnr-netdb Package Contents on Fedora 36

/usr/share/java/jnr-netdb
/usr/share/java/jnr-netdb/jnr-netdb.jar
/usr/share/licenses/jnr-netdb
/usr/share/licenses/jnr-netdb/LICENSE
/usr/share/maven-metadata/jnr-netdb.xml
/usr/share/maven-poms/jnr-netdb
/usr/share/maven-poms/jnr-netdb/jnr-netdb.pom

References

Summary

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