# 使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, zypper, apt 安装 valkey

查看 valkey 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:valkey
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install valkey
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install valkey
```

  证据: MacPorts ports tree: databases/valkey/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add valkey
```

  证据: Alpine Linux edge package indexes: valkey from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install valkey
```

  证据: Fedora Rawhide package metadata: valkey from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#valkey
```

  证据: nixpkgs package indexes: pkgs/by-name/va/valkey/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S valkey
```

  证据: Arch Linux sync databases: valkey from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install valkey
```

  证据: openSUSE Tumbleweed package metadata: valkey from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

- Debian apt (92%):

```sh
sudo apt install valkey-sentinel
```

  证据: Debian stable package indexes: valkey-sentinel from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

## 软件包事实

- **软件包键:** brew:valkey
- **软件包管理器:** Homebrew
- **版本:** 9.1.1
- **来源摘要:** High-performance data structure server that primarily serves key/value workloads
- **主页:** <https://valkey.io>
- **仓库:** <https://github.com/valkey-io/valkey>
- **最后更新:** 2026-07-22T01:03:48Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- valkey-benchmark (别名)
- valkey-check-aof (别名)
- valkey-check-rdb (别名)
- valkey-cli (别名)
- valkey-sentinel (别名)
- valkey-server (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 9.1.1
## 项目历史与用法

Valkey was created in March 2024 as the open source community's continuation of the Redis codebase after Redis Inc. changed Redis licensing. The Linux Foundation announced Valkey on March 28, 2024, saying the project would continue from Redis 7.2.4 under the BSD 3-clause license with open governance. The initial backers and contributors included former Redis maintainers and engineers from AWS, Google Cloud, Oracle, Ericsson, Snap, and others, with Madelyn Olson, Ping Xie, and Viktor Soderqvist among the quoted early maintainers and supporters.

### 项目历史

Valkey was created in March 2024 as the open source community's continuation of the Redis codebase after Redis Inc. changed Redis licensing. The Linux Foundation announced Valkey on March 28, 2024, saying the project would continue from Redis 7.2.4 under the BSD 3-clause license with open governance. The initial backers and contributors included former Redis maintainers and engineers from AWS, Google Cloud, Oracle, Ericsson, Snap, and others, with Madelyn Olson, Ping Xie, and Viktor Soderqvist among the quoted early maintainers and supporters.

Within its first year Valkey moved from fork to independent release train. The Linux Foundation's April 2025 retrospective says Valkey 8.0 shipped within the first six months, followed by Valkey 8.1 in April 2025, with work focused on performance, reliability, observability, extensibility, and efficiency. The same account notes rapid organizational growth: support from more than 20 companies in the first few months, nearly 50 contributing companies after a year, and community modules for search, JSON, and probabilistic Bloom filters.

### 采用历史

The project's early history is unusually tied to governance and ecosystem trust rather than a new technical idea. Linux Foundation materials describe Valkey as a way to preserve a permissively licensed, collaboratively developed in-memory data store after years of Redis adoption for caching, low-latency data storage, real-time analytics, sessions, message brokering, and related workloads. In practice, that made Valkey attractive to vendors, distributions, and operators that wanted Redis-compatible behavior without a source-available license transition.

Within its first year Valkey moved from fork to independent release train. The Linux Foundation's April 2025 retrospective says Valkey 8.0 shipped within the first six months, followed by Valkey 8.1 in April 2025, with work focused on performance, reliability, observability, extensibility, and efficiency. The same account notes rapid organizational growth: support from more than 20 companies in the first few months, nearly 50 contributing companies after a year, and community modules for search, JSON, and probabilistic Bloom filters.

### 使用方式

Technically, Valkey remains an in-memory data structure server used as a database, cache, message broker, and streaming engine. Its documentation lists strings, hashes, lists, sets, sorted sets, bitmaps, HyperLogLogs, geospatial indexes, and streams, along with replication, Lua scripting, eviction, transactions, persistence, Sentinel high availability, and Cluster partitioning. The common package-level usage pattern is therefore familiar to Redis users: run `valkey-server`, inspect or script with `valkey-cli`, use client libraries from application code, and migrate Redis OSS deployments where protocol and command compatibility fit.

### 来源

- <https://valkey.io/topics/introduction/>
- <https://www.linuxfoundation.org/blog/a-year-of-valkey>
- <https://www.linuxfoundation.org/press/linux-foundation-launches-open-source-valkey-community>


## 安全说明

formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- formula declares a Homebrew service


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: valkey.conf, /etc/valkey/6379.conf, /etc/myvalkey.conf

## Credential files

- Unix: valkey.conf
## 其他软件包管理器记录

- Debian apt - valkey-sentinel - 8.1.1+dfsg1-3+deb13u2: normalized package name match | Debian stable package indexes: valkey-sentinel from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Persistent key-value database with network interface (monitoring) | https://valkey.io
- Debian apt - valkey-server - 8.1.1+dfsg1-3+deb13u2: normalized package name match | Debian stable package indexes: valkey-server from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Persistent key-value database with network interface | https://valkey.io
- Debian apt - valkey-tools - 8.1.1+dfsg1-3+deb13u2: normalized package name match | Debian stable package indexes: valkey-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Persistent key-value database with network interface (client) | https://valkey.io
- Nix - valkey: normalized package name match | nixpkgs package indexes: pkgs/by-name/va/valkey/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - valkey - 9.0.4-r0: normalized package name match | Alpine Linux edge package indexes: valkey from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Open source high-performance key/value datastore (fork of Redis) | https://valkey.io/
- apk - valkey-benchmark - 9.0.4-r0: normalized package name match | Alpine Linux edge package indexes: valkey-benchmark from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Valkey benchmarking tool | https://valkey.io/
- apk - valkey-cli - 9.0.4-r0: normalized package name match | Alpine Linux edge package indexes: valkey-cli from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Valkey CLI client | https://valkey.io/
- apk - valkey-compat - 9.0.4-r0: normalized package name match | Alpine Linux edge package indexes: valkey-compat from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Valkey command symlinks and system group for compatibility with redis | https://valkey.io/
- apk - valkey-openrc - 9.0.4-r0: normalized package name match | Alpine Linux edge package indexes: valkey-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Open source high-performance key/value datastore (fork of Redis) (OpenRC init scripts) | https://valkey.io/
- apk - valkey-tls - 9.0.4-r0: normalized package name match | Alpine Linux edge package indexes: valkey-tls from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | TLS module for Valkey | https://valkey.io/
- dnf - valkey - 9.1.1-1.fc45: normalized package name match | Fedora Rawhide package metadata: valkey from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A persistent key-value database | https://valkey.io
- dnf - valkey-compat-redis - 9.1.1-1.fc45: normalized package name match | Fedora Rawhide package metadata: valkey-compat-redis from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Conversion script and compatibility symlinks for Redis | https://valkey.io
- dnf - valkey-compat-redis-devel - 9.1.1-1.fc45: normalized package name match | Fedora Rawhide package metadata: valkey-compat-redis-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Compatibility development header for Redis API Valkey modules | https://valkey.io
- dnf - valkey-devel - 9.1.1-1.fc45: normalized package name match | Fedora Rawhide package metadata: valkey-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development header for Valkey module development | https://valkey.io
- dnf - valkey-doc - 9.1.1-1.fc45: normalized package name match | Fedora Rawhide package metadata: valkey-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Documentation and extra man pages for valkey | https://valkey.io
- dnf - valkey-rdma - 9.1.1-1.fc45: normalized package name match | Fedora Rawhide package metadata: valkey-rdma from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | RDMA module for valkey | https://valkey.io


## Combined YAML source

View the package source record on GitHub. [combined/valkey.yml](https://github.com/mxcl/pkgdb/blob/main/combined/valkey.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
