How To Install stx2any on Ubuntu 18.04

In this tutorial we learn how to install stx2any on Ubuntu 18.04. stx2any is Converter from structured plain text to other formats

Introduction

In this tutorial we learn how to install stx2any on Ubuntu 18.04.

What is stx2any

stx2any is:

stx2any is a converter from structured text (Stx), which is plain text written in a standardised way, into other formats. Formats available currently include (X)HTML, man, raw text, DocBook XML, PostScript and LaTeX.

Stx is a markup language in the tradition of plain text like markups, like wiki markup and ReST. For a comparison between different plain text markup languages, see stx2any’s home page (http://sange.fi/~atehwa/cgi-bin/piki.cgi/stx2any).

This package also has the following utilities:

  • strip_stx – a literate programming tool
  • gather_stx_titles – a script to automate cross-linking between documents
  • extract_usage_from_stx – a script to produce “usage” messages from man pages written in stx
  • html2stx – a utility to convert HTML into Stx.

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

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

sudo apt-get update

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

sudo apt-get -y install stx2any

Install stx2any Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install stx2any using apt by running the following command:

sudo apt -y install stx2any

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

sudo aptitude -y install stx2any

How To Uninstall stx2any on Ubuntu 18.04

To uninstall only the stx2any package we can use the following command:

sudo apt-get remove stx2any

Uninstall stx2any And Its Dependencies

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

sudo apt-get -y autoremove stx2any

Remove stx2any Configurations and Data

To remove stx2any configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge stx2any

Remove stx2any configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge stx2any

References

Summary

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