How To Install jna on Rocky Linux 8
Introduction
In this tutorial we learn how to install jna
on Rocky Linux 8.
What is jna
JNA provides Java programs easy access to native shared libraries (DLLs on Windows) without writing anything but Java code. JNA’s design aims to provide native access in a natural way with a minimum of effort. No boilerplate or generated code is required. While some attention is paid to performance, correctness and ease of use take priority.
We can use yum
or dnf
to install jna
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install jna.
Install jna on Rocky Linux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install jna
using dnf
by running the following command:
sudo dnf -y install jna
Install jna on Rocky Linux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install jna
using yum
by running the following command:
sudo yum -y install jna
How To Uninstall jna on Rocky Linux 8
To uninstall only the jna
package we can use the following command:
sudo dnf remove jna
jna Package Contents on Rocky Linux 8
/usr/lib/.build-id
/usr/lib/.build-id/65
/usr/lib/.build-id/65/5da9119e9b9805c37cb7f632aa04480931231d
/usr/lib/java/jna
/usr/lib/java/jna.jar
/usr/lib/java/jna/jna.jar
/usr/lib64/jna
/usr/lib64/jna/libjnidispatch.so
/usr/share/doc/jna
/usr/share/doc/jna/CHANGES.md
/usr/share/doc/jna/OTHERS
/usr/share/doc/jna/README.md
/usr/share/doc/jna/TODO
/usr/share/java/jna.jar
/usr/share/java/jna.pom
/usr/share/licenses/jna
/usr/share/licenses/jna/AL2.0
/usr/share/licenses/jna/LGPL2.1
/usr/share/licenses/jna/LICENSE
/usr/share/maven-metadata/jna.xml
/usr/share/maven-poms/jna
/usr/share/maven-poms/jna.pom
/usr/share/maven-poms/jna/jna.pom
References
Summary
In this tutorial we learn how to install jna
on Rocky Linux 8 using yum and dnf.