# 使用 Homebrew, apk, dnf, MacPorts, Nix, scoop, zypper, apt 安装 clingo

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

## 安装

```sh
sudo av install brew:clingo
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install clingo
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install clingo
```

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

### Linux

- apk (92%):

```sh
sudo apk add clingo
```

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

- dnf (92%):

```sh
sudo dnf install clingo
```

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

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

- zypper (92%):

```sh
sudo zypper install clingo
```

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

- Debian apt (92%):

```sh
sudo apt install clasp
```

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

### Windows

- Scoop (92%):

```sh
scoop install extras/clingo
```

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

## 软件包事实

- **软件包键:** brew:clingo
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/clingo>
- **版本:** 5.8.0
- **来源摘要:** ASP system to ground and solve logic programs
- **主页:** <https://potassco.org/clingo/>
- **仓库:** <https://github.com/potassco/clingo>
- **上游文档:** <https://potassco.org/clingo>
- **许可证:** MIT
- **源码归档:** <https://github.com/potassco/clingo/archive/refs/tags/v5.8.0.tar.gz>
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- clasp (cli)
- clingo (cli)
- gringo (cli)
- lpconvert (cli)
- reify (cli)
- clasp (别名)
- clingo (别名)
- gringo (别名)
- lpconvert (别名)
- reify (别名)

## 依赖

- cffi
- lua
- python@3.14

## 构建依赖

- cmake
- doxygen

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

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

clingo is Potassco's grounder and solver for Answer Set Programming. The official README says clingo takes a logic program and computes answer sets representing solutions, while the official Potassco page describes it as combining gringo and clasp into a monolithic system.

### 项目历史

clingo grew out of the Potassco toolchain, joining gringo's grounding role with clasp's solving role for logic programs. The 5.x release line in the official changelog emphasizes API stability and growth across C, C++, Python, and Lua bindings, CMake packaging, ASPIF support, propagators, and updates to the embedded clasp solver.

### 采用历史

The official README points users to source and binary releases, installation requirements, the Potassco guide, and an online clingo runner. The batch input lists broad distribution coverage across apk, Homebrew, Debian/Ubuntu via clasp, dnf, MacPorts, Nix, Scoop, and zypper.

### 使用方式

Users model combinatorial problems as logic programs and run clingo to ground and solve them. Official resources provide a getting-started guide, online execution, API documentation, release downloads, and executables in the package such as clingo, gringo, clasp, lpconvert, and reify.

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

clingo is package-nerd significant because it packages a research-grade declarative programming system as a practical CLI and embeddable library. It is the kind of solver that appears both in academic workflows and in distro package sets, where reproducible versions and language bindings matter.

### 时间线

- 2010s: clingo 5.x tags appear in the official repository, starting with v5.0.0.
- 2020s: Official changelog records 5.2 through 5.8 work on CMake, MIT licensing, APIs, Python wheels, ASPIF, propagators, and clasp updates.
- 2026: Batch input lists clingo or clasp packages across apk, Homebrew, Debian, Ubuntu, dnf, MacPorts, Nix, Scoop, and zypper.

### Related projects

- clingo is directly related to Potassco, gringo, clasp, the Potassco guide, ASPIF tooling, and Answer Set Programming research/software. It also sits near other constraint, SAT, SMT, and logic-programming tools in developer package collections.

### 来源

- <https://github.com/potassco/clingo#readme>
- <https://potassco.org/clingo>
- <https://potassco.org/doc/start>
- <https://github.com/potassco/clingo/blob/master/CHANGES.md>


## 安全说明

narrow executable package without higher-risk signals.

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

## 源数据库详情

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

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

- Nix - clingo: normalized package name match | nixpkgs package indexes: pkgs/by-name/cl/clingo/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - clingo - 5.8.0-r2: normalized package name match | Alpine Linux edge package indexes: clingo from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Grounder and solver for logic programs | https://potassco.org/clingo/
- apk - clingo-dev - 5.8.0-r2: normalized package name match | Alpine Linux edge package indexes: clingo-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Grounder and solver for logic programs (development files) | https://potassco.org/clingo/
- apk - clingo-libs - 5.8.0-r2: normalized package name match | Alpine Linux edge package indexes: clingo-libs from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Grounder and solver for logic programs (libraries) | https://potassco.org/clingo/
- apk - py3-clingo - 5.8.0-r2: normalized package name match | Alpine Linux edge package indexes: py3-clingo from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Python bindings for clingo | https://potassco.org/clingo/
- dnf - clingo - 5.8.0-10.fc45: normalized package name match | Fedora Rawhide package metadata: clingo from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | A grounder and solver for logic programs | https://potassco.org/clingo/
- dnf - clingo-devel - 5.8.0-10.fc45: normalized package name match | Fedora Rawhide package metadata: clingo-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development files for clingo | https://potassco.org/clingo/
- dnf - lua-clingo - 5.8.0-10.fc45: normalized package name match | Fedora Rawhide package metadata: lua-clingo from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Lua bindings for Clingo | https://potassco.org/clingo/
- dnf - python3-clingo - 5.8.0-10.fc45: normalized package name match | Fedora Rawhide package metadata: python3-clingo from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Python 3 bindings for Clingo | https://potassco.org/clingo/
- zypper - clingo - 5.8.0-2.2: normalized package name match | openSUSE Tumbleweed package metadata: clingo from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | A grounder and solver for logic programs | https://potassco.org/clingo/
- zypper - clingo-devel - 5.8.0-2.2: normalized package name match | openSUSE Tumbleweed package metadata: clingo-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Development files for clingo | https://potassco.org/clingo/
- zypper - libclingo4 - 5.8.0-2.2: normalized package name match | openSUSE Tumbleweed package metadata: libclingo4 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Libraries file(s) for clingo | https://potassco.org/clingo/
- zypper - lua-clingo - 5.8.0-2.2: normalized package name match | openSUSE Tumbleweed package metadata: lua-clingo from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Lua bindings for Clingo | https://potassco.org/clingo/
- zypper - python3-clingo - 5.8.0-2.2: normalized package name match | openSUSE Tumbleweed package metadata: python3-clingo from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Python 3 bindings for Clingo | https://potassco.org/clingo/
- MacPorts - clingo: normalized package name match | MacPorts ports tree: math/clingo/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - extras/clingo: normalized package name match | Scoop official bucket manifest trees: bucket/clingo.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [cffi](https://www.automicvault.com/zh-hans/pkg/brew/cffi/) - Runtime dependency declared by Homebrew.
- [lua](https://www.automicvault.com/zh-hans/pkg/brew/lua/) - Runtime dependency declared by Homebrew.
- [python@3.14](https://www.automicvault.com/zh-hans/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/zh-hans/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [doxygen](https://www.automicvault.com/zh-hans/pkg/brew/doxygen/) - Build dependency declared by Homebrew.
- [aspcud](https://www.automicvault.com/zh-hans/pkg/brew/aspcud/) - Popular package that depends on this formula.
- [souffle](https://www.automicvault.com/zh-hans/pkg/brew/souffle/) - Shares av.db curated category or tags: cli, developer-tools, logic-programming.
- [breezy](https://www.automicvault.com/zh-hans/pkg/brew/breezy/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, python, python-3-14.
- [cobo-cli](https://www.automicvault.com/zh-hans/pkg/brew/cobo-cli/) - Both packages touch the same language runtime or ecosystem. Shared terms: cffi, cli, developer, developer-tools, python.

## Combined YAML source

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


## 来源

- 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
