How To Install libpoe-filter-http-parser-perl on Ubuntu 18.04

In this tutorial we learn how to install libpoe-filter-http-parser-perl on Ubuntu 18.04. libpoe-filter-http-parser-perl is POE filter for HTTP clients or servers

Introduction

In this tutorial we learn how to install libpoe-filter-http-parser-perl on Ubuntu 18.04.

What is libpoe-filter-http-parser-perl

libpoe-filter-http-parser-perl is:

POE::Filter::HTTP::Parser is a filter for the Perl Object Environment (POE) system based on HTTP::Parser. It can be used to easily create POE-based HTTP servers or clients.

With the type set to client, which is the default behaviour, ‘get’ will parse HTTP::Response objects from HTTP streams and ‘put’ will accept HTTP::Request objects and convert them to HTTP streams.

For servers, the reverse will happen; ‘get’ will parse HTTP::Request objects from HTTP streams and ‘put’ will accept HTTP::Response objects and convert them to HTTP streams. If there is an error parsing the request, this filter will generate a HTTP::Response object instead, encapsulating an error message suitable for simply sending back to the requesting client.

There are three methods to install libpoe-filter-http-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.

Install libpoe-filter-http-parser-perl Using apt-get

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

sudo apt-get update

After updating apt database, We can install libpoe-filter-http-parser-perl using apt-get by running the following command:

sudo apt-get -y install libpoe-filter-http-parser-perl

Install libpoe-filter-http-parser-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libpoe-filter-http-parser-perl using apt by running the following command:

sudo apt -y install libpoe-filter-http-parser-perl

Install libpoe-filter-http-parser-perl 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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libpoe-filter-http-parser-perl using aptitude by running the following command:

sudo aptitude -y install libpoe-filter-http-parser-perl

How To Uninstall libpoe-filter-http-parser-perl on Ubuntu 18.04

To uninstall only the libpoe-filter-http-parser-perl package we can use the following command:

sudo apt-get remove libpoe-filter-http-parser-perl

Uninstall libpoe-filter-http-parser-perl And Its Dependencies

To uninstall libpoe-filter-http-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 libpoe-filter-http-parser-perl

Remove libpoe-filter-http-parser-perl Configurations and Data

To remove libpoe-filter-http-parser-perl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libpoe-filter-http-parser-perl

Remove libpoe-filter-http-parser-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libpoe-filter-http-parser-perl

References

Summary

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