How To Install jctools on Fedora 34

jctools is Java Concurrency Tools for the JVM

Introduction

In this tutorial we learn how to install jctools on Fedora 34.

What is jctools

This project aims to offer some concurrent data structures currently missing from the JDK ° SPSC/MPSC/SPMC/MPMC Bounded lock free queues ° SPSC/MPSC Unbounded lock free queues ° Alternative interfaces for queues ° Offheap concurrent ring buffer for ITC/IPC purposes ° Single Writer Map/Set implementations ° Low contention stats counters ° Executor

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

Install jctools on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install jctools using dnf by running the following command:

sudo dnf -y install jctools

Install jctools on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install jctools using yum by running the following command:

sudo yum -y install jctools

How To Uninstall jctools on Fedora 34

To uninstall only the jctools package we can use the following command:

sudo dnf remove jctools

jctools Package Contents on Fedora 34

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

References

Summary

In this tutorial we learn how to install jctools on Fedora 34 using yum and dnf.