How To Install libhtml-linklist-perl on Ubuntu 18.04

In this tutorial we learn how to install libhtml-linklist-perl on Ubuntu 18.04. libhtml-linklist-perl is module that creates a smart list of HTML links

Introduction

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

libhtml-linklist-perl is:

HTML::LinkList contains a number of functions for taking sets of URLs and labels and creating suitably formatted HTML. These links are “smart” because, if given the url of the current page, if any of the links in the list equal it, that item in the list will be formatted as a special label, not as a link; this is a Good Thing, since the user would be confused by clicking on a link back to the current page.

While many website systems have plugins for “smart” navbars, they are specialized for that system only, and can’t be reused elsewhere, forcing people to reinvent the wheel. This is one of the wheels, free to be reused by anybody; just the simple functions, a backend, which can be plugged into whatever system you want.

The default format for the HTML is to make an unordered list, but there are many options, enabling one to have a flatter layout with any separators you desire, or a more complicated list with differing formats for different levels.

There are three methods to install libhtml-linklist-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-linklist-perl using apt-get by running the following command:

sudo apt-get -y install libhtml-linklist-perl

Update apt database with apt using the following command.

sudo apt update

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

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

sudo aptitude -y install libhtml-linklist-perl

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

sudo apt-get remove libhtml-linklist-perl

To uninstall libhtml-linklist-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-linklist-perl

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

sudo apt-get -y purge libhtml-linklist-perl

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

sudo apt-get -y autoremove --purge libhtml-linklist-perl

References

Summary

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