# Install stockfish with Homebrew, apk, apt, dnf, Nix, winget, zypper

Strong open-source chess engine. Version 18 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install stockfish
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add stockfish
```

  Evidence: 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
```

  Evidence: 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
```

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

- Nix (92%):

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

  Evidence: 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
```

  Evidence: openSUSE Tumbleweed package metadata: stockfish from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- winget (92%):

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

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

## Package facts

- **Package key:** brew:stockfish
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/stockfish>
- **Version:** 18
- **Source summary:** Strong open-source chess engine
- **Homepage:** <https://stockfishchess.org/>
- **Repository:** <https://github.com/official-stockfish/Stockfish>
- **Upstream docs:** <https://github.com/official-stockfish/Stockfish#readme>
- **License:** GPL-3.0-only
- **Source archive:** <https://github.com/official-stockfish/Stockfish/archive/refs/tags/sf_18.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- stockfish (cli)
- stockfish (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 18
- Local data: ok
- Upstream repository: https://github.com/official-stockfish/Stockfish
- info: No package-manager update timestamp was available.
- info: No cached GitHub release or tag data was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <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


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

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

## Other Package-Manager Records

- 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-1.fc44: normalized package name match | Fedora Rawhide package metadata: stockfish from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Powerful open source chess engine | http://stockfishchess.org
- zypper - stockfish - 18-1.2: normalized package name match | openSUSE Tumbleweed package metadata: stockfish from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-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


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Game and emulation packages](https://www.automicvault.com/pkg/game-emulation-tools/) - Matched game or emulation metadata.
- [Homebrew utility packages](https://www.automicvault.com/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [lc0](https://www.automicvault.com/pkg/brew/lc0/) - Shares av.db curated category or tags: chess, chess-engine, cli, engine, games.
- [fairy-stockfish](https://www.automicvault.com/pkg/brew/fairy-stockfish/) - Shares av.db curated category or tags: chess, cli, engine, games, uci.
- [fairymax](https://www.automicvault.com/pkg/brew/fairymax/) - Shares av.db curated category or tags: chess, cli, engine, games.
- [gnu-chess](https://www.automicvault.com/pkg/brew/gnu-chess/) - Shares av.db curated category or tags: chess, cli, games, uci.
- [polyglot](https://www.automicvault.com/pkg/brew/polyglot/) - Shares av.db curated category or tags: chess, cli, games, uci.
- [cheops](https://www.automicvault.com/pkg/brew/cheops/) - Shares av.db curated category or tags: chess, cli, games.
- [xboard](https://www.automicvault.com/pkg/brew/xboard/) - Shares av.db curated category or tags: chess, cli, games.
- [fheroes2](https://www.automicvault.com/pkg/brew/fheroes2/) - Shares av.db curated category or tags: cli, engine, games.
- [stockfish](https://www.automicvault.com/pkg/npm/stockfish/) - Same normalized package name appears in another local ecosystem. Shared terms: chess, engine, stockfish.
- [stockfish](https://www.automicvault.com/pkg/npm/stockfish/) - Same normalized package name in another local ecosystem.

## Combined YAML source

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


## Sources

- 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
