How To Install libtika-java on Ubuntu
Posted on April 1, 2023  (Last modified on May 20, 2023 )
2 minutes • 398 words
Introduction
In this tutorial we learn how to install libtika-java on Ubuntu.
What is libtika-java
libtika-java is:
The Apache Tika toolkit detects and extracts metadata and text content from various documents (PPT, CSV, PDF, MP3, HTML and more) using existing parser libraries. Tika unifies these parsers under a single interface to allow you to easily parse over a thousand different file types. Tika is useful for search engine indexing, content analysis, translation, and much more.
There are three methods to install libtika-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 libtika-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 libtika-java using apt-get by running the following command:
sudo apt-get -y install libtika-java
Install libtika-java Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install libtika-java using apt by running the following command:
sudo apt -y install libtika-java
Install libtika-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 libtika-java using aptitude by running the following command:
sudo aptitude -y install libtika-java
How To Uninstall libtika-java on Ubuntu
To uninstall only the libtika-java package we can use the following command:
sudo apt-get remove libtika-java
Uninstall libtika-java And Its Dependencies
To uninstall libtika-java and its dependencies that are no longer needed by Ubuntu, we can use the command below:
sudo apt-get -y autoremove libtika-java
Remove libtika-java Configurations and Data
To remove libtika-java configuration and data from Ubuntu we can use the following command:
sudo apt-get -y purge libtika-java
Remove libtika-java configuration, data, and all of its dependencies
We can use the following command to remove libtika-java configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libtika-java
Dependencies
libtika-java have the following dependencies:
- libcommons-cli-java
- libcommons-compress-java
- libcommons-io-java
- libcommons-lang3-java
- libgeronimo-annotation-1.3-spec-java
- libgoogle-gson-java
- libguava-java
- libhttpclient-java
- libhttpmime-java
- libjackson2-annotations-java
- libjackson2-core-java
- libjackson2-databind-java
- libjaxb-java
- libjdom2-java
- libjsoup-java
- libslf4j-java
- libxerces2-java
References
Summary
In this tutorial we learn how to install libtika-java package on Ubuntu using different package management tools: apt, apt-get and aptitude.