How To Install libagrep-ocaml on Kali Linux
Introduction
In this tutorial we learn how to install libagrep-ocaml on Kali Linux.
What is libagrep-ocaml
libagrep-ocaml is:
This OCaml library implements the Wu-Manber algorithm for string searching with errors, popularized by the “agrep” Unix command and the “glimpse” file indexing tool. It was developed as part of a search engine for a largish MP3 collection; the “with error” searching comes handy for those who can’t spell Liszt or Shostakovitch.
Given a search pattern and a string, this algorithm determines whether the string contains a substring that matches the pattern up to a parameterizable number N of “errors”. An “error” is either a substitution (replace a character of the string with another character), a deletion (remove a character) or an insertion (add a character to the string). In more scientific terms, the number of errors is the Levenshtein edit distance between the pattern and the matched substring.
The search patterns are roughly those of the Unix shell, including one-character wildcard (?), character classes ([0-9]) and multi-character wildcard (*). In addition, conjunction (&) and alternative (|) are supported. General regular expressions are not supported, however.
This package contains only the shared runtime stub libraries.
There are three methods to install libagrep-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 libagrep-ocaml Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install libagrep-ocaml using apt-get by running the following command:
sudo apt-get -y install libagrep-ocamlInstall libagrep-ocaml Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install libagrep-ocaml using apt by running the following command:
sudo apt -y install libagrep-ocamlInstall libagrep-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 libagrep-ocaml using aptitude by running the following command:
sudo aptitude -y install libagrep-ocamlHow To Uninstall libagrep-ocaml on Kali Linux
To uninstall only the libagrep-ocaml package we can use the following command:
sudo apt-get remove libagrep-ocamlUninstall libagrep-ocaml And Its Dependencies
To uninstall libagrep-ocaml and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libagrep-ocamlRemove libagrep-ocaml Configurations and Data
To remove libagrep-ocaml configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libagrep-ocamlRemove libagrep-ocaml configuration, data, and all of its dependencies
We can use the following command to remove libagrep-ocaml configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libagrep-ocamlDependencies
libagrep-ocaml have the following dependencies:
References
Summary
In this tutorial we learn how to install libagrep-ocaml package on Kali Linux using different package management tools: apt, apt-get and aptitude.