How To Install libmodsecurity on Fedora 34
Introduction
In this tutorial we learn how to install libmodsecurity
on Fedora 34.
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. libmodsecurity 3.0.4 4.fc34 x86_64 566 k libmodsecurity-3.0.4-4.fc34.src.rpm fedora A library that loads/interprets rules written in the ModSecurity SecRules https ASL 2.0 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 34. In this tutorial we discuss both methods but you only need to choose one of method to install libmodsecurity.
Install libmodsecurity 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 libmodsecurity
using dnf
by running the following command:
sudo dnf -y install libmodsecurity
Install libmodsecurity 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 libmodsecurity
using yum
by running the following command:
sudo yum -y install libmodsecurity
How To Uninstall libmodsecurity on Fedora 34
To uninstall only the libmodsecurity
package we can use the following command:
sudo dnf remove libmodsecurity
libmodsecurity Package Contents on Fedora 34
/usr/bin/modsec-rules-check
/usr/lib/.build-id
/usr/lib/.build-id/25
/usr/lib/.build-id/25/d527793d898aa3acd0e42bea1557f70c03719d
/usr/lib/.build-id/fa
/usr/lib/.build-id/fa/8b594491e84db3e5ee1093e9f1aacd046a689d
/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
/usr/bin/modsec-rules-check
/usr/lib/.build-id
/usr/lib/.build-id/bc
/usr/lib/.build-id/bc/38aa624ac256efef1c58d469cd7e41adf87a7b
/usr/lib/.build-id/f4
/usr/lib/.build-id/f4/366d7d1989e1bdb354b918b206089990a66664
/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
- [libmodsecurity website](https://www.modsecurity.org/ https://www.modsecurity.org/)
Summary
In this tutorial we learn how to install libmodsecurity
on Fedora 34 using yum and dnf.