How To Install debiandoc-sgml on Ubuntu 18.04
Introduction
In this tutorial we learn how to install debiandoc-sgml
on Ubuntu 18.04.
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 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 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 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 debiandoc-sgml
using aptitude
by running the following command:
sudo aptitude -y install debiandoc-sgml
How To Uninstall debiandoc-sgml on Ubuntu 18.04
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 Ubuntu 18.04, 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 Ubuntu 18.04 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
References
Summary
In this tutorial we learn how to install debiandoc-sgml
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.