How To Install sgmltools-lite on Ubuntu 18.04

In this tutorial we learn how to install sgmltools-lite on Ubuntu 18.04. sgmltools-lite is convert DocBook SGML source into HTML using DSSSL

Introduction

In this tutorial we learn how to install sgmltools-lite on Ubuntu 18.04.

What is sgmltools-lite

sgmltools-lite is:

A text-formatting package based on SGML (Standard Generalized Markup Language), which allows you to produce TeX/DVI/PS/PDF, HTML, RTF, and plain ASCII (currently via w3m by default) from a single source with other recommended and suggested packages; due to the flexible nature of SGML, many other target formats are possible.

This tool can not handle DocBook XML yet. For DocBook SGML only.

HTML can be generated without any other Debian text processing package, but for the other formats the appropriate packages have to be installed. You need to install lynx or w3m for ASCII text output (w3m is the default txt backend). Also jadetex is required for PS and PDF, and linuxdoc-tools for ld2db conversion.

This system is tailored for writing technical software documentation, an example of which are the Linux HOWTO documents. However, there is nothing Linux-specific about this package; it can be used for many other types of documentation on many other systems. It should be useful for all kinds of printed and online documentation.

The package was formerly called linuxdoc-sgml because it originates from the Linux Documentation Project (LDP). The name has been changed into sgmltools to make it clearer that there is no Linux-specific stuff included in this package.

This is the latest version of the sgmltools series and the successor of sgmltools v2.

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

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

sudo apt-get update

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

sudo apt-get -y install sgmltools-lite

Install sgmltools-lite Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install sgmltools-lite

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

sudo aptitude -y install sgmltools-lite

How To Uninstall sgmltools-lite on Ubuntu 18.04

To uninstall only the sgmltools-lite package we can use the following command:

sudo apt-get remove sgmltools-lite

Uninstall sgmltools-lite And Its Dependencies

To uninstall sgmltools-lite and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove sgmltools-lite

Remove sgmltools-lite Configurations and Data

To remove sgmltools-lite configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge sgmltools-lite

Remove sgmltools-lite configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge sgmltools-lite

References

Summary

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