How To Install jakarta-commons-httpclient on CentOS 7

In this tutorial we learn how to install jakarta-commons-httpclient on CentOS 7. jakarta-commons-httpclient is Jakarta Commons HTTPClient implements the client side of HTTP

Introduction

In this tutorial we learn how to install jakarta-commons-httpclient on CentOS 7.

What is jakarta-commons-httpclient

The Hyper-Text Transfer Protocol (HTTP) is perhaps the most significant protocol used on the Internet today. Web services, network-enabled appliances and the growth of network computing continue to expand the role of the HTTP protocol beyond user-driven web browsers, and increase the number of applications that may require HTTP support. Although the java.net package provides basic support for accessing resources via HTTP, it doesn’t provide the full flexibility or functionality needed by many applications. The Jakarta Commons HTTP Client component seeks to fill this void by providing an efficient, up-to-date, and feature-rich package implementing the client side of the most recent HTTP standards and recommendations. Designed for extension while providing robust support for the base HTTP protocol, the HTTP Client component may be of interest to anyone building HTTP-aware client applications such as web browsers, web service clients, or systems that leverage or extend the HTTP protocol for distributed communication.

We can use yum or dnf to install jakarta-commons-httpclient on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install jakarta-commons-httpclient.

Install jakarta-commons-httpclient on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install jakarta-commons-httpclient using yum by running the following command:

sudo yum -y install jakarta-commons-httpclient

Install jakarta-commons-httpclient 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 jakarta-commons-httpclient using dnf by running the following command:

sudo dnf -y install jakarta-commons-httpclient

How To Uninstall jakarta-commons-httpclient on CentOS 7

To uninstall only the jakarta-commons-httpclient package we can use the following command:

sudo dnf remove jakarta-commons-httpclient

References

Summary

In this tutorial we learn how to install jakarta-commons-httpclient on CentOS 7 using yum and dnf.