How To Install libxerces2-java on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libxerces2-java
on Ubuntu 20.04.
What is libxerces2-java
libxerces2-java is:
The Xerces2 Java parser is the reference implementation of XNI, the Xerces Native Interface, and also a fully conforming XML Schema processor.
Xerces2-J supports the following standards and APIs:
- eXtensible Markup Language (XML) 1.0 Second Edition Recommendation
- Namespaces in XML Recommendation
- Document Object Model (DOM) Level 2 Core, Events, and Traversal and Range Recommendations
- Simple API for XML (SAX) 2.0.1 Core and Extension
- Java APIs for XML Processing (JAXP) 1.2.01
- XML Schema 1.0 Structures and Datatypes Recommendations
- Experimental implementation of the Document Object Model (DOM) Level 3 Core and Load/Save Working Drafts
- Provides a partial implementation of the XML Inclusions (XInclude) W3C Candidate Recommendation
Xerces is now able to parse documents written according to the XML 1.1 Candidate Recommendation, except that it does not yet provide an option to enable normalization checking as described in section 2.13 of this specification. It also handles namespaces according to the XML Namespaces 1.1 Candidate Recommendation, and will correctly serialize XML 1.1 documents if the DOM level 3 load/save API’s are in use.
There are three methods to install libxerces2-java
on Ubuntu 20.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 libxerces2-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 libxerces2-java
using apt-get
by running the following command:
sudo apt-get -y install libxerces2-java
Install libxerces2-java Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libxerces2-java
using apt
by running the following command:
sudo apt -y install libxerces2-java
Install libxerces2-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 libxerces2-java
using aptitude
by running the following command:
sudo aptitude -y install libxerces2-java
How To Uninstall libxerces2-java on Ubuntu 20.04
To uninstall only the libxerces2-java
package we can use the following command:
sudo apt-get remove libxerces2-java
Uninstall libxerces2-java And Its Dependencies
To uninstall libxerces2-java
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libxerces2-java
Remove libxerces2-java Configurations and Data
To remove libxerces2-java
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libxerces2-java
Remove libxerces2-java configuration, data, and all of its dependencies
We can use the following command to remove libxerces2-java
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libxerces2-java
References
Summary
In this tutorial we learn how to install libxerces2-java
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.