How to Install and Uninstall mod_security.x86_64 Package on Amazon Linux 2

Last updated: January 11,2025

1. Install "mod_security.x86_64" package

Learn how to install mod_security.x86_64 on Amazon Linux 2

$ sudo yum makecache $ sudo yum install mod_security.x86_64

2. Uninstall "mod_security.x86_64" package

This is a short guide on how to uninstall mod_security.x86_64 on Amazon Linux 2:

$ sudo yum remove mod_security.x86_64 $ sudo yum autoremove

3. Information about the mod_security.x86_64 package on Amazon Linux 2

Loaded plugins: ovl, priorities
Available Packages
Name : mod_security
Arch : x86_64
Version : 2.9.3
Release : 1.amzn2.0.1
Size : 253 k
Repo : amzn2-core/2/x86_64
Summary : Security module for the Apache HTTP Server
URL : http://www.modsecurity.org/
License : ASL 2.0
Description : ModSecurity is an open source intrusion detection and prevention
: engine for web applications. It operates embedded into the web
: server, acting as a powerful umbrella - shielding web applications
: from attacks.