How To Install libhtml-formattext-withlinks-andtables-perl on Ubuntu 22.04

In this tutorial we learn how to install libhtml-formattext-withlinks-andtables-perl on Ubuntu 22.04. libhtml-formattext-withlinks-andtables-perl is Perl module to converts HTML to Text with tables intact

Introduction

In this tutorial we learn how to install libhtml-formattext-withlinks-andtables-perl on Ubuntu 22.04.

libhtml-formattext-withlinks-andtables-perl is:

HTML::FormatText::WithLinks::AndTables was inspired by HTML::FormatText::WithLinks which has proven to be a useful lynx -dump work-alike.

This module can in a rudimentary sense do so. The aim was to provide facility to take a simple HTML based email template, and to also convert it to text with the

structure intact for inclusion as “multipart/alternative” content.

Further, it will preserve both the formatting specified by the

tag’s “align” attribute, and will also preserve multiline text inside of aelement provided it is broken using
tags.

There are three methods to install libhtml-formattext-withlinks-andtables-perl on Ubuntu 22.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

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

sudo apt-get update

After updating apt database, We can install libhtml-formattext-withlinks-andtables-perl using apt-get by running the following command:

sudo apt-get -y install libhtml-formattext-withlinks-andtables-perl

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libhtml-formattext-withlinks-andtables-perl using apt by running the following command:

sudo apt -y install libhtml-formattext-withlinks-andtables-perl

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 libhtml-formattext-withlinks-andtables-perl using aptitude by running the following command:

sudo aptitude -y install libhtml-formattext-withlinks-andtables-perl

To uninstall only the libhtml-formattext-withlinks-andtables-perl package we can use the following command:

sudo apt-get remove libhtml-formattext-withlinks-andtables-perl

To uninstall libhtml-formattext-withlinks-andtables-perl and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:

sudo apt-get -y autoremove libhtml-formattext-withlinks-andtables-perl

To remove libhtml-formattext-withlinks-andtables-perl configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge libhtml-formattext-withlinks-andtables-perl

We can use the following command to remove libhtml-formattext-withlinks-andtables-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libhtml-formattext-withlinks-andtables-perl

References

Summary

In this tutorial we learn how to install libhtml-formattext-withlinks-andtables-perl package on Ubuntu 22.04 using different package management tools: apt, apt-get and aptitude.