How To Install node-pegjs on Kali Linux

In this tutorial we learn how to install node-pegjs on Kali Linux. node-pegjs is JavaScript parser generator

Introduction

In this tutorial we learn how to install node-pegjs on Kali Linux.

What is node-pegjs

node-pegjs is:

PEG.js is a simple parser generator for JavaScript that produces fast parsers with excellent error reporting. You can use it to process complex data or computer languages and build transformers, interpreters, compilers and other tools easily.

There are three methods to install node-pegjs on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install node-pegjs Using apt-get

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

sudo apt-get update

After updating apt database, We can install node-pegjs using apt-get by running the following command:

sudo apt-get -y install node-pegjs

Install node-pegjs Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install node-pegjs using apt by running the following command:

sudo apt -y install node-pegjs

Install node-pegjs Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install node-pegjs using aptitude by running the following command:

sudo aptitude -y install node-pegjs

How To Uninstall node-pegjs on Kali Linux

To uninstall only the node-pegjs package we can use the following command:

sudo apt-get remove node-pegjs

Uninstall node-pegjs And Its Dependencies

To uninstall node-pegjs and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove node-pegjs

Remove node-pegjs Configurations and Data

To remove node-pegjs configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge node-pegjs

Remove node-pegjs configuration, data, and all of its dependencies

We can use the following command to remove node-pegjs configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge node-pegjs

Dependencies

node-pegjs have the following dependencies:

References

Summary

In this tutorial we learn how to install node-pegjs package on Kali Linux using different package management tools: apt, apt-get and aptitude.