How To Install libmakefile-dom-perl on Debian 9

In this tutorial we learn how to install libmakefile-dom-perl on Debian 9. libmakefile-dom-perl is Perl DOM implementation for Makefiles

Introduction

In this tutorial we learn how to install libmakefile-dom-perl on Debian 9.

What is libmakefile-dom-perl

libmakefile-dom-perl is:

Makefile::DOM serves as an advanced lexer for (GNU) makefiles. It losslessly parses makefiles as “documents”. The results are data structures similar to DOM trees, holding every single bit of the information in the original input files, including white spaces, blank lines and makefile comments, so it’s possible to reproduce the original makefiles from the DOM trees. In addition, each node of the DOM trees is modifiable and so is the whole tree.

There are three methods to install libmakefile-dom-perl on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libmakefile-dom-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 libmakefile-dom-perl using apt-get by running the following command:

sudo apt-get -y install libmakefile-dom-perl

Install libmakefile-dom-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libmakefile-dom-perl

Install libmakefile-dom-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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libmakefile-dom-perl using aptitude by running the following command:

sudo aptitude -y install libmakefile-dom-perl

How To Uninstall libmakefile-dom-perl on Debian 9

To uninstall only the libmakefile-dom-perl package we can use the following command:

sudo apt-get remove libmakefile-dom-perl

Uninstall libmakefile-dom-perl And Its Dependencies

To uninstall libmakefile-dom-perl and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove libmakefile-dom-perl

Remove libmakefile-dom-perl Configurations and Data

To remove libmakefile-dom-perl configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge libmakefile-dom-perl

Remove libmakefile-dom-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libmakefile-dom-perl

Dependencies

libmakefile-dom-perl have the following dependencies:

References

Summary

In this tutorial we learn how to install libmakefile-dom-perl package on Debian 9 using different package management tools: apt, apt-get and aptitude.