How to install InfluxDB on Ubuntu 20.04 / 18.0 LTS

InfluxDB which is available in both community and enterprise edition is an open-source time-series database (TSDB) program. Meant to provide fast processing and high availability of data and for processing data in time series. Therefore, it joins the database management systems such as Prometheus, Graphite, and RRDtool.

Here we will see the commands for the installation of InfluxDB on Ubuntu 20.04 or 18.04  LTS.

Add InfluxDB Key

Open command Terminal and add the key that will ensure the packages we will download to install on Ubuntu 20.04 will be from an authentic source.

wget -qO- https://repos.influxdata.com/influxdb.key | sudo apt-key add -

Source the system version

Let your shell session retrieve the current version of the system using the source command. That will help the next command in this tutorial to set the appropriate repository corresponding to the available version of the Ubuntu you are using.

source /etc/lsb-release

Add the InfluxDB repo

As the InfluxDB is not present in the official repository of the Ubuntu to download, thus run the below command which will add the official repo of InfluxDB.

echo "deb https://repos.influxdata.com/${DISTRIB_ID,,} ${DISTRIB_CODENAME} stable" | sudo tee /etc/apt/sources.list.d/influxdb.list

The above command will automatically add the repo of this tool as per the Ubuntu version.

Update system

To let the system recognize the added InfluxDB repo, run the system update command:

sudo apt update

Install InfluxDB on Ubuntu 20.04

Finally, run the command to install InfluxDB on Ubuntu.

sudo apt install influxdb

 

 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.