Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

89.5. valkey-9.1.2

In-memory key-value store — the BSD continuation of Redis

9.1.2-1 · BSD-3-Clause · 1.5 SBU · 5.5 MiB, 15 files · 41_system, 337 of 1047 · ports/core/database/valkey

Homepage: https://valkey.io/

Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/database.txt:

Redis relicensed source-available in 2024; this is the BSD-3 continuation.

Depends on: openssl.

Required by: no port names it.

Sources: valkey-9.1.2.tar.gz (4.2 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install valkey'

build.sh:

export LDFLAGS="$LDFLAGS -Wl,--strip-debug"
export CFLAGS="${CFLAGS/-O2/-O3} -DUSE_MALLOC_USABLE_SIZE"
make MALLOC=libc BUILD_TLS=yes USE_SYSTEMD=no DEBUG= PREFIX=/usr
make MALLOC=libc BUILD_TLS=yes USE_SYSTEMD=no DEBUG= PREFIX=$PKG/usr install

install -Dm644 valkey.conf   $PKG/etc/valkey/valkey.conf
install -Dm644 sentinel.conf $PKG/etc/valkey/sentinel.conf

Programs: redis-benchmark, redis-check-aof, redis-check-rdb, redis-cli, redis-sentinel, redis-server, valkey-benchmark, valkey-check-aof, valkey-check-rdb, valkey-cli, valkey-sentinel, valkey-server.

Directories: /etc/valkey, /usr/share/licenses/valkey.