How To Install txt2html on Debian 10

Learn how to install txt2html on Debian 10 with this tutorial. txt2html is Text to HTML converter

Introduction

In this tutorial we learn how to install txt2html on Debian 10.

What is txt2html

txt2html is:

txt2html is a Perl program that converts plain text to HTML.

It supports headings, lists, simple character markup, and hyperlinking, and is highly customizable. It recognizes some of the apparent structure of the source document (mostly whitespace and typographic layout), and attempts to mark that structure explicitly using HTML.

The purpose for this tool is to provide an easier way of converting existing text documents to HTML format, giving something nicer than just whapping the text into a big PRE block. txt2html can also be used to aid in writing new HTML documents, but there are probably better ways of doing that.

There are three methods to install txt2html on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install txt2html Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install txt2html

Install txt2html Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install txt2html

Install txt2html 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install txt2html

How To Uninstall txt2html on Debian 10

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

sudo apt-get remove txt2html

Uninstall txt2html And Its Dependencies

To uninstall txt2html and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove txt2html

Remove txt2html Configurations and Data

To remove txt2html configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge txt2html

Remove txt2html configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge txt2html

Dependencies

txt2html have the following dependencies:

References

Summary

In this tutorial we learn how to install txt2html package on Debian 10 using different package management tools: apt, apt-get and aptitude.