How To Install libhttpmime-java on Ubuntu
Posted on April 1, 2023  (Last modified on May 20, 2023 )
2 minutes • 386 words
Introduction
In this tutorial we learn how to install libhttpmime-java
on Ubuntu.
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 Ubuntu. 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 Ubuntu. 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 Ubuntu
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 Ubuntu, 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 Ubuntu 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 Ubuntu using different package management tools: apt, apt-get and aptitude.