How To Install snort-common on Ubuntu 18.04

In this tutorial we learn how to install snort-common on Ubuntu 18.04. snort-common is flexible Network Intrusion Detection System - common files

Introduction

In this tutorial we learn how to install snort-common on Ubuntu 18.04.

What is snort-common

snort-common is:

Snort is a libpcap-based packet sniffer/logger which can be used as a lightweight network intrusion detection system. It features rules-based logging and can perform content searching/matching in addition to detecting a variety of other attacks and probes, such as buffer overflows, stealth port scans, CGI attacks, SMB probes, and much more. Snort has a real-time alerting capability, with alerts being sent to syslog, a separate “alert” file, or even to a Windows computer via Samba.

This is a common package which holds cron jobs, tools, and config files used by all the different package flavors.

There are three methods to install snort-common on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install snort-common Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install snort-common using apt-get by running the following command:

sudo apt-get -y install snort-common

Install snort-common Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install snort-common using apt by running the following command:

sudo apt -y install snort-common

Install snort-common Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install snort-common using aptitude by running the following command:

sudo aptitude -y install snort-common

How To Uninstall snort-common on Ubuntu 18.04

To uninstall only the snort-common package we can use the following command:

sudo apt-get remove snort-common

Uninstall snort-common And Its Dependencies

To uninstall snort-common and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove snort-common

Remove snort-common Configurations and Data

To remove snort-common configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge snort-common

Remove snort-common configuration, data, and all of its dependencies

We can use the following command to remove snort-common configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge snort-common

References

Summary

In this tutorial we learn how to install snort-common package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.