How To Install libhttpmime-java on Debian 11

In this tutorial we learn how to install libhttpmime-java on Debian 11. libhttpmime-java is HTTP/1.1 compliant HTTP agent implementation - MIME extension

Introduction

In this tutorial we learn how to install libhttpmime-java on Debian 11.

What is libhttpmime-java

libhttpmime-java is:

HttpClient is a HTTP/1.1 compliant HTTP agent implementation based on 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.

This package provides support for MIME multipart encoded entities to be used with HttpComponents Client.

There are three methods to install libhttpmime-java on Debian 11. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libhttpmime-java Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libhttpmime-java using apt-get by running the following command:

sudo apt-get -y install libhttpmime-java

Install libhttpmime-java Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libhttpmime-java using apt by running the following command:

sudo apt -y install libhttpmime-java

Install libhttpmime-java Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libhttpmime-java using aptitude by running the following command:

sudo aptitude -y install libhttpmime-java

How To Uninstall libhttpmime-java on Debian 11

To uninstall only the libhttpmime-java package we can use the following command:

sudo apt-get remove libhttpmime-java

Uninstall libhttpmime-java And Its Dependencies

To uninstall libhttpmime-java and its dependencies that are no longer needed by Debian 11, we can use the command below:

sudo apt-get -y autoremove libhttpmime-java

Remove libhttpmime-java Configurations and Data

To remove libhttpmime-java configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge libhttpmime-java

Remove libhttpmime-java configuration, data, and all of its dependencies

We can use the following command to remove libhttpmime-java configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libhttpmime-java

Dependencies

libhttpmime-java have the following dependencies:

References

Summary

In this tutorial we learn how to install libhttpmime-java package on Debian 11 using different package management tools: apt, apt-get and aptitude.