How To Install libppx-tools-versioned-ocaml on Kali Linux
Introduction
In this tutorial we learn how to install libppx-tools-versioned-ocaml on Kali Linux.
What is libppx-tools-versioned-ocaml
libppx-tools-versioned-ocaml is:
A variant of ppx-tools based on ocaml-migrate-parsetree.
It 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-versioned-ocaml 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-versioned-ocaml Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install libppx-tools-versioned-ocaml using apt-get by running the following command:
sudo apt-get -y install libppx-tools-versioned-ocamlInstall libppx-tools-versioned-ocaml Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install libppx-tools-versioned-ocaml using apt by running the following command:
sudo apt -y install libppx-tools-versioned-ocamlInstall libppx-tools-versioned-ocaml 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 updateAfter updating apt database, We can install libppx-tools-versioned-ocaml using aptitude by running the following command:
sudo aptitude -y install libppx-tools-versioned-ocamlHow To Uninstall libppx-tools-versioned-ocaml on Kali Linux
To uninstall only the libppx-tools-versioned-ocaml package we can use the following command:
sudo apt-get remove libppx-tools-versioned-ocamlUninstall libppx-tools-versioned-ocaml And Its Dependencies
To uninstall libppx-tools-versioned-ocaml and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libppx-tools-versioned-ocamlRemove libppx-tools-versioned-ocaml Configurations and Data
To remove libppx-tools-versioned-ocaml configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libppx-tools-versioned-ocamlRemove libppx-tools-versioned-ocaml configuration, data, and all of its dependencies
We can use the following command to remove libppx-tools-versioned-ocaml configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libppx-tools-versioned-ocamlDependencies
libppx-tools-versioned-ocaml have the following dependencies:
References
Summary
In this tutorial we learn how to install libppx-tools-versioned-ocaml package on Kali Linux using different package management tools: apt, apt-get and aptitude.