How To Install libhttp-link-parser-perl on Ubuntu 18.04

In this tutorial we learn how to install libhttp-link-parser-perl on Ubuntu 18.04. libhttp-link-parser-perl is parse HTTP Link headers

Introduction

In this tutorial we learn how to install libhttp-link-parser-perl on Ubuntu 18.04.

libhttp-link-parser-perl is:

HTTP::Link::Parser parses HTTP “Link” headers found in an HTTP::Response object. Headers should conform to the format described in RFC 5988.

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

sudo apt-get -y install libhttp-link-parser-perl

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libhttp-link-parser-perl using apt by running the following command:

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

sudo aptitude -y install libhttp-link-parser-perl

To uninstall only the libhttp-link-parser-perl package we can use the following command:

sudo apt-get remove libhttp-link-parser-perl

To uninstall libhttp-link-parser-perl and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libhttp-link-parser-perl

To remove libhttp-link-parser-perl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libhttp-link-parser-perl

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

sudo apt-get -y autoremove --purge libhttp-link-parser-perl

References

Summary

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