How to Install and Uninstall libapache2-mod-security2 Package on Ubuntu 20.10 (Groovy Gorilla)

Last updated: May 14,2024

1. Install "libapache2-mod-security2" package

Please follow the instructions below to install libapache2-mod-security2 on Ubuntu 20.10 (Groovy Gorilla)

$ sudo apt update $ sudo apt install libapache2-mod-security2

2. Uninstall "libapache2-mod-security2" package

This is a short guide on how to uninstall libapache2-mod-security2 on Ubuntu 20.10 (Groovy Gorilla):

$ sudo apt remove libapache2-mod-security2 $ sudo apt autoclean && sudo apt autoremove

3. Information about the libapache2-mod-security2 package on Ubuntu 20.10 (Groovy Gorilla)

Package: libapache2-mod-security2
Architecture: amd64
Version: 2.9.3-2
Priority: optional
Section: universe/httpd
Source: modsecurity-apache
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Alberto Gonzalez Iniesta
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 1079
Depends: libxml2 (>= 2.9.0), libapr1 (>= 1.2.7), libaprutil1 (>= 1.4.0), libc6 (>= 2.14), libcurl3-gnutls (>= 7.16.2), liblua5.1-0, libpcre3, libyajl2 (>= 2.0.4), apache2-api-20120211, apache2-bin (>= 2.4.16)
Recommends: modsecurity-crs
Filename: pool/universe/m/modsecurity-apache/libapache2-mod-security2_2.9.3-2_amd64.deb
Size: 224556
MD5sum: aeafb54b4480797f0eb195cea3a0f17f
SHA1: 7322efb6648e3dc1ed72af5ba29c547079b61923
SHA256: 565e5f3e1f37cec0a3a8a6a301be0f92d2e425950db6dfe307098bd099111736
SHA512: eddb8d558d57dfe003f121f6907785af32eff5fbb0ca0cc8f17c2a35a37344125fbff656d73e9b7dee5b31a54ce018ab8465db2e86110a024764f57ac6e92fea
Homepage: http://www.modsecurity.org/
Description-en: Tighten web applications security for Apache
Modsecurity is an Apache module whose purpose is to tighten the Web
application security. Effectively, it is an intrusion detection and prevention
system for the web server.
.
At the moment its main features are:
* Audit log; store full request details in a separate file, including POST
payloads.
* Request filtering; incoming requests can be analysed and offensive requests
can be rejected (or simply logged, if that is what you want). This feature
can be used to prevent many types of attacks (e.g. XSS attacks, SQL
injection, ...) and even allow you to run insecure applications on your
servers (if you have no other choice, of course).
Description-md5: 198ee1322fd8f21e7b0987f6dfb5edc3