Skip to content
Runbook

Install Redis on Arch

Ultra-fast in-memory key-value database, used as a cache, message broker, and session store.

Cachecachein-memorykey-valuenosqlpub-subbroker

Installation

Server — Valkey (pacman) · pacman
sudo pacman -S valkey

The redis package left the official repositories (moved to the AUR): valkey is the compatible replacement shipped in extra.

Verify the installation

Verify
valkey-cli --version

Service

Start
sudo systemctl start valkey
Stop
sudo systemctl stop valkey
Status
sudo systemctl status valkey
Restart
sudo systemctl restart valkey
On boot
sudo systemctl enable valkey

Important files

TypePathDescription
config/etc/valkey/valkey.confMain server configuration file.
data/var/lib/valkeyPersistence directory (dump.rdb / appendonly.aof).

Default ports

6379

Command-line tools

  • valkey-cliCommand-line client (equivalent of redis-cli).
  • valkey-serverThe Valkey server binary.

Uninstall

Uninstall
sudo systemctl stop valkey
sudo pacman -Rns valkey

Good to know

  • Since April 2025, the redis package was removed from the extra repository (deprecated, moved to the AUR) in favor of valkey. The systemd unit is called valkey and is not enabled automatically after installation.

Installation on Arch Linux

The redis package was removed from the official extra repository (deprecated and moved to the AUR since April 2025) in favor of Valkey, the open source fork (BSD license) born from Redis's license change in March 2024. Valkey is a drop-in replacement: same protocol, same configuration and data format. Install it with sudo pacman -S valkey. On Arch, packages track the pace of upstream releases (rolling release), so you generally get a recent version.

If you specifically want genuine Redis, it remains available via the AUR (for example the redis package), at the cost of a local build; remember to inspect the PKGBUILD before building.

Enabling the service

Like most Arch packages, the service is neither started nor enabled after installation: it is up to you to do so. Use sudo systemctl enable --now valkey to start it and enable it at boot in a single command. The unit is called valkey. Verify connectivity with valkey-cli ping (response PONG).

Configuration

The configuration is in /etc/valkey/valkey.conf and the data in /var/lib/valkey. By default, the server only listens on the loopback interface. Before any network exposure, set requirepass and restrict access via the firewall. Uninstalling with pacman -Rns removes the package and its orphaned dependencies, but keeps the data in /var/lib/valkey: delete this directory manually if you want to start fresh.