How To Install jol-cli on Fedora 36

In this tutorial we learn how to install jol-cli in Fedora 36. jol-cli is Java Object Layout command line interface

Introduction

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

What is jol-cli

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 a command line interface to JOL.

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

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

sudo dnf -y install jol-cli

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

sudo yum -y install jol-cli

How To Uninstall jol-cli on Fedora 36

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

sudo dnf remove jol-cli

jol-cli Package Contents on Fedora 36

/usr/share/java/jol
/usr/share/java/jol/jol-cli.jar
/usr/share/maven-metadata/jol-jol-cli.xml
/usr/share/maven-poms/jol
/usr/share/maven-poms/jol/jol-cli.pom

References

Summary

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