# 使用 Homebrew, apk, apt, dnf, Nix, zypper, winget 安装 stockfish

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

## 安装

```sh
sudo av install brew:stockfish
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install stockfish
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add stockfish
```

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

- Debian apt (92%):

```sh
sudo apt install stockfish
```

  证据: Debian stable package indexes: stockfish from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install stockfish
```

  证据: Fedora Rawhide package metadata: stockfish from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#stockfish
```

  证据: nixpkgs package indexes: pkgs/by-name/st/stockfish/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install stockfish
```

  证据: openSUSE Tumbleweed package metadata: stockfish from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- winget (92%):

```sh
winget install --id Stockfish.Stockfish -e
```

  证据: Windows Package Manager source index: Stockfish.Stockfish from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:stockfish
- **软件包管理器:** Homebrew
- **版本:** 18
- **来源摘要:** Strong open-source chess engine
- **主页:** <https://stockfishchess.org/>
- **仓库:** <https://github.com/official-stockfish/Stockfish>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- stockfish (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Stockfish is a free, strong UCI chess engine derived from Glaurung 2.1. It is one of the rare game-related CLI packages that is both an end-user analysis engine and a serious benchmark target for compilers, CPUs, and package builds.

### 项目历史

The official Stockfish about page says the project began with Tord Romstad's open source Glaurung engine. In November 2008, Marco Costalba forked Glaurung 2.1 and introduced Stockfish 1.0; Tord Romstad and Joona Kiiski then joined Stockfish and Glaurung faded away.

### 采用历史

The official README describes Stockfish as a UCI engine without its own GUI, meant to be used by independently developed chess interfaces. It also points contributors to Fishtest, where donated hardware tests engine changes, and the input metadata shows packaging across Homebrew, Debian, Fedora, Nix, Ubuntu, WinGet, Alpine, and openSUSE-related systems.

### 使用方式

Stockfish is commonly run as an engine behind a GUI or analysis platform using the Universal Chess Interface. Developers also compile it directly from source with the included Makefile, often using profile-guided builds on Unix-like systems.

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

Package maintainers care about Stockfish because engine strength, CPU feature targets, GPL source distribution, neural-network data files, and reproducible builds all matter. A package can be both a chess tool and a performance-sensitive native-code artifact.

### 时间线

- 2008: Marco Costalba forked Glaurung 2.1 and introduced Stockfish 1.0, according to the official about page.
- 2014: The official-stockfish/Stockfish GitHub repository was created.
- 2020s: Official README documents NNUE neural-network files in the distribution and Fishtest-backed development.
- 2020s: Official docs and README continue to describe Stockfish as a free, strong UCI engine.

### Related projects

- Glaurung 2.1 is the engine Stockfish derives from.
- Fishtest is the official distributed testing framework used for development.
- Leela Chess Zero is credited by the README as a source of neural-network training data.

### 来源

- <https://api.github.com/repos/official-stockfish/Stockfish>
- <https://github.com/official-stockfish/Stockfish#readme>
- <https://official-stockfish.github.io/docs>
- <https://stockfishchess.org/about/>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Debian apt - stockfish - 17-1: normalized package name match | Debian stable package indexes: stockfish from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | strong chess engine, to play chess against | https://stockfishchess.org
- Nix - stockfish: normalized package name match | nixpkgs package indexes: pkgs/by-name/st/stockfish/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - stockfish - 16-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: stockfish from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | strong chess engine, to play chess against | https://stockfishchess.org
- apk - stockfish - 18-r0: normalized package name match | Alpine Linux edge package indexes: stockfish from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Strong chess engine | https://stockfishchess.org/
- dnf - stockfish - 18-5.fc45: normalized package name match | Fedora Rawhide package metadata: stockfish from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Powerful open source chess engine | http://stockfishchess.org
- zypper - stockfish - 18-1.4: normalized package name match | openSUSE Tumbleweed package metadata: stockfish from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Chess engine | https://stockfishchess.org
- winget - Stockfish.Stockfish: normalized package name match | Windows Package Manager source index: Stockfish.Stockfish from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/stockfish.yml](https://github.com/mxcl/pkgdb/blob/main/combined/stockfish.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
