How To Install mrtgutils on Debian 10

Learn how to install mrtgutils on Debian 10 with this tutorial. mrtgutils is Utilities to generate statistics for mrtg

Introduction

In this tutorial we learn how to install mrtgutils on Debian 10.

What is mrtgutils

mrtgutils is:

MRTGutils is a collection of simple utilities to generate output useful for mrtg. Many of the existing mrtg setups use shell or perl scripts to gather output. On busy systems, these scripts can generate a lot of extra load. These (small) C programs can return the given statistics more efficiently.

This package provides the following binaries that return:

  • mrtg-load: the current load average (5-minute average)
  • mrtg-ip-acct: the number of IP packets that have traversed an interface
  • mrtg-apache: the number of hits to a Apache web site

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

Install mrtgutils Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install mrtgutils

Install mrtgutils Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install mrtgutils

Install mrtgutils 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install mrtgutils

How To Uninstall mrtgutils on Debian 10

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

sudo apt-get remove mrtgutils

Uninstall mrtgutils And Its Dependencies

To uninstall mrtgutils and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove mrtgutils

Remove mrtgutils Configurations and Data

To remove mrtgutils configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge mrtgutils

Remove mrtgutils configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge mrtgutils

Dependencies

mrtgutils have the following dependencies:

References

Summary

In this tutorial we learn how to install mrtgutils package on Debian 10 using different package management tools: apt, apt-get and aptitude.