macOS
brew install gmshlocal Homebrew formula metadata
sudo port install gmshMacPorts ports tree · science/gmsh/Portfile · source: api.github.com
brew
3D finite element grid generator with CAD engine. Version 4.15.2 via Homebrew; verified 2026-06-22.
install
brew install gmshlocal Homebrew formula metadata
sudo port install gmshMacPorts ports tree · science/gmsh/Portfile · source: api.github.com
sudo apk add gmshAlpine Linux edge package indexes · gmsh · source: dl-cdn.alpinelinux.org
sudo apt install gmshDebian stable package indexes · gmsh · source: deb.debian.org
sudo dnf install gmshFedora Rawhide package metadata · gmsh · source: dl.fedoraproject.org
nix profile install nixpkgs#gmshnixpkgs package indexes · pkgs/by-name/gm/gmsh/package.nix · source: api.github.com
sudo zypper install gmshopenSUSE Tumbleweed package metadata · gmsh · source: download.opensuse.org
winget install --id gmsh.gmsh -eWindows Package Manager source index · gmsh.gmsh · source: cdn.winget.microsoft.com
overview
3D finite element grid generator with CAD engine
history
Gmsh is an automatic three-dimensional finite-element mesh generator with CAD, meshing, solver, and post-processing modules. It is widely packaged because it serves both as a graphical scientific tool and as a scriptable/API-driven mesh generator for simulation workflows.
Gmsh was created by Christophe Geuzaine and Jean-Francois Remacle, with copyright years in the source README beginning in 1997. The reference manual identifies it as a 3D finite-element mesh generator with built-in pre- and post-processing facilities.
The project was documented in a 2009 International Journal for Numerical Methods in Engineering paper, cited from the official manual. That paper helped establish Gmsh as a named research-software artifact rather than only a utility shipped by its authors.
Gmsh evolved from a standalone meshing program into a modular platform. The manual describes four modules: geometry, mesh, solver, and post-processing, controllable from the GUI, the command line, .geo scripts, and C++, C, Python, Julia, and Fortran APIs.
The 4.x line expanded API and CAD workflows, including OpenCASCADE geometry operations, model attributes, Fortran API support, and ongoing changes to mesh formats and post-processing behavior. The official version history records detailed 4.x releases through 4.15.2 in March 2026.
The manual states that source code and precompiled binaries are distributed for Windows, macOS, and Linux, with packages also available in Linux and BSD distributions. The batch metadata additionally shows packaging in Homebrew, Alpine, Debian, Fedora, MacPorts, Nix, Ubuntu, winget, and openSUSE.
Gmsh's adoption rests on a useful balance: it is light enough to install as a command-line tool, visual enough for interactive geometry and mesh inspection, and programmable enough to sit inside automated simulation pipelines.
Its official documentation and examples make it attractive to finite-element practitioners who need mesh generation without adopting a full commercial preprocessor. The .geo scripting language and multi-language API also make meshes reproducible in source-controlled projects.
Practitioners use Gmsh to define geometry, generate 1D, 2D, and 3D meshes, assign physical groups, import CAD through OpenCASCADE, inspect mesh quality, and export mesh files for downstream solvers.
Command-line users generate meshes from .geo files in build pipelines or tests. GUI users inspect and tune geometry, mesh sizes, fields, and post-processing views. API users call Gmsh from C++, C, Python, Julia, or Fortran to generate meshes from application code.
Package-manager installs are especially useful for CI and scientific environments where scripts need the gmsh executable or Python module available without a manual GUI installer.
Gmsh is a high-value package because it turns a hard scientific dependency into a normal system dependency. Build scripts, solver examples, Python notebooks, and finite-element tutorials can all assume an installable gmsh command rather than bundling a meshing engine.
It is also a good example of why scientific packages are often bigger than a CLI: one formula supplies a desktop app, CAD integrations, a shared library, language bindings, examples, and a file-format ecosystem.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
$GMSH_HOME/<General.OptionsFileName>$GMSH_HOME/<General.SessionFileName>~/<General.OptionsFileName>~/<General.SessionFileName><model-file>.opt%GMSH_HOME%\<General.OptionsFileName>%GMSH_HOME%\<General.SessionFileName>%APPDATA%\<General.OptionsFileName>%APPDATA%\<General.SessionFileName><model-file>.optexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
gmsh | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:gmsh |
|---|---|
| Version | 4.15.2 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/gmsh |
| Homepage | https://gmsh.info/ |
| Repository | https://gitlab.onelab.info/gmsh/gmsh |
| Upstream docs | https://gmsh.info/doc/texinfo/gmsh.html |
| License | GPL-2.0-or-later |
| Source archive | https://gmsh.info/src/gmsh-4.15.2-source.tgz |
| Last updated | 2026-06-22T14:03:35-07:00 |
| Pulse | updated |
| Dependencies | cairo, fltk, freetype, gmp, jpeg-turbo, libomp, libpng, metis, opencascade |
| Build dependencies | cmake, eigen |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | gmsh |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
gmsh 4.13.1+ds1-6
Three-dimensional finite element mesh generator
sudo apt install gmshgmsh-doc 4.13.1+ds1-6
Three-dimensional finite element mesh generator documentation
sudo apt install gmsh-doclibgmsh-dev 4.13.1+ds1-6
Three-dimensional finite element mesh generator development files
sudo apt install libgmsh-devlibgmsh-private-headers-dev 4.13.1+ds1-6
Three-dimensional finite element mesh generator development files
sudo apt install libgmsh-private-headers-devlibgmsh4.13 4.13.1+ds1-6
Three-dimensional finite element mesh generator shared library
sudo apt install libgmsh4.13python3-gmsh 4.13.1+ds1-6
Three-dimensional finite element mesh generator Python 3 wrapper
sudo apt install python3-gmshgmsh
nix profile install nixpkgs#gmshgmsh 4.12.1+ds1-1.1build2
Three-dimensional finite element mesh generator
sudo apt install gmshgmsh-doc 4.12.1+ds1-1.1build2
Three-dimensional finite element mesh generator documentation
sudo apt install gmsh-doclibgmsh-dev 4.12.1+ds1-1.1build2
Three-dimensional finite element mesh generator development files
sudo apt install libgmsh-devlibgmsh-private-headers-dev 4.12.1+ds1-1.1build2
Three-dimensional finite element mesh generator development files
sudo apt install libgmsh-private-headers-devlibgmsh4.12t64 4.12.1+ds1-1.1build2
Three-dimensional finite element mesh generator shared library
sudo apt install libgmsh4.12t64python3-gmsh 4.12.1+ds1-1.1build2
Three-dimensional finite element mesh generator Python 3 wrapper
sudo apt install python3-gmshgmsh 4.15.0-r0
Automatic 3D finite element mesh generator
sudo apk add gmshgmsh-dbg 4.15.0-r0
Automatic 3D finite element mesh generator (debug symbols)
sudo apk add gmsh-dbggmsh-doc 4.15.0-r0
Automatic 3D finite element mesh generator (documentation)
sudo apk add gmsh-docsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.