How To Install docbook5-xml on Kali Linux

In this tutorial we learn how to install docbook5-xml on Kali Linux. docbook5-xml is standard XML documentation system for software and systems

Introduction

In this tutorial we learn how to install docbook5-xml on Kali Linux.

What is docbook5-xml

docbook5-xml is:

DocBook 5 is a general purpose XML schema. That is, it contains the “DocBook” document structure. This is used by authors or editors writing documents in the DocBook XML format. DocBook was designed for books, articles, or reference documentation about technical matters or software (though it is by no means limited to these applications). It has emerged as an open standard in the software industry, and is the documentation system of choice for many free software projects.

DocBook 5.0 is a complete rewrite of the well-known DocBook 4 XML schema/DTD, introducing a quite large number of backwards-incompatible changes. But the basic idea behind DocBook is still the same, and almost all element names are unchanged.

This package contains the XML RelaxNG schema (with some additional Schematron assertions), W3C XML Schema (XSD) as well as the Document Type Definition (DTD) for DocBook, which all describe the formal structure for documents following this format.

You will need other packages in order to edit, validate (libxml2-utils) or format (docbook-xsl-ns) DocBook 5 documents.

There are three methods to install docbook5-xml on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install docbook5-xml Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install docbook5-xml

Install docbook5-xml Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install docbook5-xml

Install docbook5-xml Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install docbook5-xml using aptitude by running the following command:

sudo aptitude -y install docbook5-xml

How To Uninstall docbook5-xml on Kali Linux

To uninstall only the docbook5-xml package we can use the following command:

sudo apt-get remove docbook5-xml

Uninstall docbook5-xml And Its Dependencies

To uninstall docbook5-xml and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove docbook5-xml

Remove docbook5-xml Configurations and Data

To remove docbook5-xml configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge docbook5-xml

Remove docbook5-xml configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge docbook5-xml

Dependencies

docbook5-xml have the following dependencies:

References

Summary

In this tutorial we learn how to install docbook5-xml package on Kali Linux using different package management tools: apt, apt-get and aptitude.