How To Install jnr-ffi on Fedora 36

In this tutorial we learn how to install jnr-ffi in Fedora 36. jnr-ffi is Java Abstracted Foreign Function Layer

Introduction

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

What is jnr-ffi

An abstracted interface to invoking native functions from java

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

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

sudo dnf -y install jnr-ffi

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

sudo yum -y install jnr-ffi

How To Uninstall jnr-ffi on Fedora 36

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

sudo dnf remove jnr-ffi

jnr-ffi Package Contents on Fedora 36

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

References

Summary

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