# Install gecode with Homebrew, apt, MacPorts, Nix, zypper

Toolkit for developing constraint-based systems and applications. Version 6.2.0 via Homebrew; verified 2026-06-25.

## Install

```sh
sudo av install brew:gecode
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install gecode
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gecode
```

  Evidence: MacPorts ports tree: devel/gecode/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install libgecode-dev
```

  Evidence: Debian stable package indexes: libgecode-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#gecode
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ge/gecode/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- Ubuntu apt (92%):

```sh
sudo apt install flatzinc
```

  Evidence: Ubuntu 24.04 LTS package indexes: flatzinc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

- zypper (92%):

```sh
sudo zypper install gecode-devel
```

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

## Package facts

- **Package key:** brew:gecode
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/gecode>
- **Version:** 6.2.0
- **Source summary:** Toolkit for developing constraint-based systems and applications
- **Homepage:** <https://www.gecode.org/>
- **Repository:** <https://github.com/Gecode/gecode>
- **Upstream docs:** <https://www.gecode.dev/documentation.html>
- **License:** MIT
- **Source archive:** <https://github.com/Gecode/gecode/archive/refs/tags/release-6.2.0.tar.gz>
- **Last updated:** 2026-06-25T08:00:46-04:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- fzn-gecode (cli)
- mzn-gecode (cli)
- fzn-gecode (alias)
- mzn-gecode (alias)

## Dependencies

- qtbase

## 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: 6.2.0
- Package-manager updated: 2026-06-25
- Local data: ok
- Upstream repository: https://github.com/Gecode/gecode
- info: No cached GitHub release or tag data was available.
## Project history and usage

Gecode is the Generic Constraint Development Environment, an open source C++ toolkit for developing constraint-based systems and applications.

### Project history

The official Gecode site presents the project as a modular and extensible C++ constraint solver with support for custom constraints, branching strategies, search engines, and variable domains. Its historical changelog records Gecode 1.0.0 on 2005-12-06.

### Adoption history

Gecode's official news archive tracks its use in solver and modeling ecosystems: FlatZinc support was announced in 2007, repeated MiniZinc Challenge wins were reported from 2008 through 2012, Homebrew availability was announced in 2011, and SAP adoption for advanced variant configuration was reported in 2018.

### How it is used

Developers use Gecode as a C++ toolkit and through command-line front ends such as FlatZinc and MiniZinc-related tooling. The official documentation emphasizes tutorial and reference material for modeling, search, installation, linking, and platform-specific builds.

### Why package nerds care

Gecode is significant in package collections because it is both a library and a solver executable dependency for constraint-programming workflows, especially MiniZinc and FlatZinc users who care about solver availability, ABI compatibility, and platform packaging.

### Timeline

- 2005: Gecode 1.0.0 released.
- 2007: FlatZinc for Gecode 1.0 released.
- 2008-2012: Gecode won MiniZinc Challenge gold medals across multiple years.
- 2011: Gecode became installable on Mac OS via Homebrew.
- 2018: SAP use of Gecode for advanced variant configuration was reported.
- 2019: Gecode 6.2.0 released.

### Related projects

- MiniZinc, FlatZinc, AMPL, ECLiPSe, YAP Prolog, and SAP advanced variant configuration are named in Gecode's official site or news archive as related interfaces, uses, or integrations.

### Sources

- <https://www.gecode.dev/>
- <https://www.gecode.dev/doc/2.2.0/reference/PageChange.html>
- <https://www.gecode.dev/news.html>


## 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:** gecode
- **Version Scheme:** 0
- **Revision:** 1
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Debian apt - libgecode-dev - 6.2.0-7: normalized package name match | Debian stable package indexes: libgecode-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | generic constraint development environment | https://www.gecode.org/
- Debian apt - libgecode-doc - 6.2.0-7: normalized package name match | Debian stable package indexes: libgecode-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | generic constraint development environment | https://www.gecode.org/
- Debian apt - libgecode49t64 - 6.2.0-7: normalized package name match | Debian stable package indexes: libgecode49t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | generic constraint development environment | https://www.gecode.org/
- Debian apt - libgecodeflatzinc49t64 - 6.2.0-7: normalized package name match | Debian stable package indexes: libgecodeflatzinc49t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Gecode support for FlatZinc modelling language | http://www.gecode.org/flatzinc.html
- Debian apt - libgecodegist49t64 - 6.2.0-7: normalized package name match | Debian stable package indexes: libgecodegist49t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Gecode Interactive Search Tool library | https://www.gecode.org/
- Nix - gecode: normalized package name match | nixpkgs package indexes: pkgs/by-name/ge/gecode/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - flatzinc - 6.2.0-5.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: flatzinc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | constraint problem modelling language | http://www.gecode.org/flatzinc.html
- Ubuntu apt - libgecode-dev - 6.2.0-5.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libgecode-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | generic constraint development environment | http://www.gecode.org/
- Ubuntu apt - libgecode-doc - 6.2.0-5.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libgecode-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | generic constraint development environment | http://www.gecode.org/
- Ubuntu apt - libgecode49t64 - 6.2.0-5.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libgecode49t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | generic constraint development environment | http://www.gecode.org/
- Ubuntu apt - libgecodeflatzinc49t64 - 6.2.0-5.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libgecodeflatzinc49t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Gecode support for FlatZinc modelling language | http://www.gecode.org/flatzinc.html
- Ubuntu apt - libgecodegist49t64 - 6.2.0-5.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libgecodegist49t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Gecode Interactive Search Tool library | http://www.gecode.org/
- zypper - gecode-devel - 6.3.0~git20211208.6b09bea4-1.12: normalized package name match | openSUSE Tumbleweed package metadata: gecode-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | C++ toolkit for developing constraint-based systems | https://www.gecode.org/
- zypper - gecode-minizinc - 6.3.0~git20211208.6b09bea4-1.12: normalized package name match | openSUSE Tumbleweed package metadata: gecode-minizinc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Gecode minizinc solver | https://www.gecode.org/
- zypper - libgecode51 - 6.3.0~git20211208.6b09bea4-1.12: normalized package name match | openSUSE Tumbleweed package metadata: libgecode51 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | C++ toolkit for developing constraint-based systems | https://www.gecode.org/
- MacPorts - gecode: normalized package name match | MacPorts ports tree: devel/gecode/Portfile from https://api.github.com/repos/macports/macports-ports/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.
- [qtbase](https://www.automicvault.com/pkg/brew/qtbase/) - Runtime dependency declared by Homebrew.
- [minizinc](https://www.automicvault.com/pkg/brew/minizinc/) - Popular package that depends on this formula.
- [fltk](https://www.automicvault.com/pkg/brew/fltk/) - Shares av.db curated category or tags: c-plus-plus, cli, developer-tools, toolkit.
- [fox](https://www.automicvault.com/pkg/brew/fox/) - Shares av.db curated category or tags: c-plus-plus, cli, developer-tools, toolkit.
- [aarch64-elf-gcc](https://www.automicvault.com/pkg/brew/aarch64-elf-gcc/) - Shares av.db curated category or tags: c-plus-plus, cli, developer-tools.
- [astyle](https://www.automicvault.com/pkg/brew/astyle/) - Shares av.db curated category or tags: c-plus-plus, cli, developer-tools.
- [bochs](https://www.automicvault.com/pkg/brew/bochs/) - Shares av.db curated category or tags: c-plus-plus, cli, developer-tools.
- [brpc](https://www.automicvault.com/pkg/brew/brpc/) - Shares av.db curated category or tags: c-plus-plus, cli, developer-tools.
- [build2](https://www.automicvault.com/pkg/brew/build2/) - Shares av.db curated category or tags: c-plus-plus, cli, developer-tools.
- [cargo-bloat](https://www.automicvault.com/pkg/brew/cargo-bloat/) - Shares av.db curated category or tags: cli, developer-tools, optimization.
- [poco](https://www.automicvault.com/pkg/brew/poco/) - Local package facts share a topical domain. Shared terms: applications, based, c-plus-plus, cli, developer.
- [gdbgui](https://www.automicvault.com/pkg/brew/gdbgui/) - Local package facts share a topical domain. Shared terms: based, c-plus-plus, cli, developer, developer-tools.

## Combined YAML source

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