# 使用 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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/valkey>
- **版本:** 9.1.1
- **来源摘要:** High-performance data structure server that primarily serves key/value workloads
- **主页:** <https://valkey.io>
- **仓库:** <https://github.com/valkey-io/valkey>
- **上游文档:** <https://valkey.io>
- **许可证:** BSD-3-Clause AND BSD-2-Clause AND BSL-1.0 AND MIT AND (CC0-1.0 OR BSD-2-Clause)
- **源码归档:** <https://github.com/valkey-io/valkey/archive/refs/tags/9.1.1.tar.gz>
- **最后更新:** 2026-07-22T01:03:48Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

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

## 依赖

- openssl@3

## 安装行为

- post-install 钩子: 未定义
- 服务: declared
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 9.1.1
- 管理器更新时间: 2026-07-22
- 本地数据: OK
- 上游仓库: https://github.com/valkey-io/valkey
- 检测到的最新版本: 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
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** valkey
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Conflicts With:** redis
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- 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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | RDMA module for valkey | https://valkey.io


## 相关链接

- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [redis](https://pkg.so/zh-hans/brew/redis/) - Shares pkgdb curated category or tags: cache, cli, data, key-value-store, server.
- [memcached](https://pkg.so/zh-hans/brew/memcached/) - Shares pkgdb curated category or tags: cache, cli, data, key-value-store, server.
- [redis@8.2](https://pkg.so/zh-hans/brew/redis-8-2/) - Shares pkgdb curated category or tags: cache, cli, data, key-value-store, server.
- [kyoto-tycoon](https://pkg.so/zh-hans/brew/kyoto-tycoon/) - Shares pkgdb curated category or tags: cache, cli, data, key-value-store, server.
- [activemq](https://pkg.so/zh-hans/brew/activemq/) - Shares pkgdb curated category or tags: cli, data, message-broker, server.
- [garnet](https://pkg.so/zh-hans/brew/garnet/) - Shares pkgdb curated category or tags: cache, cli, data, server.
- [keydb](https://pkg.so/zh-hans/brew/keydb/) - Shares pkgdb curated category or tags: cli, data, key-value-store, server.
- [redict](https://pkg.so/zh-hans/brew/redict/) - Shares pkgdb curated category or tags: cli, data, key-value-store, server.

## 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
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
