# jags mit Homebrew, apt, MacPorts, Nix installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für jags in AI-Agent-Workflows.

## Installation

```sh
sudo av install brew:jags
```

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install jags
```

  Evidenz: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install jags
```

  Evidenz: MacPorts ports tree: science/jags/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install jags
```

  Evidenz: Debian stable package indexes: jags from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#jags
```

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

## Paketfakten

- **Paketschlüssel:** brew:jags
- **Paketmanager:** Homebrew
- **Version:** 5.0.0
- **Quellzusammenfassung:** Just Another Gibbs Sampler for Bayesian MCMC simulation
- **Homepage:** <https://mcmc-jags.sourceforge.io>
- **Zuletzt aktualisiert:** 2026-08-02T23:28:27Z
- **Generiert:** 2026-08-03T19:37:03+00:00

## Executables

- jags (Alias)

## Installationsverhalten

- Bottle: nicht verfügbar

## Version und Aktualität

- Seite generiert: 2026-08-03
- Manager-Version: 5.0.0
## Projektgeschichte und Nutzung

JAGS, Just Another Gibbs Sampler, is a Bayesian MCMC engine for models written in the BUGS language family. Its package-manager role is to provide the native sampler executable and library that statistical front ends, especially R interfaces, can call.

### Projektgeschichte

Martyn Plummer presented JAGS at the 2003 Distributed Statistical Computing workshop as a program for Bayesian graphical models using Gibbs sampling, aiming at compatibility with classic BUGS while leaving room for an R package interface. The project site later summarized the same design goals as a cross-platform BUGS engine, an extensible system for custom functions, distributions, and samplers, and a platform for Bayesian modelling experiments.

The SourceForge project became the authoritative home for source, manuals, and binaries. Its code tree identifies JAGS as a C++ implementation based on the BUGS program created by the MRC Biostatistics Unit, and the project site documents binary distribution for macOS and Windows plus separate Debian, Ubuntu, and MacPorts packaging.

### Adoptionsgeschichte

JAGS adoption is closely tied to the BUGS ecosystem and to R. The project site explicitly points users to Debian, Ubuntu, and MacPorts packages, while the rjags documentation describes an interface to the JAGS MCMC library maintained by Martyn Plummer. Homebrew API data available during this enrichment recorded 890 installs over 365 days, which is small compared with broad CLI tools but meaningful for a specialized scientific engine.

The package has persisted because it gives statisticians a scriptable, cross-platform BUGS-language engine without depending on the WinBUGS/OpenBUGS GUI tradition. That made it a practical backend for teaching, ecological models, Bayesian hierarchical workflows, and R-driven analysis pipelines.

### Wie es verwendet wird

Users write Bayesian hierarchical models in a BUGS-like language, run MCMC simulation through the `jags` terminal interface or an integration such as rjags, and post-process chains in statistical software. The package is a computation backend rather than a general-purpose interactive application.

### Warum Paket-Nerds sich dafür interessieren

JAGS is package-nerd interesting because it is a long-lived SourceForge-era scientific tool that still matters at the package boundary: install the native sampler once, then R, scripts, courses, and reproducible analyses can target the same engine across Unix-like systems, Windows, and macOS.

### Zeitleiste

- 2003: Plummer's DSC paper described JAGS as a BUGS-compatible Bayesian graphical modelling program.
- 2015: JAGS 4.0.0 NEWS recorded language and library changes including log-density functions, vector indexing, additional distributions, and better compiler diagnostics.
- 2022: JAGS 4.3.1 NEWS recorded a Windows installer update for the Rtools42 toolchain.
- 2023: The project site recorded JAGS 4.3.2 as released on March 4, 2023, and the JAGS News post described it as a patch release for evolving C++ standard requirements.
- 5.0.0: The NEWS file records new monitor types for deviance-related summaries and WAIC-oriented workflows.

### Related projects

- JAGS belongs to the BUGS lineage with WinBUGS, OpenBUGS, and MultiBUGS, and it is commonly paired with R packages such as rjags. It is conceptually adjacent to later Bayesian engines such as Stan, but its historical niche is BUGS-language compatibility and Gibbs-sampling-oriented extensibility.

### Quellen

- <https://cran.r-project.org/web/packages/rjags/rjags.pdf>
- <https://formulae.brew.sh/api/formula/jags.json>
- <https://martynplummer.wordpress.com/2023/03/04/jags-4-3-2-is-released/>
- <https://mcmc-jags.sourceforge.io/>
- <https://sourceforge.net/p/mcmc-jags/code-0/ci/default/tree/>
- <https://sourceforge.net/p/mcmc-jags/code-0/ci/default/tree/NEWS?format=raw>
- <https://www.r-project.org/conferences/DSC-2003/Proceedings/Plummer.pdf>


## Sicherheitshinweise

narrow executable package without higher-risk signals.

- **Geiger-Risiko:** grün / niedrig
- narrow executable package without higher-risk signals

## Andere Paketmanager-Einträge

- Debian apt - jags - 4.3.2-1: normalized package name match | Debian stable package indexes: jags from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Just Another Gibbs Sampler for Bayesian MCMC - binary | https://mcmc-jags.sourceforge.io
- Nix - jags: normalized package name match | nixpkgs package indexes: pkgs/by-name/ja/jags/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - jags - 4.3.2-1: normalized package name match | Ubuntu 24.04 LTS package indexes: jags from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Just Another Gibbs Sampler for Bayesian MCMC - binary | https://mcmc-jags.sourceforge.io
- MacPorts - jags: normalized package name match | MacPorts ports tree: science/jags/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/jags.yml](https://github.com/mxcl/pkgdb/blob/main/combined/jags.yml)


## Quellen

- 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
