influx command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
influx: command not found
or when using sudo you get the following error message
sudo: influx: command not found
Solutions to influx: command not found
How To Fix influx: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu influx is provided by influxdb-client package.
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.
To fix this problem, we can install more using the command below.
sudo apt-get -y install influxdb-client
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install influxdb-client.
sudo apt -y install influxdb-client
Or if you have aptitude installed you can use the following command.
sudo aptitude install influxdb-client
Summary
In this tutorial we learn how to fix influx command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.