Looking for another platform? See the complete list of platforms RethinkDB supports.
We provide binaries for 64-bit CentOS 7, 64-bit AlmaLinux 8, and 64-bit RockyLinux 8.
To install the server, first add the RethinkDB yum repository for CentOS, AlmaLinux, or RockyLinux, to your list of repositories.
sudo cat << EOF > /etc/yum.repos.d/rethinkdb.repo
[rethinkdb]
name=RethinkDB
enabled=1
baseurl=https://download.rethinkdb.com/repository/alma/8/x86_64/
gpgkey=https://download.rethinkdb.com/repository/raw/pubkey.gpg
gpgcheck=1
EOF
sudo yum install rethinkdb
sudo cat << EOF > /etc/yum.repos.d/rethinkdb.repo
[rethinkdb]
name=RethinkDB
enabled=1
baseurl=https://download.rethinkdb.com/repository/rocky/8/x86_64/
gpgkey=https://download.rethinkdb.com/repository/raw/pubkey.gpg
gpgcheck=1
EOF
sudo yum install rethinkdb
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
To get a 2.4.2 or later package, please complain on the RethinkDB issue tracker.
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
Install the main dependencies:
sudo yum install openssl-devel libcurl-devel wget tar m4 git-core \
gcc-c++ which make zlib-devel \
protobuf-devel bzip2 patch
Additional build dependencies are available in the EPEL repository.
sudo yum install epel-release
sudo yum install protobuf-devel protobuf-static jemalloc-devel
Download and extract the source tarball:
wget https://download.rethinkdb.com/repository/raw/dist/rethinkdb-2.4.4.tgz
tar xf rethinkdb-2.4.4.tgz
Kick off the build process:
cd rethinkdb-2.4.4
./configure --allow-fetch
make
sudo make install
These instructions have been tested on CentOS 6.5.
These instructions have not been tested for RethinkDB 2.4.2 or later.
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
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
Download and extract the source tarball:
wget https://download.rethinkdb.com/repository/raw/dist/rethinkdb-2.4.4.tgz
tar xf rethinkdb-2.4.4.tgz
Kick off the build process:
cd rethinkdb-2.4.4
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.