How To Install jctools on CentOS 7

In this tutorial we learn how to install jctools on CentOS 7. jctools is Java Concurrency Tools for the JVM

Introduction

In this tutorial we learn how to install jctools on CentOS 7.

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 CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install jctools.

Install jctools on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install jctools

Install jctools on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install jctools

How To Uninstall jctools on CentOS 7

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

sudo dnf remove jctools

References

Summary

In this tutorial we learn how to install jctools on CentOS 7 using yum and dnf.