How To Install libcollectdclient-dev on Ubuntu 18.04

In this tutorial we learn how to install libcollectdclient-dev on Ubuntu 18.04. libcollectdclient-dev is client library for collectds control interface (development files)

Introduction

In this tutorial we learn how to install libcollectdclient-dev on Ubuntu 18.04.

What is libcollectdclient-dev

libcollectdclient-dev is:

libcollectdclient provides an API to access the control interface provided by the unixsock plugin of collectd, a statistics collection and monitoring daemon. It can be used to access values collected by collectd or dispatch new values and notifications to the daemon. This allows for integration with other applications such as monitoring solutions.

This package contains the header files and the static library.

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

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

sudo apt-get update

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

sudo apt-get -y install libcollectdclient-dev

Install libcollectdclient-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libcollectdclient-dev

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

sudo aptitude -y install libcollectdclient-dev

How To Uninstall libcollectdclient-dev on Ubuntu 18.04

To uninstall only the libcollectdclient-dev package we can use the following command:

sudo apt-get remove libcollectdclient-dev

Uninstall libcollectdclient-dev And Its Dependencies

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

sudo apt-get -y autoremove libcollectdclient-dev

Remove libcollectdclient-dev Configurations and Data

To remove libcollectdclient-dev configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libcollectdclient-dev

Remove libcollectdclient-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libcollectdclient-dev

References

Summary

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