# 使用 Homebrew, MacPorts 安装 sparkey

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

## 安装

```sh
sudo av install brew:sparkey
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install sparkey
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install sparkey
```

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

## 软件包事实

- **软件包键:** brew:sparkey
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/sparkey>
- **版本:** 1.0.0
- **来源摘要:** Constant key-value store, best for frequent read/infrequent write uses
- **主页:** <https://github.com/spotify/sparkey/>
- **仓库:** <https://github.com/spotify/sparkey>
- **上游文档:** <https://github.com/spotify/sparkey#readme>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/spotify/sparkey/archive/refs/tags/sparkey-1.0.0.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- sparkey (cli)
- sparkey_bench (cli)
- sparkey (别名)
- sparkey_bench (别名)

## 依赖

- snappy

## 构建依赖

- autoconf
- automake
- libtool

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.0.0
- 本地数据: OK
- 上游仓库: https://github.com/spotify/sparkey
- 检测到的最新版本: sparkey-1.0.0 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

Sparkey is Spotify's simple persistent key-value storage library and CLI for read-heavy systems with infrequent bulk writes. It is intentionally not a distributed database; it is closer to an immutable on-disk hash table.

### 项目历史

The public repository was created in 2013. The official README says Sparkey came out of Spotify hackdays, motivated by services that needed to serve large static data sets with high throughput and low latency after limits in earlier storage choices became problematic.

### 采用历史

Sparkey's README documents use inside Spotify for user-facing services backed by periodically generated static storage files. Public packaging is narrower than general-purpose CLIs, but the supplied input shows entries in Homebrew and MacPorts, which fits a C library plus utility used by developers who need local tooling.

### 使用方式

Developers build it with the GNU build system, optionally generate API docs with Doxygen, and use the C library or the `sparkey` utility to inspect and read Sparkey index/log files. The design uses append-only log files and immutable hash index files optimized for bulk creation and concurrent independent readers.

### 为什么软件包爱好者会关心

Sparkey appeals to package and systems people because it is deliberately small, file-format-oriented infrastructure: a C library, command-line utility, Java and Python bindings, and explicit tradeoffs around immutability, compression, mmap-style serving, and bulk regeneration rather than online mutation.

### 时间线

- 2013: Public GitHub repository created.
- 2010s: README records Sparkey's origin in Spotify hackdays and production-oriented static-data serving use cases.
- 2020s: Supplied package-manager data lists Homebrew and MacPorts packages.

### Related projects

- The official README lists spotify/sparkey-python and spotify/sparkey-java, and compares Sparkey's motivation against earlier use of CDB and Tokyo Cabinet.

### 来源

- <https://api.github.com/repos/spotify/sparkey>
- <https://github.com/spotify/sparkey>
- <https://raw.githubusercontent.com/spotify/sparkey/master/README.md>
- input.source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** sparkey
- **Version Scheme:** 0
- **Revision:** 1
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- MacPorts - sparkey: normalized package name match | MacPorts ports tree: databases/sparkey/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [autoconf](https://www.automicvault.com/zh-hans/pkg/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://www.automicvault.com/zh-hans/pkg/brew/automake/) - Build dependency declared by Homebrew.
- [libtool](https://www.automicvault.com/zh-hans/pkg/brew/libtool/) - Build dependency declared by Homebrew.
- [rocksdb](https://www.automicvault.com/zh-hans/pkg/brew/rocksdb/) - Shares av.db curated category or tags: cli, data, embedded-database, key-value-store, key-value-stores.
- [berkeley-db](https://www.automicvault.com/zh-hans/pkg/brew/berkeley-db/) - Shares av.db curated category or tags: cli, data, embedded-database, key-value-store, storage.
- [tdb](https://www.automicvault.com/zh-hans/pkg/brew/tdb/) - Shares av.db curated category or tags: c-library, cli, data, embedded-database, key-value-store.
- [tokyo-cabinet](https://www.automicvault.com/zh-hans/pkg/brew/tokyo-cabinet/) - Shares av.db curated category or tags: c-library, cli, data, embedded-database, key-value-store.
- [dynomite](https://www.automicvault.com/zh-hans/pkg/brew/dynomite/) - Shares av.db curated category or tags: cli, data, key-value-store, storage.
- [lmdb](https://www.automicvault.com/zh-hans/pkg/brew/lmdb/) - Shares av.db curated category or tags: cli, data, embedded-database, key-value-store.
- [qdbm](https://www.automicvault.com/zh-hans/pkg/brew/qdbm/) - Shares av.db curated category or tags: c-library, cli, data, key-value-store.
- [tkrzw](https://www.automicvault.com/zh-hans/pkg/brew/tkrzw/) - Shares av.db curated category or tags: cli, data, embedded-database, key-value-store.
- [leveldb](https://www.automicvault.com/zh-hans/pkg/brew/leveldb/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, data, database, key, key-value.
- [redis-leveldb](https://www.automicvault.com/zh-hans/pkg/brew/redis-leveldb/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, data, database, key, key-value-store.

## Combined YAML source

View the package source record on GitHub. [combined/sparkey.yml](https://github.com/automic-vault/db/blob/main/combined/sparkey.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
