How To Install timescaledb on Fedora 34

timescaledb is Open-source time-series database powered by PostgreSQL

Introduction

In this tutorial we learn how to install timescaledb on Fedora 34.

What is timescaledb

TimescaleDB is an open-source database designed to make SQL scalable for time-series data. It is engineered up from PostgreSQL, providing automatic partitioning across time and space (partitioning key), as well as full SQL support.

We can use yum or dnf to install timescaledb on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install timescaledb.

Install timescaledb on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install timescaledb using dnf by running the following command:

sudo dnf -y install timescaledb

Install timescaledb on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install timescaledb using yum by running the following command:

sudo yum -y install timescaledb

How To Uninstall timescaledb on Fedora 34

To uninstall only the timescaledb package we can use the following command:

sudo dnf remove timescaledb

timescaledb Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/64
/usr/lib/.build-id/64/8cb9c66b2f23e6628b4c16f98c2fc0a97546b2
/usr/lib/.build-id/9c
/usr/lib/.build-id/9c/13d7586e1f8f890fb0c7c146f0f3ae48095f68
/usr/lib64/pgsql/timescaledb-2.1.0.so
/usr/lib64/pgsql/timescaledb.so
/usr/share/doc/timescaledb
/usr/share/doc/timescaledb/README.md
/usr/share/licenses/timescaledb
/usr/share/licenses/timescaledb/LICENSE-APACHE
/usr/share/pgsql/extension/timescaledb--1.1.0--2.1.0.sql
/usr/share/pgsql/extension/timescaledb--1.1.1--2.1.0.sql
/usr/share/pgsql/extension/timescaledb--1.2.0--2.1.0.sql
/usr/share/pgsql/extension/timescaledb--1.2.1--2.1.0.sql
/usr/share/pgsql/extension/timescaledb--1.2.2--2.1.0.sql
/usr/share/pgsql/extension/timescaledb--1.3.0--2.1.0.sql
/usr/share/pgsql/extension/timescaledb--1.3.1--2.1.0.sql
/usr/share/pgsql/extension/timescaledb--1.3.2--2.1.0.sql
/usr/share/pgsql/extension/timescaledb--1.4.0--2.1.0.sql
/usr/share/pgsql/extension/timescaledb--1.4.1--2.1.0.sql
/usr/share/pgsql/extension/timescaledb--1.4.2--2.1.0.sql
/usr/share/pgsql/extension/timescaledb--1.5.0--2.1.0.sql
/usr/share/pgsql/extension/timescaledb--1.5.1--2.1.0.sql
/usr/share/pgsql/extension/timescaledb--1.6.0--2.1.0.sql
/usr/share/pgsql/extension/timescaledb--1.6.1--2.1.0.sql
/usr/share/pgsql/extension/timescaledb--1.7.0--2.1.0.sql
/usr/share/pgsql/extension/timescaledb--1.7.1--2.1.0.sql
/usr/share/pgsql/extension/timescaledb--1.7.2--2.1.0.sql
/usr/share/pgsql/extension/timescaledb--1.7.3--2.1.0.sql
/usr/share/pgsql/extension/timescaledb--1.7.4--2.1.0.sql
/usr/share/pgsql/extension/timescaledb--1.7.5--2.1.0.sql
/usr/share/pgsql/extension/timescaledb--2.0.0--2.1.0.sql
/usr/share/pgsql/extension/timescaledb--2.0.0-rc1--2.1.0.sql
/usr/share/pgsql/extension/timescaledb--2.0.0-rc2--2.1.0.sql
/usr/share/pgsql/extension/timescaledb--2.0.0-rc3--2.1.0.sql
/usr/share/pgsql/extension/timescaledb--2.0.0-rc4--2.1.0.sql
/usr/share/pgsql/extension/timescaledb--2.0.1--2.1.0.sql
/usr/share/pgsql/extension/timescaledb--2.0.2--2.1.0.sql
/usr/share/pgsql/extension/timescaledb--2.1.0.sql
/usr/share/pgsql/extension/timescaledb.control
/usr/lib/.build-id
/usr/lib/.build-id/d7
/usr/lib/.build-id/d7/dd6afa98070072271c88da6e012cd922ebe9c5
/usr/lib/.build-id/eb
/usr/lib/.build-id/eb/b1bb2942cfe00d1dd63f17cfab9d0f92fcbd12
/usr/lib64/pgsql/timescaledb-2.3.1.so
/usr/lib64/pgsql/timescaledb.so
/usr/share/doc/timescaledb
/usr/share/doc/timescaledb/README.md
/usr/share/licenses/timescaledb
/usr/share/licenses/timescaledb/LICENSE-APACHE
/usr/share/pgsql/extension/timescaledb--1.1.0--2.3.1.sql
/usr/share/pgsql/extension/timescaledb--1.1.1--2.3.1.sql
/usr/share/pgsql/extension/timescaledb--1.2.0--2.3.1.sql
/usr/share/pgsql/extension/timescaledb--1.2.1--2.3.1.sql
/usr/share/pgsql/extension/timescaledb--1.2.2--2.3.1.sql
/usr/share/pgsql/extension/timescaledb--1.3.0--2.3.1.sql
/usr/share/pgsql/extension/timescaledb--1.3.1--2.3.1.sql
/usr/share/pgsql/extension/timescaledb--1.3.2--2.3.1.sql
/usr/share/pgsql/extension/timescaledb--1.4.0--2.3.1.sql
/usr/share/pgsql/extension/timescaledb--1.4.1--2.3.1.sql
/usr/share/pgsql/extension/timescaledb--1.4.2--2.3.1.sql
/usr/share/pgsql/extension/timescaledb--1.5.0--2.3.1.sql
/usr/share/pgsql/extension/timescaledb--1.5.1--2.3.1.sql
/usr/share/pgsql/extension/timescaledb--1.6.0--2.3.1.sql
/usr/share/pgsql/extension/timescaledb--1.6.1--2.3.1.sql
/usr/share/pgsql/extension/timescaledb--1.7.0--2.3.1.sql
/usr/share/pgsql/extension/timescaledb--1.7.1--2.3.1.sql
/usr/share/pgsql/extension/timescaledb--1.7.2--2.3.1.sql
/usr/share/pgsql/extension/timescaledb--1.7.3--2.3.1.sql
/usr/share/pgsql/extension/timescaledb--1.7.4--2.3.1.sql
/usr/share/pgsql/extension/timescaledb--1.7.5--2.3.1.sql
/usr/share/pgsql/extension/timescaledb--2.0.0--2.3.1.sql
/usr/share/pgsql/extension/timescaledb--2.0.0-rc1--2.3.1.sql
/usr/share/pgsql/extension/timescaledb--2.0.0-rc2--2.3.1.sql
/usr/share/pgsql/extension/timescaledb--2.0.0-rc3--2.3.1.sql
/usr/share/pgsql/extension/timescaledb--2.0.0-rc4--2.3.1.sql
/usr/share/pgsql/extension/timescaledb--2.0.1--2.3.1.sql
/usr/share/pgsql/extension/timescaledb--2.0.2--2.3.1.sql
/usr/share/pgsql/extension/timescaledb--2.1.0--2.3.1.sql
/usr/share/pgsql/extension/timescaledb--2.1.1--2.3.1.sql
/usr/share/pgsql/extension/timescaledb--2.2.0--2.3.1.sql
/usr/share/pgsql/extension/timescaledb--2.2.1--2.3.1.sql
/usr/share/pgsql/extension/timescaledb--2.3.0--2.3.1.sql
/usr/share/pgsql/extension/timescaledb--2.3.1.sql
/usr/share/pgsql/extension/timescaledb.control

References

Summary

In this tutorial we learn how to install timescaledb on Fedora 34 using yum and dnf.