How To Install libppix-documentname-perl on Ubuntu 18.04

In this tutorial we learn how to install libppix-documentname-perl on Ubuntu 18.04. libppix-documentname-perl is utility to extract a name from a PPI Document

Introduction

In this tutorial we learn how to install libppix-documentname-perl on Ubuntu 18.04.

What is libppix-documentname-perl

libppix-documentname-perl is:

PPIx::DocumentName contains a few utilities for extracting a “name” out of an arbitrary Perl file.

Typically, this is the module name, in the form:

package Foo

However, it also supports extraction of an override statement in the form:

PODNAME: OverrideName::Goes::Here

which may be more applicable for documents that lack a package statement, or the package statement may be “wrong”, but they still need the document parsed under the guise of having a name (for purposes such as POD).

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

sudo apt-get -y install libppix-documentname-perl

Install libppix-documentname-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libppix-documentname-perl

Install libppix-documentname-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 libppix-documentname-perl using aptitude by running the following command:

sudo aptitude -y install libppix-documentname-perl

How To Uninstall libppix-documentname-perl on Ubuntu 18.04

To uninstall only the libppix-documentname-perl package we can use the following command:

sudo apt-get remove libppix-documentname-perl

Uninstall libppix-documentname-perl And Its Dependencies

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

sudo apt-get -y autoremove libppix-documentname-perl

Remove libppix-documentname-perl Configurations and Data

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

sudo apt-get -y purge libppix-documentname-perl

Remove libppix-documentname-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libppix-documentname-perl

References

Summary

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