Install Valkey from Percona repositories¶
Percona provides Valkey packages for the following Linux distributions:
- Oracle Linux 8, Rocky Linux 8, and Alma Linux 8
- Oracle Linux 9, Rocky Linux 9, and Alma Linux 9
- Oracle Linux 10, Rocky Linux 10, and Alma Linux 10
- Amazon Linux 2023
- Ubuntu 22.04
- Ubuntu 24.04
- Ubuntu 26.04
- Debian 11
- Debian 12
- Debian 13
The packages are available for x86_64 and ARM64 architectures.
Prerequisites¶
- To install Valkey, you need access to the Percona repositories. Use the
percona-releaserepository management tool to enable the required repository. - Both Valkey and Redis use the same libraries that conflict with each other when you try to install Valkey on the same host with Redis. Therefore, either install Valkey on another host or remove Redis first before you install Valkey.
Install Valkey¶
Run the following commands as a root user or with sudo.
-
Install
percona-release:a. Fetch
percona-releasepackages from Percona web:$ wget https://repo.percona.com/apt/percona-release_latest.$(lsb_release -sc)_all.debb. Install the downloaded package with
dpkg:$ sudo dpkg -i percona-release_latest.$(lsb_release -sc)_all.debAfter you install this package, you can access the Percona repositories.
-
Enable the repository:
$ sudo percona-release enable valkey-91 release -
Remember to update the local cache:
$ sudo apt update -
Install Valkey:
$ sudo apt install percona-valkey-server
-
Install
percona-release:$ sudo yum install https://repo.percona.com/yum/percona-release-latest.noarch.rpm -
Enable the repository:
$ sudo percona-release enable valkey-91 release -
Install Valkey:
$ sudo yum install percona-valkey -
Start the Valkey service:
$ sudo systemctl start valkey -
Check the Valkey service:
$ sudo systemctl status valkey
Connect to Valkey¶
Use valkey-cli to connect to the Valkey server.
Check the connection:
$ valkey-cli ping
PONG
Run valkey-cli without any argument to start interactive mode:
$ valkey-cli
127.0.0.1:6379>
For information about Valkey, see the Valkey documentation website.
For information about Valkey commands, see the Valkey command reference.