How To Install libxpp2-java on Ubuntu 18.04
Introduction
In this tutorial we learn how to install libxpp2-java
on Ubuntu 18.04.
What is libxpp2-java
libxpp2-java is:
Xml Pull Parser (in short XPP) is a streaming pull XML parser for java. This version XPP2 is the predecessor of XPP3 (see package libxpp3-java).
XPP2 consists of two parts: generic API and its implementations. This Debian version only provides the default implementation optimized for size and speed and is not exposing DTD, entities, comments, or processing instructions to the user.
If you need a xml pull parser implementing the XmlPull API you want to have a look at the libxpp3-java package.
There are three methods to install libxpp2-java
on Ubuntu 18.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libxpp2-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 libxpp2-java
using apt-get
by running the following command:
sudo apt-get -y install libxpp2-java
Install libxpp2-java Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libxpp2-java
using apt
by running the following command:
sudo apt -y install libxpp2-java
Install libxpp2-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 libxpp2-java
using aptitude
by running the following command:
sudo aptitude -y install libxpp2-java
How To Uninstall libxpp2-java on Ubuntu 18.04
To uninstall only the libxpp2-java
package we can use the following command:
sudo apt-get remove libxpp2-java
Uninstall libxpp2-java And Its Dependencies
To uninstall libxpp2-java
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove libxpp2-java
Remove libxpp2-java Configurations and Data
To remove libxpp2-java
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge libxpp2-java
Remove libxpp2-java configuration, data, and all of its dependencies
We can use the following command to remove libxpp2-java
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libxpp2-java
References
Summary
In this tutorial we learn how to install libxpp2-java
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.