How To Install RethinkDB on Ubuntu 20.04 LTS

Updated on November 21, 2023
How To Install RethinkDB on Ubuntu 20.04 LTS header image

Are you looking for a database that is easy to use and scales well? If so, then you’re in the right place. RethinkDB is an open-source distributed document store that provides real-time push functionality.

This article explains how to install RethinkDB on Ubuntu 20.04 LTS.

Prerequisites

Add RethinkDB Repository & GPG Key

The default RethinkDB package is not included in the Ubuntu 20.04 repositories, so you need to add it before installing RethinkDB.

  1. RethinkDB team has its own repository for Ubuntu Linux. Add the repository to your APT.

     $ source /etc/lsb-release && echo "deb https://download.rethinkdb.com/repository/ubuntu-$DISTRIB_CODENAME $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list
  2. The package is signed with the GPG key from the RethinkDB team, so the GPG key should be added to avoid any warnings. Add the GPG key by running the following command.

     $ wget -qO- https://download.rethinkdb.com/repository/raw/pubkey.gpg | sudo apt-key add -
     OK
  3. After adding the repository and key, update the APT by running the following command.

     sudo apt update -y

Installing RethinkDB on Ubuntu 20.04

After adding the repository and key, run the following command to install RethinkDB on Ubuntu 20.04.

    sudo apt install rethinkdb -y

The installation process should take some time to finish. Once installed, start RethinkDB and make it auto start on boot time using the following command.

    sudo systemctl start rethinkdb 
    sudo systemctl enable rethinkdb

Accessing RethinkDB Web Interface

At this point, RethinkDB should be running on your Ubuntu 20.04 server. RethinkDB also provides a web interface to manage your clusters, which you can access using your browser. Now point your browser to localhost with:8080 added to the end of the URL.

    http://localhost:8080

Your RethinkDB web interface should be displayed.

Conclusion

Now you have a working instance of RethinkDB on your Ubuntu 20.04 server, which can be used for your applications.

More Information

To learn more about using RethinkDB, please refer to its official documentation.