# 使用 Homebrew, apk, MacPorts, Nix, pacman, apt, dnf, zypper 安装 mesa

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

## 安装

```sh
sudo av install brew:mesa
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mesa
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mesa
```

  证据: MacPorts ports tree: x11/mesa/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add mesa
```

  证据: Alpine Linux edge package indexes: mesa from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#mesa
```

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

- pacman (92%):

```sh
sudo pacman -S mesa
```

  证据: Arch Linux sync databases: mesa from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- Debian apt (92%):

```sh
sudo apt install libd3dadapter9-mesa
```

  证据: Debian stable package indexes: libd3dadapter9-mesa from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install mesa-dri-drivers
```

  证据: Fedora Rawhide package metadata: mesa-dri-drivers from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- zypper (92%):

```sh
sudo zypper install Mesa
```

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

## 软件包事实

- **软件包键:** brew:mesa
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/mesa>
- **版本:** 26.1.4
- **来源摘要:** Graphics Library
- **主页:** <https://www.mesa3d.org/>
- **上游文档:** <https://www.mesa3d.org/>
- **许可证:** MIT AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND BSL-1.0 AND HPND AND HPND-sell-variant AND ICU AND MIT-Khronos-old AND SGI-B-2.0 AND LicenseRef-Homebrew-public-domain AND (GPL-1.0-or-later WITH Linux-syscall-note) AND (GPL-2.0-only WITH Linux-syscall-note)
- **源码归档:** <https://archive.mesa3d.org/mesa-26.1.4.tar.xz>
- **最后更新:** 2026-07-03T08:48:36Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- aubinator (cli)
- aubinator_error_decode (cli)
- brw_asm (cli)
- brw_disasm (cli)
- computerator (cli)
- elk_asm (cli)
- elk_disasm (cli)
- glsl_compiler (cli)
- intel_dev_info (cli)
- intel_dump_gpu (cli)
- intel_error2aub (cli)
- intel_error2hangdump (cli)
- intel_hang_replay (cli)
- intel_measure.py (cli)
- intel_monitor (cli)
- intel_sanitize_gpu (cli)
- intel_stub_gpu (cli)
- lima_disasm (cli)
- mda (cli)
- mesa-overlay-control.py (cli)
- mesa-screenshot-control.py (cli)
- nv_push_dump (cli)
- panfrost_texfeatures (cli)
- panfrostdump (cli)
- qrisc-asm (cli)
- qrisc-disasm (cli)
- spirv2nir (cli)
- aubinator (别名)
- aubinator_error_decode (别名)
- brw_asm (别名)
- brw_disasm (别名)
- computerator (别名)
- elk_asm (别名)
- elk_disasm (别名)
- glsl_compiler (别名)
- intel_dev_info (别名)
- intel_dump_gpu (别名)
- intel_error2aub (别名)
- intel_error2hangdump (别名)
- intel_hang_replay (别名)
- intel_measure.py (别名)
- intel_monitor (别名)
- intel_sanitize_gpu (别名)
- intel_stub_gpu (别名)
- lima_disasm (别名)
- mda (别名)
- mesa-overlay-control.py (别名)
- mesa-screenshot-control.py (别名)
- nv_push_dump (别名)
- panfrost_texfeatures (别名)
- panfrostdump (别名)
- qrisc-asm (别名)
- qrisc-disasm (别名)
- spirv2nir (别名)

## 依赖

- libclc
- libpng
- libx11
- libxcb
- libxext
- libxfixes
- llvm
- molten-vk
- spirv-llvm-translator
- spirv-tools
- xcb-util-keysyms
- zstd

## 构建依赖

- bindgen
- bison
- glslang
- libxrandr
- libxrender
- libxshmfence
- libyaml
- meson
- ninja
- pkgconf
- python@3.14
- rust
- xorgproto

## macOS 提供的库

- expat

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 26.1.4
- 管理器更新时间: 2026-07-03
- 本地数据: OK
- 上游仓库: https://www.mesa3d.org/
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

Mesa is one of the foundational open-source graphics libraries in Unix and Linux graphics stacks. Brian Paul began the project in August 1993 as a spare-time implementation of a simple 3D graphics library using the then-new OpenGL API, inspired partly by VOGL. After negotiating with SGI over distribution of an OpenGL-like library, Mesa 1.0 was released on the internet in February 1995. The project history notes that Mesa soon received patches, features, and daily user feedback, and that it helped many users encounter OpenGL on systems where vendor OpenGL support was limited.

### 项目历史

Mesa's technical milestones track the rise of open graphics acceleration. Mesa 2.0 implemented OpenGL 1.1 in 1996; Mesa 2.2 added support for 3dfx Voodoo through Glide in 1997; Mesa 3.0 was the first public implementation of the OpenGL 1.2 API in 1998. In 1999 Mesa became a key component of Direct Rendering Infrastructure work for XFree86, with drivers following for 3dfx, 3dLabs, Intel, Matrox, and ATI hardware. Tungsten Graphics, cofounded by Paul and other graphics developers in 2001 and later acquired by VMware, became another major chapter in Mesa's development. Gallium, developed by Keith Whitwell and other Tungsten Graphics employees, introduced a GPU abstraction layer that shaped later Mesa drivers.

### 采用历史

The modern package is not merely a developer library; it is part of the operating-system graphics substrate. Mesa implements APIs including OpenGL, OpenGL ES, Vulkan, EGL, OpenCL, and VA-API, and provides hardware, layered, virtual-GPU, and software drivers. Its documented driver set includes Intel, AMD Radeon, NVIDIA NVK/Nouveau-related support, Qualcomm Adreno/Freedreno, Broadcom VC4/V3D, ARM Mali drivers, Vivante, VMware SVGA3D, VirGL, Zink, LLVMpipe, and Softpipe.

### 使用方式

In Homebrew and other package managers, Mesa fills the graphics-runtime and development-library niche: applications, toolkits, games, emulators, CI environments, and headless renderers depend on it for standardized graphics APIs without bundling vendor-specific stacks. Its history explains why the package is both a library and an infrastructure project, maintained through freedesktop.org with an upstream GitLab workflow and broad hardware-driver participation.

### 来源

- <https://docs.mesa3d.org/history.html>
- <https://docs.mesa3d.org/repository.html>
- <https://docs.mesa3d.org/systems.html>
- <https://formulae.brew.sh/formula/mesa>
- <https://www.mesa3d.org/>


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** mesa
- **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:** head, stable

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

- Debian apt - libd3dadapter9-mesa - 25.0.7-2+deb13u1: normalized package name match | Debian stable package indexes: libd3dadapter9-mesa from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | state-tracker for Direct3D9 | https://mesa3d.org/
- Debian apt - libd3dadapter9-mesa-dev - 25.0.7-2+deb13u1: normalized package name match | Debian stable package indexes: libd3dadapter9-mesa-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | state-tracker for Direct3D9 -- development files | https://mesa3d.org/
- Debian apt - libegl-mesa0 - 25.0.7-2+deb13u1: normalized package name match | Debian stable package indexes: libegl-mesa0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | free implementation of the EGL API -- Mesa vendor library | https://mesa3d.org/
- Debian apt - libegl1-mesa-dev - 25.0.7-2+deb13u1: normalized package name match | Debian stable package indexes: libegl1-mesa-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | free implementation of the EGL API -- development files | https://mesa3d.org/
- Debian apt - libgbm-dev - 25.0.7-2+deb13u1: normalized package name match | Debian stable package indexes: libgbm-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | generic buffer management API -- development files | https://mesa3d.org/
- Debian apt - libgbm1 - 25.0.7-2+deb13u1: normalized package name match | Debian stable package indexes: libgbm1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | generic buffer management API -- runtime | https://mesa3d.org/
- Debian apt - libgl1-mesa-dev - 25.0.7-2+deb13u1: normalized package name match | Debian stable package indexes: libgl1-mesa-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | transitional dummy package | https://mesa3d.org/
- Debian apt - libgl1-mesa-dri - 25.0.7-2+deb13u1: normalized package name match | Debian stable package indexes: libgl1-mesa-dri from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | free implementation of the OpenGL API -- DRI modules | https://mesa3d.org/
- Debian apt - libgles2-mesa-dev - 25.0.7-2+deb13u1: normalized package name match | Debian stable package indexes: libgles2-mesa-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | transitional dummy package | https://mesa3d.org/
- Debian apt - libglx-mesa0 - 25.0.7-2+deb13u1: normalized package name match | Debian stable package indexes: libglx-mesa0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | free implementation of the OpenGL API -- GLX vendor library | https://mesa3d.org/
- Debian apt - libosmesa6 - 25.0.7-2+deb13u1: normalized package name match | Debian stable package indexes: libosmesa6 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Mesa Off-screen rendering extension | https://mesa3d.org/
- Debian apt - libosmesa6-dev - 25.0.7-2+deb13u1: normalized package name match | Debian stable package indexes: libosmesa6-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Mesa Off-screen rendering extension -- development files | https://mesa3d.org/
- Debian apt - libxatracker-dev - 25.0.7-2+deb13u1: normalized package name match | Debian stable package indexes: libxatracker-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | X acceleration library -- development files | https://mesa3d.org/
- Debian apt - libxatracker2 - 25.0.7-2+deb13u1: normalized package name match | Debian stable package indexes: libxatracker2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | X acceleration library -- runtime | https://mesa3d.org/
- Debian apt - mesa-common-dev - 25.0.7-2+deb13u1: normalized package name match | Debian stable package indexes: mesa-common-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Developer documentation for Mesa | https://mesa3d.org/
- Debian apt - mesa-drm-shim - 25.0.7-2+deb13u1: normalized package name match | Debian stable package indexes: mesa-drm-shim from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | DRM shim libraries | https://mesa3d.org/


## 相关链接

- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://pkg.so/zh-hans/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [zstd](https://pkg.so/zh-hans/brew/zstd/) - Runtime dependency declared by Homebrew.
- [libpng](https://pkg.so/zh-hans/brew/libpng/) - Runtime dependency declared by Homebrew.
- [llvm](https://pkg.so/zh-hans/brew/llvm/) - Runtime dependency declared by Homebrew.
- [spirv-tools](https://pkg.so/zh-hans/brew/spirv-tools/) - Runtime dependency declared by Homebrew.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Build dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [xorg-server](https://pkg.so/zh-hans/brew/xorg-server/) - Popular package that depends on this formula.
- [webkitgtk](https://pkg.so/zh-hans/brew/webkitgtk/) - Popular package that depends on this formula.
- [fox](https://pkg.so/zh-hans/brew/fox/) - Popular package that depends on this formula.
- [libxpm](https://pkg.so/zh-hans/brew/libxpm/) - Shares pkgdb curated category or tags: cli, graphics, system.
- [b43-fwcutter](https://pkg.so/zh-hans/brew/b43-fwcutter/) - Shares pkgdb curated category or tags: cli, drivers, system.
- [ratty](https://pkg.so/zh-hans/brew/ratty/) - Shares pkgdb curated category or tags: cli, graphics, system.
- [libmps](https://pkg.so/zh-hans/brew/libmps/) - Shares pkgdb curated category or tags: cli, system, system-library.
- [xz](https://pkg.so/zh-hans/brew/xz/) - Shares pkgdb curated category or tags: cli, system.
- [lz4](https://pkg.so/zh-hans/brew/lz4/) - Shares pkgdb curated category or tags: cli, system.
- [coreutils](https://pkg.so/zh-hans/brew/coreutils/) - Shares pkgdb curated category or tags: cli, system.
- [ddcutil](https://pkg.so/zh-hans/brew/ddcutil/) - Local package facts share a topical domain. Shared terms: cli, libx11, libxext, monitor, system.

## Combined YAML source

View the package source record on GitHub. [combined/mesa.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mesa.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
