InfluxDB on Ubuntu 20.04, which is available in both community and enterprise editions 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. Relational databases like MySQL are extremely flexible due to their complex structure and accordingly require high memory and computing capacity, whereas InfluxDB uses a simple structure. It enables databases to be managed quickly and reliably without the need for extensive analysis of a tabular structure or the analysis of numerous cross-references.
Installing InfluxDB on Ubuntu 20.04 LTS Linux
Import Key used to sign packages
Open the 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 -
Add the repository for APT
As the InfluxDB is not present in the official repository of Ubuntu to download, thus run the below command which will add the official repo of this Database provided by its developers.
sudo apt install lsb-release
export DISTRIB_ID=$(lsb_release -si); export DISTRIB_CODENAME=$(lsb_release -sc)
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.
Run System Update
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
How to update to the latest version
We have used the repository of InfluxDB to install it on Ubuntu 20.04. Therefore to install to the latest version, run the system update command.
sudo apt update && sudo apt upgrade
Uninstall InfluxDB from Ubuntu 20.04
Those who don’t have the InfluxDB anymore on their system anymore can run the completely remove it using the given commands:
sudo apt autoremove --purge influxdb
For removing the repo:
sudo rm /etc/apt/sources.list.d/influxdb.list
Other Articles:
⇒ Install the latest Linux Kernel on Ubuntu 20.04 Focal Fossa via PPA
⇒ How to manually install Nginx on Ubuntu 20.04 LTS
⇒ Install and use Ansible on Ubuntu 20.04 LTS
⇒ Install Microsoft SQL Server 2022 preview on Ubuntu 20.04 LTS