How To Install httpcomponents-core on CentOS 7

In this tutorial we learn how to install httpcomponents-core on CentOS 7. 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 CentOS 7.

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

Install httpcomponents-core on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install httpcomponents-core

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

sudo dnf -y install httpcomponents-core

How To Uninstall httpcomponents-core on CentOS 7

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

sudo dnf remove httpcomponents-core

References

Summary

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