macOS
brew install gmshlocal Homebrew formula metadata
sudo port install gmshMacPorts ports tree · science/gmsh/Portfile · 来源: api.github.com
安装
brew install gmshlocal Homebrew formula metadata
sudo port install gmshMacPorts ports tree · science/gmsh/Portfile · 来源: api.github.com
sudo apk add gmshAlpine Linux edge package indexes · gmsh · 来源: dl-cdn.alpinelinux.org
sudo dnf install gmshFedora Rawhide package metadata · gmsh · 来源: dl.fedoraproject.org
nix profile install nixpkgs#gmshnixpkgs package indexes · pkgs/by-name/gm/gmsh/package.nix · 来源: api.github.com
sudo zypper install gmshopenSUSE Tumbleweed package metadata · gmsh · 来源: download.opensuse.org
winget install --id gmsh.gmsh -eWindows Package Manager source index · gmsh.gmsh · 来源: cdn.winget.microsoft.com
概览
3D finite element grid generator with CAD engine
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
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>.opt可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
gmsh | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:gmsh |
|---|---|
| 版本 | 4.15.2 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/gmsh |
| 主页 | https://gmsh.info/ |
| 仓库 | https://gitlab.onelab.info/gmsh/gmsh |
| 上游文档 | https://gmsh.info/doc/texinfo/gmsh.html |
| 许可证 | GPL-2.0-or-later |
| 源码归档 | https://gmsh.info/src/gmsh-4.15.2-source.tgz |
| 最后更新 | 2026-06-22T14:03:35-07:00 |
| Pulse | updated |
| 依赖 | cairo, fltk, freetype, gmp, jpeg-turbo, libomp, libpng, metis, opencascade |
| 构建依赖 | cmake, eigen |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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-doc来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.