How To Install libjopendocument-java on Ubuntu 18.04

In this tutorial we learn how to install libjopendocument-java on Ubuntu 18.04. libjopendocument-java is pure Java library for OASIS Open Document files manipulation

Introduction

In this tutorial we learn how to install libjopendocument-java on Ubuntu 18.04.

What is libjopendocument-java

libjopendocument-java is:

jOpenDocument is a free library for developers looking to use Open Document files without OpenOffice.org.

You can automate the document creation and manipulation process. You can use jOpenDocument to:

- Generate dynamic documents from Java, XML or databases
- Display and print files with built-in viewers
- Split, concatenate, and manipulate pages
- Automate filling out of template (created by OpenOffice or not)
- Use your preferred language via standard ScriptEngine interface
- And much more...

There are three methods to install libjopendocument-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 libjopendocument-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 libjopendocument-java using apt-get by running the following command:

sudo apt-get -y install libjopendocument-java

Install libjopendocument-java Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libjopendocument-java

Install libjopendocument-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 libjopendocument-java using aptitude by running the following command:

sudo aptitude -y install libjopendocument-java

How To Uninstall libjopendocument-java on Ubuntu 18.04

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

sudo apt-get remove libjopendocument-java

Uninstall libjopendocument-java And Its Dependencies

To uninstall libjopendocument-java and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libjopendocument-java

Remove libjopendocument-java Configurations and Data

To remove libjopendocument-java configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libjopendocument-java

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

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

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

References

Summary

In this tutorial we learn how to install libjopendocument-java package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.