How To Install jol-core on Fedora 36

In this tutorial we learn how to install jol-core in Fedora 36. jol-core is Java Object Layout core classes

Introduction

In this tutorial we learn how to install jol-core on Fedora 36.

What is jol-core

JOL (Java Object Layout) is a tiny toolbox to analyze Java object layouts. These tools use Unsafe, JVMTI, and Serviceability Agent (SA) heavily to decode the actual object layout, footprint, and references. This makes JOL much more accurate than other tools relying on heap dumps, specification assumptions, etc. This package contains the core classes for JOL.

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

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

sudo dnf -y install jol-core

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

sudo yum -y install jol-core

How To Uninstall jol-core on Fedora 36

To uninstall only the jol-core package we can use the following command:

sudo dnf remove jol-core

jol-core Package Contents on Fedora 36

/usr/share/doc/jol-core
/usr/share/doc/jol-core/README.md
/usr/share/java/jol
/usr/share/java/jol/jol-core.jar
/usr/share/licenses/jol-core
/usr/share/licenses/jol-core/LICENSE
/usr/share/maven-metadata/jol-jol-core.xml
/usr/share/maven-poms/jol
/usr/share/maven-poms/jol/jol-core.pom

References

Summary

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