# 使用 Homebrew, apt, MacPorts, Nix, zypper 安装 minizinc

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

## 安装

```sh
sudo av install brew:minizinc
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install minizinc
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install minizinc
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install minizinc
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#minizinc
```

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

- zypper (92%):

```sh
sudo zypper install minizinc
```

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

## 软件包事实

- **软件包键:** brew:minizinc
- **软件包管理器:** Homebrew
- **版本:** 2.10.0
- **来源摘要:** Medium-level constraint modeling language
- **主页:** <https://www.minizinc.org/>
- **仓库:** <https://github.com/MiniZinc/libminizinc>
- **最后更新:** 2026-07-23T09:38:26Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- minizinc (别名)
- mzn2doc (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

MiniZinc is a free and open-source constraint modeling language for expressing constraint satisfaction and discrete optimization problems in a high-level, solver-independent form. The project is developed at Monash University with support from OPTIMA, and the libminizinc repository describes the compiler as translating MiniZinc models into FlatZinc, a solver input language understood by a wide range of solvers.

### 项目历史

Its origins are unusually well documented. A history paper by Peter J. Stuckey, Guido Tack, and Maria Garcia de la Banda says MiniZinc was introduced in the CP2007 paper "MiniZinc: Towards a Standard CP Modelling Language" as a response to the lack of a common constraint-programming modeling language. The paper traces the language back to the G12 project, started in 2005, and to Zinc: MiniZinc was created as a stripped-down version of Zinc that compiled a model plus data instance into FlatZinc. The first MiniZinc version, 0.6, was released on September 23, 2007, the first day of CP2007.

### 采用历史

Technically, MiniZinc's major contribution is the separation between modeling and solving. Modelers write .mzn models with parameters, decision variables, global constraints, and objectives; the minizinc compiler flattens a particular model/data pair into FlatZinc or another solver-facing form. That lets users try different solvers from the same model, while solver authors can support MiniZinc by providing FlatZinc interfaces and global-constraint definitions.

### 使用方式

Adoption is tied strongly to the constraint-programming research and optimization communities. The MiniZinc Challenge has run every year since 2008 to compare constraint solvers on shared benchmarks, and the history paper notes that the challenge encouraged solver implementers to provide compliant FlatZinc interfaces while building a public benchmark library. The same paper cites deployed and applied MiniZinc use in ship scheduling, optimization consulting, mission planning, automated configuration, cloud deployment, mobile robot planning, building automation, data acquisition, and preference elicitation. In Homebrew, the formula brings in solver-related dependencies such as Gecode and COIN-OR components, reflecting the package's role as a modeling frontend plus compiler rather than a single solver.

### 来源

- <https://docs.minizinc.dev/en/stable/flattening.html>
- <https://docs.minizinc.dev/en/stable/index.html>
- <https://formulae.brew.sh/formula/minizinc>
- <https://freuder.me/wp-content/uploads/2019/09/2007.pdf>
- <https://github.com/MiniZinc/libminizinc>
- <https://www.minizinc.org/>
- <https://www.minizinc.org/challenge/>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Debian apt - minizinc - 2.9.2+dfsg1-1: normalized package name match | Debian stable package indexes: minizinc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | constraint modelling language and tool chain | https://www.minizinc.org/
- Nix - minizinc: normalized package name match | nixpkgs package indexes: pkgs/by-name/mi/minizinc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - minizinc - 2.8.2+dfsg1-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: minizinc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | constraint modelling language and tool chain | https://www.minizinc.org/
- zypper - minizinc - 2.8.7-1.6: normalized package name match | openSUSE Tumbleweed package metadata: minizinc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A high-level constraint modelling language | https://www.minizinc.org/
- MacPorts - minizinc: normalized package name match | MacPorts ports tree: devel/minizinc/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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