Building KeyDB
This document reviews how to build open source KeyDB yourself.
If you are looking for a prebuilt DEB or RPM package, take a look through our DOCS or check out https://keydb.dev/downloads
Build Example#
The following builds from the unstable (latest) branch of Github. This will contain the latest pushed changes. If you want to generate the latest official release please change branch to RELEASE_6
Build Issues & Rebuilding#
If you need to update your build, ensure you make distclean prior to building again.
Switch to a Release Branch or Dev Branch#
In order to build from the latest official release please change branches prior to make:
Build Flags#
Building with TLS support:#
Note that if you are building with TLS support, pass the BUILD_TLS=yes flag when calling make.
Build with systemd support#
To enable using systemd, use the USE_SYSTEMD=yes flag when calling make. You can now update your service file to use Type=notify and your keydb.conf file to use supervised systemd to take advantage of this support.
Building Other Linux Distributions#
The following dependencies are recommended for building and testing KeyDB
Ubuntu/Debian#
Archlinux#
Alpine#
CentOS 7#
Centos 8#
Fedora 35#
Additional dependencies for packaging:#
Source code for creating deb/rpm packages can be found in https://github.com/EQ-Alpha/KeyDB/tree/unstable/pkg
For Deb Packages:#
For RPM Packages#
Generate Latest Binaries (Ubuntu 18.04) with Docker#
If you want the latest open source binaries but do not want to run the build yourself, you can generate within a docker container. Please note this is building in Ubuntu 18.04 and is pulling from the unstable branch of KeyBD. Dockerfiles are posted in the Docker section if you want to build on a different image.
make a folder you would like to have the latest binaries dumped in, then run the following command with your updated path:
You should receive the following files: keydb-benchmark, keydb-check-aof, keydb-check-rdb, keydb-cli, keydb-sentinel, keydb-server