How To Install syslog-summary on Ubuntu 20.04

In this tutorial we learn how to install syslog-summary on Ubuntu 20.04. syslog-summary is summarize the contents of a syslog log file

Introduction

In this tutorial we learn how to install syslog-summary on Ubuntu 20.04.

What is syslog-summary

syslog-summary is:

This program summarizes the contents of a log file written by syslog, by displaying each unique (except for the time) line once, and also the number of times such a line occurs in the input. The lines are displayed in the order they occur in the input.

It is also possible to define some “ignore rules” using regular expressions.

There are three methods to install syslog-summary on Ubuntu 20.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 syslog-summary Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install syslog-summary

Install syslog-summary Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install syslog-summary

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

sudo aptitude -y install syslog-summary

How To Uninstall syslog-summary on Ubuntu 20.04

To uninstall only the syslog-summary package we can use the following command:

sudo apt-get remove syslog-summary

Uninstall syslog-summary And Its Dependencies

To uninstall syslog-summary and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove syslog-summary

Remove syslog-summary Configurations and Data

To remove syslog-summary configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge syslog-summary

Remove syslog-summary configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge syslog-summary

References

Summary

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