How To Install ganglia-modules-linux on Ubuntu 18.04

In this tutorial we learn how to install ganglia-modules-linux on Ubuntu 18.04. ganglia-modules-linux is Ganglia extra modules for Linux (IO, filesystems, multicpu)

Introduction

In this tutorial we learn how to install ganglia-modules-linux on Ubuntu 18.04.

What is ganglia-modules-linux

ganglia-modules-linux is:

Ganglia’s core modules provide essential metrics like RAM and CPU load and most of them are implemented for any platform where Ganglia runs. The ganglia-modules-linux project is not constrained by the requirements to support all the Ganglia platforms: these modules are implemented exclusively for Linux users. The implementations are high-performance C code. The exact modules currently included are IO statistics (similar to the statistics from iostat), individual filesystem capacity statistics and per-core CPU metrics.

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

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

sudo apt-get update

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

sudo apt-get -y install ganglia-modules-linux

Install ganglia-modules-linux Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install ganglia-modules-linux using apt by running the following command:

sudo apt -y install ganglia-modules-linux

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

sudo aptitude -y install ganglia-modules-linux

How To Uninstall ganglia-modules-linux on Ubuntu 18.04

To uninstall only the ganglia-modules-linux package we can use the following command:

sudo apt-get remove ganglia-modules-linux

Uninstall ganglia-modules-linux And Its Dependencies

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

sudo apt-get -y autoremove ganglia-modules-linux

Remove ganglia-modules-linux Configurations and Data

To remove ganglia-modules-linux configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge ganglia-modules-linux

Remove ganglia-modules-linux configuration, data, and all of its dependencies

We can use the following command to remove ganglia-modules-linux configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge ganglia-modules-linux

References

Summary

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