How To Install libhtml-formattext-withlinks-perl on Ubuntu 18.04

In this tutorial we learn how to install libhtml-formattext-withlinks-perl on Ubuntu 18.04. libhtml-formattext-withlinks-perl is Perl module to convert HTML to text with links as footnotes

Introduction

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

libhtml-formattext-withlinks-perl is:

HTML::FormatText::WithLinks takes HTML and turns it into plain text but prints all the links in the HTML as footnotes. By default, it attempts to mimic the format of the lynx text based web browser’s –dump option.

There are three methods to install libhtml-formattext-withlinks-perl 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.

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

sudo apt-get update

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

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

Update apt database with apt using the following command.

sudo apt update

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

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

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

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

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

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

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

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

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

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

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

References

Summary

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