# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 gnu-chess

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

## 安装

```sh
sudo av install brew:gnu-chess
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gnu-chess
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gnuchess
```

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

### Linux

- apk (92%):

```sh
sudo apk add gnuchess
```

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

- Debian apt (92%):

```sh
sudo apt install gnuchess
```

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

- dnf (92%):

```sh
sudo dnf install gnuchess
```

  证据: Fedora Rawhide package metadata: gnuchess 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#gnuchess
```

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

- pacman (92%):

```sh
sudo pacman -S gnuchess
```

  证据: Arch Linux sync databases: gnuchess from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install gnuchess
```

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

## 软件包事实

- **软件包键:** brew:gnu-chess
- **软件包管理器:** Homebrew
- **版本:** 6.3.0
- **来源摘要:** Chess-playing program
- **主页:** <https://www.gnu.org/software/chess/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gnuchess (别名)
- gnuchessu (别名)
- gnuchessx (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

GNU Chess is the GNU Project chess program: a command-line chess interface and engine that became important both as a playable free software game and as a stable backend for chess front ends.

### 项目历史

GNU Chess belongs to the early tradition of free software chess programs and retained long-term value because it shipped complete source, a command interface, and portable Unix build tooling. The GNU project later renamed its distribution file from `chess` to `gnuchess`, reflecting the conventional package and executable identity used by distributions.

The version 6 line was a major architectural turn. The GNU Chess manual explains that the last 5.x release was 5.08 in 2011, after which Fruit 2.1, by Fabien Letouzey, became the base for GNU Chess v6 after copyright assignment to the Free Software Foundation. GNU Chess 6 kept backward-compatible external interfaces while adapting Fruit through a PolyGlot-based protocol adapter.

The NEWS file records GNU Chess 6.0.0 as the first official v6 release in April 2011. Subsequent releases added internationalization, graphical terminal board display, UCI mode fixes, XBoard integration files, man-page generation, PGN replay, command history, configuration handling, and security fixes.

### 采用历史

GNU Chess has been widely used as a packaged chess engine because it works from a terminal yet also plugs into graphical front ends. The v6 developer notes explicitly cite worldwide use as the reason for preserving old interfaces while adopting Fruit. The manual describes use as both an interactive text-console program and a backend engine for XBoard-compatible front ends, with UCI mode also available.

### 使用方式

Practitioners run `gnuchess` directly for terminal play, script it for engine experiments, pair it with XBoard or other chess front ends, or invoke UCI mode when a UCI-speaking interface is desired. Package users also rely on its book files, PGN loading and saving, FEN/EPD workflows, and configuration file behavior for repeatable engine sessions.

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

GNU Chess matters to package culture because it is both a historically recognizable GNU game and an engine compatibility artifact. It links the older XBoard/Chess Engine Communication Protocol world with the UCI engine world, making it useful for testing front ends, packaging chess engine stacks, and keeping a free command-line baseline available across Unix-like systems.

### 时间线

- 2011: GNU Chess 5.08 ended the 5.x line.
- 2011: GNU Chess 6.0.0 released with Fruit 2.1 and PolyGlot-derived adapter architecture.
- 2013: GNU Chess 6.1.0 added gettext internationalization and terminal graphic mode.
- 2015: GNU Chess 6.2.0 added tighter XBoard integration and a generated man page.
- 2021: GNU Chess 6.2.9 fixed CVE-2021-30184 in PGN loading and replay.

### Related projects

- Fruit 2.1 supplies the engine base for GNU Chess v6.
- PolyGlot supplies the adapter model used to bridge UCI and XBoard-style communication.
- XBoard and WinBoard are front ends in the chess ecosystem that shaped GNU Chess interface compatibility.

### 来源

- <https://ftp.gnu.org/gnu/chess/README.gnuchess>
- <https://git.savannah.gnu.org/cgit/chess.git/plain/NEWS>
- <https://git.savannah.gnu.org/cgit/chess.git/plain/README>
- <https://www.gnu.org/software/chess/manual/html_node/Background-of-v6.html>
- <https://www.gnu.org/software/chess/manual/html_node/Chess-engine-protocol-adapter.html>
- <https://www.gnu.org/software/chess/manual/html_node/Guidelines-followed-to-develop-GNU-Chess-v6.html>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- MacPorts - gnuchess: installed executable or alias match | MacPorts ports tree: games/gnuchess/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Debian apt - gnuchess - 6.2.9-0.1: installed executable or alias match | Debian stable package indexes: gnuchess from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Plays a game of chess, either against the user or against itself | https://www.gnu.org/software/chess/
- Nix - gnuchess: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/gn/gnuchess/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - gnuchess - 6.2.7-1build1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: gnuchess from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Plays a game of chess, either against the user or against itself | https://www.gnu.org/software/chess/
- apk - gnuchess - 6.3.0-r0: installed executable or alias match | Alpine Linux edge package indexes: gnuchess from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | The GNU chess program | https://www.gnu.org/software/chess/
- apk - gnuchess-doc - 6.3.0-r0: installed executable or alias match | Alpine Linux edge package indexes: gnuchess-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | The GNU chess program (documentation) | https://www.gnu.org/software/chess/
- dnf - gnuchess - 6.3.0-3.fc45: installed executable or alias match | Fedora Rawhide package metadata: gnuchess from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | The GNU chess program | https://www.gnu.org/software/chess/
- pacman - gnuchess - 6.3.0-1: installed executable or alias match | Arch Linux sync databases: gnuchess from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Play chess against the computer on a terminal and an engine for graphical chess frontends | https://www.gnu.org/software/chess/chess.html
- zypper - gnuchess - 6.3.0-1.5: installed executable or alias match | openSUSE Tumbleweed package metadata: gnuchess from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | GNU Chess Program | https://www.gnu.org/software/chess/


## Combined YAML source

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