How To Install ooo2dbk on Ubuntu 18.04

In this tutorial we learn how to install ooo2dbk on Ubuntu 18.04. ooo2dbk is converts OpenOffice.org SXW documents to DocBook XML

Introduction

In this tutorial we learn how to install ooo2dbk on Ubuntu 18.04.

What is ooo2dbk

ooo2dbk is:

OOo2Dbk allows to convert documents from OpenOffice-Writer SXW format to a simplified DocBook XML format.

OOo2Dbk is made of an XSLT stylesheet and a set of Python scripts that permit direct processing of SXW documents and extraction of the pictures included in the document.

It can also be used autonomously in order to convert OpenOffice-Writer XML documents produced with a FlatXML filter.

The original version of ooo2dbk is ooo2sdbk, written by Eric Bellot. This version can still be found at http://www.chez.com/ebellot/ooo2sdbk/

OOo2Dbk can at the moment only process files generated by the OpenOffice.org 1.1.x series.

Future versions of OOo2Dbk will process files generated by the OpenOffice.org 2.x series.

There are three methods to install ooo2dbk 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 ooo2dbk Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

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

sudo apt-get -y install ooo2dbk

Install ooo2dbk Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install ooo2dbk using apt by running the following command:

sudo apt -y install ooo2dbk

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

sudo aptitude -y install ooo2dbk

How To Uninstall ooo2dbk on Ubuntu 18.04

To uninstall only the ooo2dbk package we can use the following command:

sudo apt-get remove ooo2dbk

Uninstall ooo2dbk And Its Dependencies

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

sudo apt-get -y autoremove ooo2dbk

Remove ooo2dbk Configurations and Data

To remove ooo2dbk configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge ooo2dbk

Remove ooo2dbk configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge ooo2dbk

References

Summary

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