How To Install influxdb-client on Debian 9
Introduction
In this tutorial we learn how to install influxdb-client on Debian 9.
What is influxdb-client
influxdb-client is:
InfluxDB is a time series, metrics, and analytics database. It??s written in Go and has no external dependencies. That means once you install it there??s nothing else to manage (such as Redis, ZooKeeper, Cassandra, HBase, or anything else). InfluxDB is targeted at use cases for DevOps, metrics, sensor data, and real-time analytics.
This package contains the command line interface.
There are three methods to install influxdb-client on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install influxdb-client Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install influxdb-client using apt-get by running the following command:
sudo apt-get -y install influxdb-client
Install influxdb-client Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install influxdb-client using apt by running the following command:
sudo apt -y install influxdb-client
Install influxdb-client 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 influxdb-client using aptitude by running the following command:
sudo aptitude -y install influxdb-client
How To Uninstall influxdb-client on Debian 9
To uninstall only the influxdb-client package we can use the following command:
sudo apt-get remove influxdb-client
Uninstall influxdb-client And Its Dependencies
To uninstall influxdb-client and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove influxdb-client
Remove influxdb-client Configurations and Data
To remove influxdb-client configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge influxdb-client
Remove influxdb-client configuration, data, and all of its dependencies
We can use the following command to remove influxdb-client configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge influxdb-client
Dependencies
influxdb-client have the following dependencies:
References
Summary
In this tutorial we learn how to install influxdb-client package on Debian 9 using different package management tools: apt, apt-get and aptitude.