# Install gromacs with Homebrew, apt, dnf, MacPorts, Nix, zypper

Versatile package for molecular dynamics calculations. Version 2026.3 via Homebrew; verified 2026-06-25.

## Install

```sh
sudo av install brew:gromacs
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install gromacs
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gromacs
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install gromacs
```

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

- dnf (92%):

```sh
sudo dnf install gromacs
```

  Evidence: Fedora Rawhide package metadata: gromacs 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#gromacs
```

  Evidence: nixpkgs package indexes: gromacs from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- zypper (92%):

```sh
sudo zypper install gromacs
```

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

## Package facts

- **Package key:** brew:gromacs
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/gromacs>
- **Version:** 2026.3
- **Source summary:** Versatile package for molecular dynamics calculations
- **Homepage:** <https://www.gromacs.org/>
- **Repository:** <https://gitlab.com/gromacs/gromacs>
- **Upstream docs:** <https://manual.gromacs.org/>
- **License:** LGPL-2.1-or-later
- **Source archive:** <https://ftp.gromacs.org/pub/gromacs/gromacs-2026.3.tar.gz>
- **Last updated:** 2026-06-25T16:18:29Z
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- gmx (cli)
- gmx (alias)

## Dependencies

- fftw
- libomp
- lmfit
- muparser
- openblas

## Build dependencies

- cmake
- pkgconf

## Install behavior

- Post-install hook: not defined
- Caveats: GMXRC and other scripts installed to: $HOMEBREW_PREFIX/share/gromacs
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2026.3
- Package-manager updated: 2026-06-25
- Local data: ok
- Upstream repository: https://www.gromacs.org/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

GROMACS is a free molecular-dynamics simulation suite used for computational chemistry, biomolecular simulation, and high-performance trajectory analysis.

Its package-manager importance comes from an unusual combination: a serious scientific codebase, a single `gmx` command-line front end, MPI/GPU/HPC build concerns, and broad availability across Unix-like package ecosystems.

### Project history

The GROMACS manual records the project's early institutional home as the Department of Biophysical Chemistry at the University of Groningen from 1991 through 2000. The GROMACS literature describes the software as originating from a parallel hardware project and being written in ANSI C with a strong focus on parallel execution and inner-loop performance.

From 2001 onward, the manual credits GROMACS development teams at the Royal Institute of Technology and Uppsala University in Sweden. The project moved from a Groningen-lab code into an international scientific software project maintained by contributors across universities and research centers.

The project documentation emphasizes that GROMACS is a proper name rather than an acronym, while older sources and papers preserve the historical Groningen Machine for Chemical Simulations expansion. The package changed from a collection of specialized simulation programs into a documented suite with release notes, user guides, reference manuals, developer documentation, and a public GitLab workflow.

Licensing is another important part of the evolution. The official documentation identifies GROMACS as free software under LGPL 2.1 or later, a significant detail for scientific users who need to run, modify, redistribute, and audit simulation software.

### Adoption history

GROMACS earned adoption through speed, a broad biomolecular feature set, and a command-line workflow that fits clusters and batch systems. The official About page highlights simulations ranging from hundreds to millions of particles, biochemical systems such as proteins, lipids, and nucleic acids, and non-biological uses such as polymers and fluid dynamics.

The citation trail on the official manual reflects scientific adoption: the project asks users to cite a sequence of GROMACS papers from the 1990s through the 2010s, and notes that future development depends on academic research grants. That positions the package as both software infrastructure and an academic research artifact.

Package-manager adoption is broad because GROMACS is useful even outside a custom HPC module tree. Homebrew, Debian, Fedora/DNF, MacPorts, Nix, Ubuntu, and openSUSE packaging make local testing, tutorials, and smaller CPU/GPU runs possible without a site-specific cluster build.

### How it is used

A typical GROMACS workflow prepares molecular topology and coordinates, uses `gmx grompp` to assemble a run input file, runs simulations with `gmx mdrun`, and analyzes trajectories with many `gmx` subcommands. The manual's command-line reference lists a large tool surface under the `gmx` entry point.

The official documentation stresses command-line options, clear text topologies and parameter files, consistency checking, hardware-independent run input and trajectory files, parallel execution through MPI or Thread-MPI, and CPU/GPU load balancing. These traits explain why the package fits both teaching laptops and production scientific computing environments.

For users, GROMACS is less a single command than a reproducible simulation environment: force fields, `.mdp` run parameters, topology files, trajectory files, analysis commands, and manual versions all matter together.

### Why package nerds care

GROMACS is a classic scientific packaging stress test. Maintainers must care about compilers, SIMD, MPI, GPU backends, optional libraries, floating-point behavior, and executable naming, while users care that `gmx` behaves consistently with the manual version they are following.

It also matters culturally because it brings HPC-grade science into mainstream package managers. Installing `brew:gromacs` or `apt install gromacs` turns a historically cluster-centric molecular-dynamics suite into something that can be inspected, scripted, and taught from ordinary developer machines.

The package is an example of why formula metadata is useful beyond developer tools: it links executable names, licenses, repositories, documentation, and cross-manager availability for software whose real audience spans chemists, biophysicists, systems administrators, and performance engineers.

### Timeline

- 1991: GROMACS development period begins at the Department of Biophysical Chemistry, University of Groningen.
- 1993: Early GROMACS work appears in the project's citation lineage through the Bekker et al. paper.
- 1995: The Berendsen et al. paper enters the official GROMACS citation lineage.
- 2001: The manual's copyright line shifts to GROMACS development teams at the Royal Institute of Technology and Uppsala University.
- 2005: The `GROMACS: fast, flexible, and free` paper describes the suite's Groningen origin and performance orientation.
- 2008: The official citation lineage includes GROMACS 4 algorithm work for efficient, load-balanced, scalable molecular simulation.
- 2013: The official citation lineage includes work describing later-generation GROMACS capabilities and development.
- 2015: The official citation lineage includes papers on heterogeneous parallelization and high-throughput molecular simulations.
- 2020s: The project documents public GitLab-based source, issue, and contribution workflows.

### Related projects

- Historically related software includes GROMOS, from the same broader Groningen molecular-simulation tradition, and other molecular-dynamics packages such as AMBER, CHARMM, NAMD, LAMMPS, and OpenMM.
- Operationally related tools include MPI implementations, GPU compute stacks, PLUMED, VMD, trajectory-analysis tools, force-field collections, and Python interfaces such as gmxapi.

### Sources

- <https://gitlab.com/gromacs/gromacs>
- <https://manual.gromacs.org/2026.3/reference-manual/index.html>
- <https://manual.gromacs.org/2026.3/reference-manual/preface.html>
- <https://manual.gromacs.org/2026.3/user-guide/cmdline.html>
- <https://pubmed.ncbi.nlm.nih.gov/16211538/>
- <https://www.gromacs.org/about.html>
- <https://www.rug.nl/research/molecular-dynamics/?lang=en>


## 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:** gromacs
- **Version Scheme:** 0
- **Revision:** 0
- **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 - gromacs - 2025.2-1: normalized package name match | Debian stable package indexes: gromacs from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Molecular dynamics simulator, with building and analysis tools | https://www.gromacs.org/
- Debian apt - gromacs-data - 2025.2-1: normalized package name match | Debian stable package indexes: gromacs-data from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GROMACS molecular dynamics sim, data and documentation | https://www.gromacs.org/
- Debian apt - libgromacs-dev - 2025.2-1: normalized package name match | Debian stable package indexes: libgromacs-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GROMACS molecular dynamics sim, development kit | https://www.gromacs.org/
- Debian apt - libgromacs10 - 2025.2-1: normalized package name match | Debian stable package indexes: libgromacs10 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GROMACS molecular dynamics sim, shared libraries | https://www.gromacs.org/
- Debian apt - libnblib-gmx-dev - 2025.2-1: normalized package name match | Debian stable package indexes: libnblib-gmx-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GROMACS molecular dynamics sim, NB-LIB development kit | https://www.gromacs.org/
- Debian apt - libnblib-gmx0 - 2025.2-1: normalized package name match | Debian stable package indexes: libnblib-gmx0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GROMACS molecular dynamics sim, NB-LIB shared libraries | https://www.gromacs.org/
- Nix - gromacs: normalized package name match | nixpkgs package indexes: gromacs from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - gromacs - 2023.3-1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: gromacs from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Molecular dynamics simulator, with building and analysis tools | https://www.gromacs.org/
- Ubuntu apt - gromacs-data - 2023.3-1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: gromacs-data from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GROMACS molecular dynamics sim, data and documentation | https://www.gromacs.org/
- Ubuntu apt - libgromacs-dev - 2023.3-1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: libgromacs-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GROMACS molecular dynamics sim, development kit | https://www.gromacs.org/
- Ubuntu apt - libgromacs8 - 2023.3-1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: libgromacs8 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GROMACS molecular dynamics sim, shared libraries | https://www.gromacs.org/
- Ubuntu apt - libnblib-gmx-dev - 2023.3-1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: libnblib-gmx-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GROMACS molecular dynamics sim, NB-LIB development kit | https://www.gromacs.org/
- Ubuntu apt - libnblib-gmx0 - 2023.3-1ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: libnblib-gmx0 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GROMACS molecular dynamics sim, NB-LIB shared libraries | https://www.gromacs.org/
- dnf - gromacs - 2026.2-1.fc45: normalized package name match | Fedora Rawhide package metadata: gromacs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Fast, Free and Flexible Molecular Dynamics | http://www.gromacs.org
- dnf - gromacs-common - 2026.2-1.fc45: normalized package name match | Fedora Rawhide package metadata: gromacs-common from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | GROMACS shared data and documentation | http://www.gromacs.org
- dnf - gromacs-devel - 2026.2-1.fc45: normalized package name match | Fedora Rawhide package metadata: gromacs-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | GROMACS header files and development libraries | http://www.gromacs.org


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Scientific computing packages](https://www.automicvault.com/pkg/scientific-computing-tools/) - Matched scientific computing metadata.
- [Package ecosystem packages](https://www.automicvault.com/pkg/package-ecosystem-tools/) - Matched package manager, installer, dependency, registry, or publishing metadata.
- [fftw](https://www.automicvault.com/pkg/brew/fftw/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [votca](https://www.automicvault.com/pkg/brew/votca/) - Popular package that depends on this formula.
- [cp2k](https://www.automicvault.com/pkg/brew/cp2k/) - Shares av.db curated category or tags: cli, computational-chemistry, hpc, molecular-dynamics, molecular-simulation.
- [kim-api](https://www.automicvault.com/pkg/brew/kim-api/) - Shares av.db curated category or tags: cli, molecular-simulation, science.
- [nwchem](https://www.automicvault.com/pkg/brew/nwchem/) - Shares av.db curated category or tags: cli, computational-chemistry, hpc, molecular-simulation, science.
- [gabedit](https://www.automicvault.com/pkg/brew/gabedit/) - Shares av.db curated category or tags: cli, computational-chemistry, science.
- [cubelib](https://www.automicvault.com/pkg/brew/cubelib/) - Shares av.db curated category or tags: cli, hpc, science.
- [flexiblas](https://www.automicvault.com/pkg/brew/flexiblas/) - Shares av.db curated category or tags: cli, hpc, science.
- [kahip](https://www.automicvault.com/pkg/brew/kahip/) - Shares av.db curated category or tags: cli, science.

## Combined YAML source

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