# 使用 Homebrew, apk, MacPorts, Nix, chocolatey, scoop 安装 spark

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

## 安装

```sh
sudo av install brew:spark
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install spark
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install spark
```

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

### Linux

- apk (92%):

```sh
sudo apk add spark
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#spark
```

  证据: nixpkgs package indexes: spark from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

### Windows

- Chocolatey (92%):

```sh
choco install Spark
```

  证据: Chocolatey community package catalog: Spark from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','skaffold'

- Scoop (92%):

```sh
scoop install main/spark
```

  证据: Scoop official bucket manifest trees: bucket/spark.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:spark
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/spark>
- **版本:** 1.0.1
- **来源摘要:** Sparklines for the shell
- **主页:** <https://zachholman.com/spark/>
- **仓库:** <https://github.com/holman/spark>
- **上游文档:** <https://zachholman.com/spark/>
- **许可证:** MIT
- **源码归档:** <https://github.com/holman/spark/archive/refs/tags/v1.0.1.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- spark (cli)
- spark (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

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

spark is a small shell command for rendering sparklines in the terminal. It belongs to the Unix tradition of tiny composable filters: feed it numbers from another command and get a compact text graph back.

### 项目历史

The public repository was created in 2011. The official README presents spark as a shell script that can be dropped somewhere on the user's PATH, with usage examples for direct numeric input, Git commit counts, earthquake feeds, source-code line lengths, and shell prompts.

### 采用历史

spark spread as a tiny developer-utility package because it is portable shell, easy to install, and visually memorable. The official README mentions Homebrew installation, while the supplied package data also lists APK, MacPorts, Nix, Scoop, and Chocolatey entries.

### 使用方式

Users run `spark` with numbers separated by spaces, commas, or other common delimiters. Its intended style is pipeline-friendly: combine tools such as `git`, `cut`, `awk`, `curl`, and `sed`, then pass the numeric stream to `spark` for a quick terminal visualization.

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

spark is beloved by package nerds as a one-file CLI that proves a package can be both tiny and useful. It is the sort of tool that turns up in dotfiles, shell demos, and package-manager indexes because it makes the command line feel more graphical without leaving text mode.

### 时间线

- 2011: Public GitHub repository created.
- 2010s: README documents Homebrew installation and a wiki for collected usage examples.
- 2020s: The tool remains packaged across several package-manager ecosystems in the supplied input data.

### Related projects

- spark relates to command-line text visualization tools, Unix filters, shell prompt utilities, and the broader sparklines idea popularized for compact data display.

### 来源

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


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal

## 源数据库详情

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

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

- Nix - spark: normalized package name match | nixpkgs package indexes: spark from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- apk - spark - 2.8.3-r1: normalized package name match | Alpine Linux edge package indexes: spark from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Cross-platform IM client optimized for businesses and organizations. | https://www.igniterealtime.org/projects/spark/
- MacPorts - spark: normalized package name match | MacPorts ports tree: textproc/spark/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - Spark: normalized package name match | Chocolatey community package catalog: Spark from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','skaffold'
- Scoop - main/spark: normalized package name match | Scoop official bucket manifest trees: bucket/spark.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 相关链接

- [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.
- [csvlens](https://pkg.so/zh-hans/brew/csvlens/) - Shares pkgdb curated category or tags: cli, data, terminal.
- [visidata](https://pkg.so/zh-hans/brew/visidata/) - Shares pkgdb curated category or tags: cli, data, terminal.
- [rainfrog](https://pkg.so/zh-hans/brew/rainfrog/) - Shares pkgdb curated category or tags: cli, data, terminal.
- [metabase](https://pkg.so/zh-hans/brew/metabase/) - Shares pkgdb curated category or tags: cli, data, data-visualization.
- [iredis](https://pkg.so/zh-hans/brew/iredis/) - Shares pkgdb curated category or tags: cli, data, terminal.
- [clip](https://pkg.so/zh-hans/brew/clip/) - Shares pkgdb curated category or tags: cli, data, data-visualization.
- [opensearch-dashboards](https://pkg.so/zh-hans/brew/opensearch-dashboards/) - Shares pkgdb curated category or tags: cli, data, data-visualization.
- [yozefu](https://pkg.so/zh-hans/brew/yozefu/) - Shares pkgdb curated category or tags: cli, data, terminal.
- [distribution](https://pkg.so/zh-hans/brew/distribution/) - Local package facts share a topical domain. Shared terms: cli, data, terminal, visualization.

## Combined YAML source

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


## 来源

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