# 使用 Homebrew, apt, dnf, MacPorts, Nix, zypper 安装 gromacs

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gromacs
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gromacs
```

  证据: 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
```

  证据: 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
```

  证据: Fedora Rawhide package metadata: gromacs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#gromacs
```

  证据: 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
```

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

## 软件包事实

- **软件包键:** brew:gromacs
- **软件包管理器:** Homebrew
- **版本:** 2026.3
- **来源摘要:** Versatile package for molecular dynamics calculations
- **主页:** <https://www.gromacs.org/>
- **最后更新:** 2026-06-25T16:18:29Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gmx (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

### 为什么软件包爱好者会关心

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.

### 时间线

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

### 来源

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


## 安全说明

narrow executable package without higher-risk signals.

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

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

- 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-2.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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Fast, Free and Flexible Molecular Dynamics | http://www.gromacs.org
- dnf - gromacs-common - 2026.2-2.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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | GROMACS shared data and documentation | http://www.gromacs.org
- dnf - gromacs-devel - 2026.2-2.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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | GROMACS header files and development libraries | http://www.gromacs.org


## Combined YAML source

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