How To Install dita-ot-doc on Ubuntu 18.04

In this tutorial we learn how to install dita-ot-doc on Ubuntu 18.04. dita-ot-doc is DITA Open Toolkit (documentation)

Introduction

In this tutorial we learn how to install dita-ot-doc on Ubuntu 18.04.

What is dita-ot-doc

dita-ot-doc is:

DITA Open Toolkit, or DITA-OT for short, is an independent, open source implementation of the OASIS owned and developed Darwin Information Typing Architecture (DITA) standard XML data model for authoring and publishing.

This package contains the documentation for dita-ot.

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

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

sudo apt-get update

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

sudo apt-get -y install dita-ot-doc

Install dita-ot-doc Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install dita-ot-doc using apt by running the following command:

sudo apt -y install dita-ot-doc

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

sudo aptitude -y install dita-ot-doc

How To Uninstall dita-ot-doc on Ubuntu 18.04

To uninstall only the dita-ot-doc package we can use the following command:

sudo apt-get remove dita-ot-doc

Uninstall dita-ot-doc And Its Dependencies

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

sudo apt-get -y autoremove dita-ot-doc

Remove dita-ot-doc Configurations and Data

To remove dita-ot-doc configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge dita-ot-doc

Remove dita-ot-doc configuration, data, and all of its dependencies

We can use the following command to remove dita-ot-doc configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge dita-ot-doc

References

Summary

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