How To Install docbook-xsl-doc-text on Ubuntu 18.04

In this tutorial we learn how to install docbook-xsl-doc-text on Ubuntu 18.04. docbook-xsl-doc-text is stylesheets for processing DocBook XML files (ASCII documentation)

Introduction

In this tutorial we learn how to install docbook-xsl-doc-text on Ubuntu 18.04.

What is docbook-xsl-doc-text

docbook-xsl-doc-text is:

DocBook XSL stylesheets are modular XSL stylesheets for processing documents composed with the DocBook XML DTD and its derivatives.

This package contains the documentation for the DocBook XSL stylesheets and explanations for the parameters you can use in simple ASCII text format.

There are three methods to install docbook-xsl-doc-text 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 docbook-xsl-doc-text Using apt-get

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

sudo apt-get update

After updating apt database, We can install docbook-xsl-doc-text using apt-get by running the following command:

sudo apt-get -y install docbook-xsl-doc-text

Install docbook-xsl-doc-text Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install docbook-xsl-doc-text using apt by running the following command:

sudo apt -y install docbook-xsl-doc-text

Install docbook-xsl-doc-text 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 docbook-xsl-doc-text using aptitude by running the following command:

sudo aptitude -y install docbook-xsl-doc-text

How To Uninstall docbook-xsl-doc-text on Ubuntu 18.04

To uninstall only the docbook-xsl-doc-text package we can use the following command:

sudo apt-get remove docbook-xsl-doc-text

Uninstall docbook-xsl-doc-text And Its Dependencies

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

sudo apt-get -y autoremove docbook-xsl-doc-text

Remove docbook-xsl-doc-text Configurations and Data

To remove docbook-xsl-doc-text configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge docbook-xsl-doc-text

Remove docbook-xsl-doc-text configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge docbook-xsl-doc-text

References

Summary

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