How To Install libb-hooks-parser-perl on Ubuntu 18.04

In this tutorial we learn how to install libb-hooks-parser-perl on Ubuntu 18.04. libb-hooks-parser-perl is module providing an interface to Perls parser variables

Introduction

In this tutorial we learn how to install libb-hooks-parser-perl on Ubuntu 18.04.

What is libb-hooks-parser-perl

libb-hooks-parser-perl is:

B::Hooks::Parser provides an API for parts of the perl parser. It can be used to modify the code during parsing, providing functions to get and set the line currently worked on, the position on that line and to inject Perl code at the current parsing position.

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

sudo apt-get -y install libb-hooks-parser-perl

Install libb-hooks-parser-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libb-hooks-parser-perl

Install libb-hooks-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 libb-hooks-parser-perl using aptitude by running the following command:

sudo aptitude -y install libb-hooks-parser-perl

How To Uninstall libb-hooks-parser-perl on Ubuntu 18.04

To uninstall only the libb-hooks-parser-perl package we can use the following command:

sudo apt-get remove libb-hooks-parser-perl

Uninstall libb-hooks-parser-perl And Its Dependencies

To uninstall libb-hooks-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 libb-hooks-parser-perl

Remove libb-hooks-parser-perl Configurations and Data

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

sudo apt-get -y purge libb-hooks-parser-perl

Remove libb-hooks-parser-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libb-hooks-parser-perl

References

Summary

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