How To Install hyperscan on Fedora 34

hyperscan is High-performance regular expression matching library

Introduction

In this tutorial we learn how to install hyperscan on Fedora 34.

What is hyperscan

Hyperscan is a high-performance multiple regex matching library. It follows the regular expression syntax of the commonly-used libpcre library, but is a standalone library with its own C API. Hyperscan uses hybrid automata techniques to allow simultaneous matching of large numbers (up to tens of thousands) of regular expressions and for the matching of regular expressions across streams of data. Hyperscan is typically used in a DPI library stack.

We can use yum or dnf to install hyperscan on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install hyperscan.

Install hyperscan on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install hyperscan using dnf by running the following command:

sudo dnf -y install hyperscan

Install hyperscan on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install hyperscan using yum by running the following command:

sudo yum -y install hyperscan

How To Uninstall hyperscan on Fedora 34

To uninstall only the hyperscan package we can use the following command:

sudo dnf remove hyperscan

hyperscan Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/0f
/usr/lib/.build-id/0f/aae670a50865f483c03b9d1bcc7117bad2643d
/usr/lib/.build-id/dd
/usr/lib/.build-id/dd/8abdf9e1116e74efafc7ee7d60dda164e50c3c
/usr/lib64/libhs.so.5
/usr/lib64/libhs.so.5.3.0
/usr/lib64/libhs_runtime.so.5
/usr/lib64/libhs_runtime.so.5.3.0
/usr/share/doc/hyperscan/examples/README.md
/usr/share/doc/hyperscan/examples/patbench.cc
/usr/share/doc/hyperscan/examples/pcapscan.cc
/usr/share/doc/hyperscan/examples/simplegrep.c
/usr/share/licenses/hyperscan
/usr/share/licenses/hyperscan/COPYING
/usr/share/licenses/hyperscan/LICENSE

References

Summary

In this tutorial we learn how to install hyperscan on Fedora 34 using yum and dnf.