# 使用 Homebrew, apk, Nix, apt, winget 安装 mgba

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

## 安装

```sh
sudo av install brew:mgba
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mgba
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add mgba
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#mgba
```

  证据: nixpkgs package indexes: pkgs/by-name/mg/mgba/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- Debian apt (92%):

```sh
sudo apt install libmgba-dev
```

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

### Windows

- winget (92%):

```sh
winget install --id JeffreyPfau.mGBA -e
```

  证据: Windows Package Manager source index: JeffreyPfau.mGBA from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:mgba
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/mgba>
- **版本:** 0.10.5
- **来源摘要:** Game Boy Advance emulator
- **主页:** <https://mgba.io/>
- **仓库:** <https://github.com/mgba-emu/mgba>
- **上游文档:** <https://mgba.io/>
- **许可证:** MPL-2.0
- **源码归档:** <https://github.com/mgba-emu/mgba/archive/refs/tags/0.10.5.tar.gz>
- **最后更新:** 2026-06-18T02:28:59-04:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- mGBA (cli)
- mGBA (别名)

## 依赖

- ffmpeg
- libepoxy
- libpng
- libzip
- lua
- qt@5
- sdl2-compat
- sqlite

## 构建依赖

- cmake
- libelf
- pkgconf

## macOS 提供的库

- libedit

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.10.5
- 管理器更新时间: 2026-06-18
- 本地数据: OK
- 上游仓库: https://github.com/mgba-emu/mgba
- 检测到的最新版本: 0.10.5 (当前)
## 项目历史与用法

mGBA is an open-source Game Boy Advance emulator created by Vicki Pfau, also known as endrift. The official FAQ says the project started in April 2013 with the goal of running on lower-end hardware without giving up accuracy or portability, and the ten-year retrospective ties that history to the first commit in the mGBA repository. The project site identifies it as copyright 2013-2026 Vicki Pfau.

### 项目历史

Technically, mGBA set out to be faster and more accurate than many older GBA emulators while adding features they lacked. Its README and FAQ describe support not only for Game Boy Advance games but also Game Boy and Game Boy Color titles, with an emphasis on accuracy, portability, and practical extras. That combination made it useful both for players and for development/debugging workflows around Nintendo handheld software.

### 使用方式

Its adoption reaches beyond package managers. The project is distributed through its own site and GitHub, packaged by Homebrew and Linux distributions, and published for Windows through winget. It also appears inside other retro-gaming products and workflows: Wired's review of the Epilogue GB Operator notes that Epilogue Playback defaults to the mGBA emulator core while allowing users to select other cores. In package-manager terms, Homebrew's `mgba` formula gives macOS and Linux users a maintained route to the desktop emulator, while distro packages such as `libmgba-dev` expose the emulator library for software that embeds or integrates mGBA.

### 来源

- <https://formulae.brew.sh/formula/mgba>
- <https://github.com/mgba-emu/mgba>
- <https://mgba.io/>
- <https://mgba.io/2023/04/03/mgba-turns-ten/>
- <https://mgba.io/faq.html>
- <https://www.wired.com/review/epilogue-gb-operator>


## 安全说明

