# 使用 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
- **版本:** 1.0.1
- **来源摘要:** Sparklines for the shell
- **主页:** <https://zachholman.com/spark/>
- **仓库:** <https://github.com/holman/spark>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- spark (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
