How To Install httpcomponents-core on Rocky Linux 8

In this tutorial we learn how to install httpcomponents-core on Rocky Linux 8. httpcomponents-core is Set of low level Java HTTP transport components for HTTP services

Introduction

In this tutorial we learn how to install httpcomponents-core on Rocky Linux 8.

What is httpcomponents-core

HttpCore is a set of low level HTTP transport components that can be used to build custom client and server side HTTP services with a minimal footprint. HttpCore supports two I/O models model based on the classic Java I/O and non-blocking, event driven I/O model based on Java NIO. The blocking I/O model may be more appropriate for data intensive, low latency scenarios, whereas the non-blocking model may be more appropriate for high latency scenarios where raw data throughput is less important than the ability to handle thousands of simultaneous HTTP connections in a resource efficient manner.

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

Install httpcomponents-core on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install httpcomponents-core

Install httpcomponents-core on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install httpcomponents-core

How To Uninstall httpcomponents-core on Rocky Linux 8

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

sudo dnf remove httpcomponents-core

httpcomponents-core Package Contents on Rocky Linux 8

/usr/share/doc/httpcomponents-core
/usr/share/doc/httpcomponents-core/LICENSE.txt
/usr/share/doc/httpcomponents-core/NOTICE.txt
/usr/share/doc/httpcomponents-core/README.txt
/usr/share/doc/httpcomponents-core/RELEASE_NOTES.txt
/usr/share/java/httpcomponents
/usr/share/java/httpcomponents/httpcore-nio.jar
/usr/share/java/httpcomponents/httpcore.jar
/usr/share/maven-metadata/httpcomponents-core.xml
/usr/share/maven-poms/httpcomponents
/usr/share/maven-poms/httpcomponents/httpcomponents-core.pom
/usr/share/maven-poms/httpcomponents/httpcore-nio.pom
/usr/share/maven-poms/httpcomponents/httpcore.pom

References

Summary

In this tutorial we learn how to install httpcomponents-core on Rocky Linux 8 using yum and dnf.