# Install clingo with Homebrew, apk, dnf, MacPorts, Nix, scoop, zypper, apt

ASP system to ground and solve logic programs. Version 5.8.0 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install clingo
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install clingo
```

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

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

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

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

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

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

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

## Package facts

- **Package key:** brew:clingo
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/clingo>
- **Version:** 5.8.0
- **Source summary:** ASP system to ground and solve logic programs
- **Homepage:** <https://potassco.org/clingo/>
- **Repository:** <https://github.com/potassco/clingo>
- **Upstream docs:** <https://potassco.org/clingo>
- **License:** MIT
- **Source archive:** <https://github.com/potassco/clingo/archive/refs/tags/v5.8.0.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- clasp (cli)
- clingo (cli)
- gringo (cli)
- lpconvert (cli)
- reify (cli)
- clasp (alias)
- clingo (alias)
- gringo (alias)
- lpconvert (alias)
- reify (alias)

## Dependencies

- cffi
- lua
- python@3.14

## Build dependencies

- cmake
- doxygen

## 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: 5.8.0
- Local data: ok
- Upstream repository: https://github.com/potassco/clingo
- Upstream latest detected: v5.8.0 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## 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:** 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

## Other Package-Manager Records

- 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


## Related links

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


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