How To Install httpcomponents-client on Rocky Linux 8

In this tutorial we learn how to install httpcomponents-client on Rocky Linux 8. httpcomponents-client is HTTP agent implementation based on httpcomponents HttpCore

Introduction

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

What is httpcomponents-client

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 or dnf to install httpcomponents-client on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install httpcomponents-client.

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

sudo dnf -y install httpcomponents-client

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

sudo yum -y install httpcomponents-client

How To Uninstall httpcomponents-client on Rocky Linux 8

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

sudo dnf remove httpcomponents-client

httpcomponents-client Package Contents on Rocky Linux 8

/usr/share/doc/httpcomponents-client
/usr/share/doc/httpcomponents-client/LICENSE.txt
/usr/share/doc/httpcomponents-client/NOTICE.txt
/usr/share/doc/httpcomponents-client/README.txt
/usr/share/doc/httpcomponents-client/RELEASE_NOTES.txt
/usr/share/java/httpcomponents
/usr/share/java/httpcomponents/fluent-hc.jar
/usr/share/java/httpcomponents/httpclient.jar
/usr/share/java/httpcomponents/httpmime.jar
/usr/share/maven-metadata/httpcomponents-client.xml
/usr/share/maven-poms/httpcomponents
/usr/share/maven-poms/httpcomponents/fluent-hc.pom
/usr/share/maven-poms/httpcomponents/httpclient.pom
/usr/share/maven-poms/httpcomponents/httpcomponents-client.pom
/usr/share/maven-poms/httpcomponents/httpmime.pom

References

Summary

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