How To Install docbook-xml on Kali Linux

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

Introduction

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

What is docbook-xml

docbook-xml is:

DocBook is an XML document type definition (DTD). 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. It has emerged as an open, standard DTD in the software industry, and is the documentation system of choice for many free software projects.

This package contains the XML DTD for DocBook, which describes the formal structure for documents following this format. If you wish to author DocBook documents using SGML rather than XML, use the ‘docbook’ package. You will need other packages in order to edit (psgml), validate (opensp, libxml2-utils) or format (docbook-xsl, docbook-dsssl) DocBook documents.

This package ships with the latest DocBook 4.5 XML DTD, as well as a selected set of legacy DTDs for use with older documents, including 4.0, 4.1.2, 4.2, 4.3 and 4.4.

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

sudo apt-get -y install docbook-xml

Install docbook-xml Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install docbook-xml

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

sudo aptitude -y install docbook-xml

How To Uninstall docbook-xml on Kali Linux

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

sudo apt-get remove docbook-xml

Uninstall docbook-xml And Its Dependencies

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

sudo apt-get -y autoremove docbook-xml

Remove docbook-xml Configurations and Data

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

sudo apt-get -y purge docbook-xml

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

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

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

Dependencies

docbook-xml have the following dependencies:

References

Summary

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