narrow executable package without higher-risk signals.

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** mgba
- **Version Scheme:** 0
- **Revision:** 2
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** yes
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Debian apt - libmgba-dev - 0.10.5+dfsg-1: normalized package name match | Debian stable package indexes: libmgba-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Game Boy Advance emulator (development files) | https://mgba.io/
- Debian apt - libmgba0.10t64 - 0.10.5+dfsg-1: normalized package name match | Debian stable package indexes: libmgba0.10t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Game Boy Advance emulator (common library for mGBA) | https://mgba.io/
- Debian apt - libretro-mgba - 0.10.5+dfsg-1: normalized package name match | Debian stable package indexes: libretro-mgba from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Libretro wrapper for mGBA | https://mgba.io/
- Debian apt - mgba-common - 0.10.5+dfsg-1: normalized package name match | Debian stable package indexes: mgba-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Game Boy Advance emulator (common files for mGBA) | https://mgba.io/
- Debian apt - mgba-qt - 0.10.5+dfsg-1: normalized package name match | Debian stable package indexes: mgba-qt from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Game Boy Advance emulator (Qt frontend for mGBA) | https://mgba.io/
- Debian apt - mgba-sdl - 0.10.5+dfsg-1: normalized package name match | Debian stable package indexes: mgba-sdl from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Game Boy Advance emulator (SDL frontend for mGBA) | https://mgba.io/
- Nix - mgba: normalized package name match | nixpkgs package indexes: pkgs/by-name/mg/mgba/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libmgba-dev - 0.10.2+dfsg-1.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libmgba-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Game Boy Advance emulator (development files) | https://mgba.io/
- Ubuntu apt - libmgba0.10t64 - 0.10.2+dfsg-1.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libmgba0.10t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Game Boy Advance emulator (common library for mGBA) | https://mgba.io/
- Ubuntu apt - libretro-mgba - 0.10.2+dfsg-1.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libretro-mgba from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Libretro wrapper for mGBA | https://mgba.io/
- Ubuntu apt - mgba-common - 0.10.2+dfsg-1.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: mgba-common from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Game Boy Advance emulator (common files for mGBA) | https://mgba.io/
- Ubuntu apt - mgba-qt - 0.10.2+dfsg-1.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: mgba-qt from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Game Boy Advance emulator (Qt frontend for mGBA) | https://mgba.io/
- Ubuntu apt - mgba-sdl - 0.10.2+dfsg-1.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: mgba-sdl from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Game Boy Advance emulator (SDL frontend for mGBA) | https://mgba.io/
- apk - libmgba - 0.10.5-r4: normalized package name match | Alpine Linux edge package indexes: libmgba from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Shared library of mGBA | https://mgba.io
- apk - libmgba-dev - 0.10.5-r4: normalized package name match | Alpine Linux edge package indexes: libmgba-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Game Boy Advance Emulator (development files) | https://mgba.io
- apk - mgba - 0.10.5-r4: normalized package name match | Alpine Linux edge package indexes: mgba from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Game Boy Advance Emulator | https://mgba.io


## 相关链接

- [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.
- [Game and emulation packages](https://pkg.so/zh-hans/game-emulation-tools/) - Matched game or emulation metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [sqlite](https://pkg.so/zh-hans/brew/sqlite/) - Runtime dependency declared by Homebrew.
- [ffmpeg](https://pkg.so/zh-hans/brew/ffmpeg/) - Runtime dependency declared by Homebrew.
- [libpng](https://pkg.so/zh-hans/brew/libpng/) - Runtime dependency declared by Homebrew.
- [lua](https://pkg.so/zh-hans/brew/lua/) - Runtime dependency declared by Homebrew.
- [libzip](https://pkg.so/zh-hans/brew/libzip/) - Runtime dependency declared by Homebrew.
- [sdl2-compat](https://pkg.so/zh-hans/brew/sdl2-compat/) - Runtime dependency declared by Homebrew.
- [qt@5](https://pkg.so/zh-hans/brew/qt-5/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [atari800](https://pkg.so/zh-hans/brew/atari800/) - Shares pkgdb curated category or tags: cli, emulator, emulators, games.
- [blastem](https://pkg.so/zh-hans/brew/blastem/) - Shares pkgdb curated category or tags: cli, emulator, emulators, games.
- [mame](https://pkg.so/zh-hans/brew/mame/) - Shares pkgdb curated category or tags: cli, emulator, games.
- [vice](https://pkg.so/zh-hans/brew/vice/) - Shares pkgdb curated category or tags: cli, emulator, games.
- [ppsspp](https://pkg.so/zh-hans/brew/ppsspp/) - Shares pkgdb curated category or tags: cli, emulator, games.
- [dosbox-staging](https://pkg.so/zh-hans/brew/dosbox-staging/) - Shares pkgdb curated category or tags: cli, emulator, games.
- [openmsx](https://pkg.so/zh-hans/brew/openmsx/) - Shares pkgdb curated category or tags: cli, emulator, games.
- [mupen64plus](https://pkg.so/zh-hans/brew/mupen64plus/) - Shares pkgdb curated category or tags: cli, emulator, games.
- [corsixth](https://pkg.so/zh-hans/brew/corsixth/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, compat, ffmpeg, game, games.

## Combined YAML source

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