# 使用 Homebrew, MacPorts, apt 安装 g2

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

## 安装

```sh
sudo av install brew:g2
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install g2
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install g2
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install libg2-dev
```

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

## 软件包事实

- **软件包键:** brew:g2
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/g2>
- **版本:** 1.1
- **来源摘要:** Friendly git client
- **主页:** <https://orefalo.github.io/g2/>
- **仓库:** <https://github.com/orefalo/g2>
- **上游文档:** <https://orefalo.github.io/g2/>
- **许可证:** MIT
- **源码归档:** <https://github.com/orefalo/g2/archive/refs/tags/v1.1.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 安装行为

- post-install 钩子: 未定义
- 注意事项: To complete the installation: . $HOMEBREW_CELLAR/g2/1.1/g2-install.sh NOTE: This will install a new ~/.gitconfig, backing up any existing file first. For more information view: $HOMEBREW_CELLAR/g2/1.1/README.md
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.1
- 本地数据: OK
- 上游仓库: https://github.com/orefalo/g2
- 检测到的最新版本: v1.1 (当前)
- 信息: No package-manager update timestamp was available.

## 安全说明

没有找到 g2 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** g2
- **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 - libg2-dev - 0.72-13: normalized package name match | Debian stable package indexes: libg2-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | g2 2D graphics library (development files) | https://github.com/danielrmeyer/g2/
- Debian apt - libg20 - 0.72-13: normalized package name match | Debian stable package indexes: libg20 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | g2 2D graphics library | https://github.com/danielrmeyer/g2/
- Debian apt - libg20-perl - 0.72-13: normalized package name match | Debian stable package indexes: libg20-perl from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | g2 2D graphics library (Perl module) | https://github.com/danielrmeyer/g2/
- Ubuntu apt - libg2-dev - 0.72-12build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libg2-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | g2 2D graphics library (development files) | https://github.com/danielrmeyer/g2/
- Ubuntu apt - libg20 - 0.72-12build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libg20 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | g2 2D graphics library | https://github.com/danielrmeyer/g2/
- Ubuntu apt - libg20-perl - 0.72-12build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libg20-perl from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | g2 2D graphics library (Perl module) | https://github.com/danielrmeyer/g2/
- MacPorts - g2: normalized package name match | MacPorts ports tree: graphics/g2/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [git-ftp](https://pkg.so/zh-hans/brew/git-ftp/) - Local metadata places this package in an adjacent workflow. Shared terms: client, git.
- [gitu](https://pkg.so/zh-hans/brew/gitu/) - Local metadata places this package in an adjacent workflow. Shared terms: client, git.
- [gitui](https://pkg.so/zh-hans/brew/gitui/) - Local metadata places this package in an adjacent workflow. Shared terms: client, git.

## 来源

- pkg.so package database
- package-page enrichment
- package version freshness
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
