How To Install debiandoc-sgml on Kali Linux

In this tutorial we learn how to install debiandoc-sgml on Kali Linux. debiandoc-sgml is DebianDoc SGML DTD and formatting tools

Introduction

In this tutorial we learn how to install debiandoc-sgml on Kali Linux.

What is debiandoc-sgml

debiandoc-sgml is:

This is an SGML-based documentation formatting package used for the Debian manuals. It reads markup files and produces HTML, LaTeX, DVI (via LaTeX), PostScript (via LaTeX/DVI), PDF (via LaTeX), Texinfo, Info (via Texinfo), DebianDoc SGML, DocBook XML, plain text (with overstrikes a la troff as well as without) files.

The LaTeX based output needs the texlive, texlive-latex-extra and texlive-lang-all packages. In addition to this, Chinese and Japanese need latex-cjk-all and corresponding font packages.

The Texinfo based output needs the texinfo package.

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

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

sudo apt-get update

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

sudo apt-get -y install debiandoc-sgml

Install debiandoc-sgml Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install debiandoc-sgml

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

sudo aptitude -y install debiandoc-sgml

How To Uninstall debiandoc-sgml on Kali Linux

To uninstall only the debiandoc-sgml package we can use the following command:

sudo apt-get remove debiandoc-sgml

Uninstall debiandoc-sgml And Its Dependencies

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

sudo apt-get -y autoremove debiandoc-sgml

Remove debiandoc-sgml Configurations and Data

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

sudo apt-get -y purge debiandoc-sgml

Remove debiandoc-sgml configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge debiandoc-sgml

Dependencies

debiandoc-sgml have the following dependencies:

References

Summary

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