Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, zypper, winget 安装 gmsh

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install gmsh

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install gmsh

MacPorts ports tree · science/gmsh/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add gmsh

Alpine Linux edge package indexes · gmsh · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install gmsh

Debian stable package indexes · gmsh · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install gmsh

Fedora Rawhide package metadata · gmsh · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#gmsh

nixpkgs package indexes · pkgs/by-name/gm/gmsh/package.nix · 来源: api.github.com

openSUSE zypper已验证 · 92%
sudo zypper install gmsh

openSUSE Tumbleweed package metadata · gmsh · 来源: download.opensuse.org

Windows

Windows Package Manager已验证 · 92%
winget install --id gmsh.gmsh -e

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

时间线

  • 1997: Gmsh copyright period begins in the source README.
  • 2009: Gmsh paper published in International Journal for Numerical Methods in Engineering.
  • 2017: Public GitLab project created on gitlab.onelab.info.
  • 2022: Gmsh 4.11.0 added Fortran API support and new official macOS ARM builds.
  • 2026: Gmsh 4.15.2 released.

Related projects

  • OpenCASCADE supplies CAD-kernel functionality for constructive solid geometry, boolean operations, and STEP import.
  • ONELAB is related through the official hosting and solver-oriented workflows documented by Gmsh.
  • Finite-element solvers consume the mesh files and physical groups produced by Gmsh.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 9 个运行时依赖。
  • 构建元数据列出 2 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
$GMSH_HOME/<General.OptionsFileName>$GMSH_HOME/<General.SessionFileName>~/<General.OptionsFileName>~/<General.SessionFileName><model-file>.opt
Windows
%GMSH_HOME%\<General.OptionsFileName>%GMSH_HOME%\<General.SessionFileName>%APPDATA%\<General.OptionsFileName>%APPDATA%\<General.SessionFileName><model-file>.opt

可执行文件

已安装的可执行文件

命令类型暴露范围备注
gmshcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本4.15.2
管理器更新时间2026-06-22
本地数据OK
上游not checked
检测到的最新版本未检测到

https://gmsh.info/

  • 信息Release/tag comparison is only available for GitHub repositories.https://gmsh.info/none 置信度

安装元数据

软件包元数据

软件包键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
Pulseupdated
依赖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 DatabaseHomebrew formula API
Taphomebrew/core
Full Namegmsh
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

gmsh 4.13.1+ds1-6

Three-dimensional finite element mesh generator

https://gmsh.info

sudo apt install gmsh
  • Section: math
  • Architecture: amd64
  • 2 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Gmsh
Debian stable package indexes · deb.debian.org · Debian stable package indexes: gmsh from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

gmsh-doc 4.13.1+ds1-6

Three-dimensional finite element mesh generator documentation

https://gmsh.info

sudo apt install gmsh-doc
  • Section: doc
  • Architecture: all
  • Source Package: gmsh
  • normalized package name match
  • 匹配方式:Gmsh
Debian stable package indexes · deb.debian.org · Debian stable package indexes: gmsh-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libgmsh-dev 4.13.1+ds1-6

Three-dimensional finite element mesh generator development files

https://gmsh.info

sudo apt install libgmsh-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: gmsh
  • 1 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Gmsh
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libgmsh-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libgmsh-private-headers-dev 4.13.1+ds1-6

Three-dimensional finite element mesh generator development files

https://gmsh.info

sudo apt install libgmsh-private-headers-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: gmsh
  • 2 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Gmsh
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libgmsh-private-headers-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libgmsh4.13 4.13.1+ds1-6

Three-dimensional finite element mesh generator shared library

https://gmsh.info

sudo apt install libgmsh4.13
  • Section: libs
  • Architecture: amd64
  • Source Package: gmsh
  • 27 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Gmsh
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libgmsh4.13 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

python3-gmsh 4.13.1+ds1-6

Three-dimensional finite element mesh generator Python 3 wrapper

https://gmsh.info

sudo apt install python3-gmsh
  • Section: python
  • Architecture: all
  • Source Package: gmsh
  • 2 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Gmsh
Debian stable package indexes · deb.debian.org · Debian stable package indexes: python3-gmsh from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

gmsh

nix profile install nixpkgs#gmsh
  • normalized package name match
  • 匹配方式:Gmsh
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/gm/gmsh/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

gmsh 4.12.1+ds1-1.1build2

Three-dimensional finite element mesh generator

https://gmsh.info

sudo apt install gmsh
  • Section: universe/math
  • Architecture: amd64
  • 2 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Gmsh
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: gmsh from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

gmsh-doc 4.12.1+ds1-1.1build2

Three-dimensional finite element mesh generator documentation

https://gmsh.info

sudo apt install gmsh-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: gmsh
  • normalized package name match
  • 匹配方式:Gmsh
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: gmsh-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libgmsh-dev 4.12.1+ds1-1.1build2

Three-dimensional finite element mesh generator development files

https://gmsh.info

sudo apt install libgmsh-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: gmsh
  • 1 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Gmsh
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libgmsh-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libgmsh-private-headers-dev 4.12.1+ds1-1.1build2

Three-dimensional finite element mesh generator development files

https://gmsh.info

sudo apt install libgmsh-private-headers-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: gmsh
  • 2 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Gmsh
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libgmsh-private-headers-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libgmsh4.12t64 4.12.1+ds1-1.1build2

Three-dimensional finite element mesh generator shared library

https://gmsh.info

sudo apt install libgmsh4.12t64
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: gmsh
  • 24 依赖
  • 1 提供
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Gmsh
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libgmsh4.12t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

python3-gmsh 4.12.1+ds1-1.1build2

Three-dimensional finite element mesh generator Python 3 wrapper

https://gmsh.info

sudo apt install python3-gmsh
  • Section: universe/python
  • Architecture: all
  • Source Package: gmsh
  • 2 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Gmsh
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: python3-gmsh from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

gmsh 4.15.0-r0

Automatic 3D finite element mesh generator

https://gmsh.info/

sudo apk add gmsh
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: gmsh
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Gmsh
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: gmsh from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

gmsh-dbg 4.15.0-r0

Automatic 3D finite element mesh generator (debug symbols)

https://gmsh.info/

sudo apk add gmsh-dbg
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: gmsh
  • 1 依赖
  • normalized package name match
  • 匹配方式:Gmsh
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: gmsh-dbg from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

gmsh-doc 4.15.0-r0

Automatic 3D finite element mesh generator (documentation)

https://gmsh.info/

sudo apk add gmsh-doc
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: gmsh
  • normalized package name match
  • 匹配方式:Gmsh
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: gmsh-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment