How To Install srg on Ubuntu 18.04

In this tutorial we learn how to install srg on Ubuntu 18.04. srg is Fast, Flexible and Detailed log analysis for the Squid Proxy

Introduction

In this tutorial we learn how to install srg on Ubuntu 18.04.

What is srg

srg is:

SRG provides fast and flexible analysis of squid proxy log files while retaining a high level of detail, including down to the exact URLs visited by users and the times at which they were visited. SRG also contains support for generating PHP reports that can be integrated with your existing authentication system to provide granular access to report output.

There are three methods to install srg 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 srg Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install srg

Install srg Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install srg using apt by running the following command:

sudo apt -y install srg

Install srg 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 srg using aptitude by running the following command:

sudo aptitude -y install srg

How To Uninstall srg on Ubuntu 18.04

To uninstall only the srg package we can use the following command:

sudo apt-get remove srg

Uninstall srg And Its Dependencies

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

sudo apt-get -y autoremove srg

Remove srg Configurations and Data

To remove srg configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge srg

Remove srg configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge srg

References

Summary

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