Install RethinkDB on CentOS

Looking for another platform? See the complete list of platforms RethinkDB supports.

With binaries

We provide binaries for both 32-bit and 64-bit CentOS 6, 64-bit CentOS 7, and 64-bit CentOS 8.

To install the server, first add the RethinkDB yum repository to your list of repositories.

For CentOS 8

sudo cat << EOF > /etc/yum.repos.d/rethinkdb.repo
[rethinkdb]
name=RethinkDB
enabled=1
baseurl=https://download.rethinkdb.com/repository/centos/8/x86_64/
gpgkey=https://download.rethinkdb.com/repository/raw/pubkey.gpg
gpgcheck=1
EOF

sudo yum install rethinkdb

For CentOS 7

sudo cat << EOF > /etc/yum.repos.d/rethinkdb.repo
[rethinkdb]
name=RethinkDB
enabled=1
baseurl=https://download.rethinkdb.com/repository/centos/7/x86_64/
gpgkey=https://download.rethinkdb.com/repository/raw/pubkey.gpg
gpgcheck=1
EOF

sudo yum install rethinkdb

For CentOS 6

sudo cat << EOF > /etc/yum.repos.d/rethinkdb.repo
[rethinkdb]
name=RethinkDB
enabled=1
baseurl=https://download.rethinkdb.com/repository/centos/6/x86_64/
gpgkey=https://download.rethinkdb.com/repository/raw/pubkey.gpg
gpgcheck=1
EOF

sudo yum install rethinkdb

Compile from source on CentOS 7

Get the build dependencies

Install the main dependencies:

sudo yum install openssl-devel libcurl-devel wget tar m4 git-core \
                 boost-static m4 gcc-c++ npm ncurses-devel which \
                 make ncurses-static zlib-devel zlib-static bzip2 \
                 patch

Install optional build dependencies

Additional build dependencies are available in the EPEL repository. Installing these will speed up the build process.

sudo yum install epel-release
sudo yum install protobuf-devel protobuf-static jemalloc-devel

Get the source code

Download and extract the source tarball:

wget https://download.rethinkdb.com/repository/raw/dist/rethinkdb-2.4.0.tgz
tar xf rethinkdb-2.4.0.tgz

Build RethinkDB

Kick off the build process:

cd rethinkdb-2.4.0
./configure --allow-fetch --dynamic jemalloc
make
sudo make install

Compile from source on CentOS 6

These instructions have been tested on CentOS 6.5.

Get the build dependencies

The version of GCC included with CentOS 6 is too old to compile RethinkDB. A newer version can be installed using devtoolset:

rpm --import http://ftp.scientificlinux.org/linux/scientific/5x/x86_64/RPM-GPG-KEYs/RPM-GPG-KEY-cern
sudo wget -O /etc/yum.repos.d/slc6-devtoolset.repo http://linuxsoft.cern.ch/cern/devtoolset/slc6-devtoolset.repo

Install the main dependencies:

sudo yum install devtoolset-2 ncurses-devel boost-static openssl-devel \
                 libcurl-devel wget tar which m4

Install optional build dependencies

CentOS provides neither a protobuf-devel package nor a jemalloc-devel package. Installing these dependencies from the EPEL repositories will allow RethinkDB to build more quickly:

sudo rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
sudo yum install protobuf-devel jemalloc-devel

Get the source code

Download and extract the source tarball:

wget https://download.rethinkdb.com/repository/raw/dist/rethinkdb-2.4.0.tgz
tar xf rethinkdb-2.4.0.tgz

Build RethinkDB

Kick off the build process:

cd rethinkdb-2.4.0
scl enable devtoolset-2 -- ./configure --dynamic jemalloc --allow-fetch
scl enable devtoolset-2 -- make
sudo make install

Next steps: Now that you’ve installed RethinkDB, it’s time to install client drivers for your language.