How To Install libppx-tools-ocaml-dev on Kali Linux

In this tutorial we learn how to install libppx-tools-ocaml-dev on Kali Linux. libppx-tools-ocaml-dev is tools for authors of OCaml syntactic tools

Introduction

In this tutorial we learn how to install libppx-tools-ocaml-dev on Kali Linux.

What is libppx-tools-ocaml-dev

libppx-tools-ocaml-dev is:

This package includes tools for authors of syntactic tools (such as ppx rewriters):

  • ppx_metaquot: a ppx filter to help writing programs which manipulate the Parsetree, by allowing the programmer to use concrete syntax for expressions creating Parsetree fragments and patterns deconstructing Parsetree fragments;
  • rewriter: a utility to help testing ppx rewriters that runs the rewriter on user-provided code and returns the result;
  • Ast_mapper_class: a generic mapper from Parsetree to Parsetree implementing a deep identity copy, which can be customized with a custom behavior for each syntactic category;
  • dumpast: parses fragments of OCaml code (or entire source files) and dump the resulting internal Parsetree representation;
  • genlifter: generates a virtual “lifter” class for one or several OCaml type constructors.

There are three methods to install libppx-tools-ocaml-dev 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 libppx-tools-ocaml-dev Using apt-get

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

sudo apt-get update

After updating apt database, We can install libppx-tools-ocaml-dev using apt-get by running the following command:

sudo apt-get -y install libppx-tools-ocaml-dev

Install libppx-tools-ocaml-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libppx-tools-ocaml-dev using apt by running the following command:

sudo apt -y install libppx-tools-ocaml-dev

Install libppx-tools-ocaml-dev 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 libppx-tools-ocaml-dev using aptitude by running the following command:

sudo aptitude -y install libppx-tools-ocaml-dev

How To Uninstall libppx-tools-ocaml-dev on Kali Linux

To uninstall only the libppx-tools-ocaml-dev package we can use the following command:

sudo apt-get remove libppx-tools-ocaml-dev

Uninstall libppx-tools-ocaml-dev And Its Dependencies

To uninstall libppx-tools-ocaml-dev and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove libppx-tools-ocaml-dev

Remove libppx-tools-ocaml-dev Configurations and Data

To remove libppx-tools-ocaml-dev configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge libppx-tools-ocaml-dev

Remove libppx-tools-ocaml-dev configuration, data, and all of its dependencies

We can use the following command to remove libppx-tools-ocaml-dev configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libppx-tools-ocaml-dev

Dependencies

libppx-tools-ocaml-dev have the following dependencies:

References

Summary

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