How to Install and Uninstall libapache2-mod-security2 Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: May 14,2024

1. Install "libapache2-mod-security2" package

Here is a brief guide to show you how to install libapache2-mod-security2 on Ubuntu 16.04 LTS (Xenial Xerus)

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

2. Uninstall "libapache2-mod-security2" package

This guide let you learn how to uninstall libapache2-mod-security2 on Ubuntu 16.04 LTS (Xenial Xerus):

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

3. Information about the libapache2-mod-security2 package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: libapache2-mod-security2
Priority: optional
Section: universe/httpd
Installed-Size: 1201
Maintainer: Ubuntu Developers
Original-Maintainer: Alberto Gonzalez Iniesta
Architecture: amd64
Source: modsecurity-apache
Version: 2.9.0-1
Replaces: libapache2-modsecurity (<< 2.7.7-1~)
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
Recommends: modsecurity-crs
Breaks: libapache2-modsecurity (<< 2.7.7-1~)
Filename: pool/universe/m/modsecurity-apache/libapache2-mod-security2_2.9.0-1_amd64.deb
Size: 313636
MD5sum: b825304fe87453fb7de0159de0345f90
SHA1: 89c10d64a25ad088a530b9f0c32fdf450d3c9e42
SHA256: ab3711f5cf28a5bb75b3bae91796a10420b8568d4b0bd29c2b3d023fe988dbde
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
Homepage: http://www.modsecurity.org/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu