How To Install httpcomponents-core.noarch on Amazon Linux 2

In this tutorial we learn how to install httpcomponents-core.noarch in Amazon Linux 2. httpcomponents-core.noarch is Set of low level Java HTTP transport components for HTTP services

Introduction

In this tutorial we learn how to install httpcomponents-core.noarch on Amazon Linux 2.

What is httpcomponents-core.noarch

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 to install httpcomponents-core.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install httpcomponents-core.noarch.

Install httpcomponents-core.noarch on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install httpcomponents-core.noarch

How To Uninstall httpcomponents-core.noarch on Amazon Linux 2

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

sudo yum remove httpcomponents-core.noarch

httpcomponents-core.noarch Package Contents on Amazon Linux 2

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

References

Summary

In this tutorial we learn how to install httpcomponents-core.noarch on Amazon Linux 2 using yum.