How To Install jmc-core on CentOS 8

jmc-core is Core API for JDK Mission Control

Introduction

In this tutorial we learn how to install jmc-core on CentOS 8.

What is jmc-core

JDK Mission Control is an advanced set of tools that enables efficient and detailed analysis of the extensive data collected by Flight Recorder. The tool chain enables developers and administrators to collect and analyze data from Java applications running locally or deployed in production environments.

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

Install jmc-core on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install jmc-core

Install jmc-core on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install jmc-core using yum by running the following command:

sudo yum -y install jmc-core

How To Uninstall jmc-core on CentOS 8

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

sudo dnf remove jmc-core

jmc-core Package Contents on CentOS 8

/usr/share/doc/jmc-core
/usr/share/doc/jmc-core/README.md
/usr/share/java/jmc-core
/usr/share/java/jmc-core/common.jar
/usr/share/java/jmc-core/common.test.jar
/usr/share/java/jmc-core/flightrecorder.jar
/usr/share/java/jmc-core/flightrecorder.rules.jar
/usr/share/java/jmc-core/flightrecorder.rules.jdk.jar
/usr/share/java/jmc-core/flightrecorder.test.jar
/usr/share/java/jmc-core/jdp.jar
/usr/share/java/jmc-core/jdp.test.jar
/usr/share/licenses/jmc-core
/usr/share/licenses/jmc-core/LICENSE.txt
/usr/share/licenses/jmc-core/THIRDPARTYREADME.txt
/usr/share/maven-metadata/jmc-core.xml
/usr/share/maven-poms/jmc-core
/usr/share/maven-poms/jmc-core/common.pom
/usr/share/maven-poms/jmc-core/common.test.pom
/usr/share/maven-poms/jmc-core/flightrecorder.pom
/usr/share/maven-poms/jmc-core/flightrecorder.rules.jdk.pom
/usr/share/maven-poms/jmc-core/flightrecorder.rules.pom
/usr/share/maven-poms/jmc-core/flightrecorder.test.pom
/usr/share/maven-poms/jmc-core/jdp.pom
/usr/share/maven-poms/jmc-core/jdp.test.pom
/usr/share/maven-poms/jmc-core/missioncontrol.core.pom

References

Summary

In this tutorial we learn how to install jmc-core on CentOS 8 using yum and dnf.