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

In this tutorial we learn how to install httpcomponents-client.noarch in Amazon Linux 2. httpcomponents-client.noarch is HTTP agent implementation based on httpcomponents HttpCore

Introduction

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

What is httpcomponents-client.noarch

HttpClient is a HTTP/1.1 compliant HTTP agent implementation based on httpcomponents HttpCore. It also provides reusable components for client-side authentication, HTTP state management, and HTTP connection management. HttpComponents Client is a successor of and replacement for Commons HttpClient 3.x. Users of Commons HttpClient are strongly encouraged to upgrade.

We can use yum to install httpcomponents-client.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install httpcomponents-client.noarch.

Install httpcomponents-client.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-client.noarch using yum by running the following command:

sudo yum -y install httpcomponents-client.noarch

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

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

sudo yum remove httpcomponents-client.noarch

httpcomponents-client.noarch Package Contents on Amazon Linux 2

/usr/share/doc/httpcomponents-client-4.2.5
/usr/share/doc/httpcomponents-client-4.2.5/LICENSE.txt
/usr/share/doc/httpcomponents-client-4.2.5/NOTICE.txt
/usr/share/doc/httpcomponents-client-4.2.5/README.txt
/usr/share/doc/httpcomponents-client-4.2.5/RELEASE_NOTES.txt
/usr/share/java/httpcomponents/httpclient.jar
/usr/share/java/httpcomponents/httpmime.jar
/usr/share/maven-effective-poms/JPP.httpcomponents-httpclient.pom
/usr/share/maven-effective-poms/JPP.httpcomponents-httpmime.pom
/usr/share/maven-fragments/httpcomponents-client.xml
/usr/share/maven-poms/JPP.httpcomponents-httpclient.pom
/usr/share/maven-poms/JPP.httpcomponents-httpcomponents-client.pom
/usr/share/maven-poms/JPP.httpcomponents-httpmime.pom

References

Summary

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