How To Install aho-corasick on Debian 10

Learn how to install aho-corasick on Debian 10 with this tutorial. aho-corasick is Fast multiple substring searching with finite state machines

Introduction

In this tutorial we learn how to install aho-corasick on Debian 10.

What is aho-corasick

aho-corasick is:

This package contains the following binaries built from the Rust crate “aho-corasick”:

  • aho-corasick-dot

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

Install aho-corasick Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install aho-corasick

Install aho-corasick Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install aho-corasick

Install aho-corasick 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 aho-corasick using aptitude by running the following command:

sudo aptitude -y install aho-corasick

How To Uninstall aho-corasick on Debian 10

To uninstall only the aho-corasick package we can use the following command:

sudo apt-get remove aho-corasick

Uninstall aho-corasick And Its Dependencies

To uninstall aho-corasick and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove aho-corasick

Remove aho-corasick Configurations and Data

To remove aho-corasick configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge aho-corasick

Remove aho-corasick configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge aho-corasick

Dependencies

aho-corasick have the following dependencies:

References

Summary

In this tutorial we learn how to install aho-corasick package on Debian 10 using different package management tools: apt, apt-get and aptitude.