# 使用 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
- **版本:** 1.0.0
- **来源摘要:** Constant key-value store, best for frequent read/infrequent write uses
- **主页:** <https://github.com/spotify/sparkey/>
- **仓库:** <https://github.com/spotify/sparkey>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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


## Combined YAML source

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


## 来源

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