How To Install libmodsecurity on Fedora 36

In this tutorial we learn how to install libmodsecurity in Fedora 36. libmodsecurity is A library that loads/interprets rules written in the ModSecurity SecRules

Introduction

In this tutorial we learn how to install libmodsecurity on Fedora 36.

What is libmodsecurity

Libmodsecurity is one component of the ModSecurity v3 project. The library codebase serves as an interface to ModSecurity Connectors taking in web traffic and applying traditional ModSecurity processing. In general, it provides the capability to load/interpret rules written in the ModSecurity SecRules format and apply them to HTTP content provided by your application via Connectors.

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

Install libmodsecurity on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install libmodsecurity

Install libmodsecurity on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install libmodsecurity

How To Uninstall libmodsecurity on Fedora 36

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

sudo dnf remove libmodsecurity

libmodsecurity Package Contents on Fedora 36

/usr/bin/modsec-rules-check
/usr/lib/.build-id
/usr/lib/.build-id/50
/usr/lib/.build-id/50/c5b883625343ac1d0bd1bec459b0ddf16f2ddc
/usr/lib/.build-id/a5
/usr/lib/.build-id/a5/a1dd777c7dfe8018fcdd66aa895f8be6e43f22
/usr/lib/libmodsecurity.so.3
/usr/lib/libmodsecurity.so.3.0.4
/usr/share/doc/libmodsecurity
/usr/share/doc/libmodsecurity/AUTHORS
/usr/share/doc/libmodsecurity/README.md
/usr/share/licenses/libmodsecurity
/usr/share/licenses/libmodsecurity/LICENSE

References

Summary

In this tutorial we learn how to install libmodsecurity on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).


title: “How To Install libmodsecurity on Fedora 36” linkTitle: “libmodsecurity” type: “docs” description: “In this tutorial we learn how to install libmodsecurity in Fedora 36. libmodsecurity is A library that loads/interprets rules written in the ModSecurity SecRules” date: “2022-08-17” lastmod: “2022-08-17” #image: /images/fedora/36/libmodsecurity-featured.png

Introduction

In this tutorial we learn how to install libmodsecurity on Fedora 36.

What is libmodsecurity

Libmodsecurity is one component of the ModSecurity v3 project. The library codebase serves as an interface to ModSecurity Connectors taking in web traffic and applying traditional ModSecurity processing. In general, it provides the capability to load/interpret rules written in the ModSecurity SecRules format and apply them to HTTP content provided by your application via Connectors.

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

Install libmodsecurity on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install libmodsecurity

Install libmodsecurity on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install libmodsecurity

How To Uninstall libmodsecurity on Fedora 36

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

sudo dnf remove libmodsecurity

libmodsecurity Package Contents on Fedora 36

/usr/bin/modsec-rules-check
/usr/lib/.build-id
/usr/lib/.build-id/5d
/usr/lib/.build-id/5d/41a33d12373506e9738d36eab176a5757f93d6
/usr/lib/.build-id/5f
/usr/lib/.build-id/5f/874714578cb1e7918d928a57d392c3a916edcf
/usr/lib64/libmodsecurity.so.3
/usr/lib64/libmodsecurity.so.3.0.4
/usr/share/doc/libmodsecurity
/usr/share/doc/libmodsecurity/AUTHORS
/usr/share/doc/libmodsecurity/README.md
/usr/share/licenses/libmodsecurity
/usr/share/licenses/libmodsecurity/LICENSE

References

Summary

In this tutorial we learn how to install libmodsecurity on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).