How To Install nixstatsagent on Ubuntu 18.04

In this tutorial we learn how to install nixstatsagent on Ubuntu 18.04. nixstatsagent is NixStats agent

Introduction

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

What is nixstatsagent

nixstatsagent is:

NixStats.com offers a web service of monitoring and displaying your server performance statistics.

This software is an OS-agnostic agent. It’s been optimized to have a very small CPU footprint and comes with an extendable set of useful plugins.

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

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

sudo apt-get update

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

sudo apt-get -y install nixstatsagent

Install nixstatsagent Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install nixstatsagent

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

sudo aptitude -y install nixstatsagent

How To Uninstall nixstatsagent on Ubuntu 18.04

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

sudo apt-get remove nixstatsagent

Uninstall nixstatsagent And Its Dependencies

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

sudo apt-get -y autoremove nixstatsagent

Remove nixstatsagent Configurations and Data

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

sudo apt-get -y purge nixstatsagent

Remove nixstatsagent configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge nixstatsagent

References

Summary

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