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

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

## 安装

```sh
sudo av install brew:gitg
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gitg
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gitg
```

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

### Linux

- apk (92%):

```sh
sudo apk add gitg
```

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

- Debian apt (92%):

```sh
sudo apt install gitg
```

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

- dnf (92%):

```sh
sudo dnf install gitg
```

  证据: Fedora Rawhide package metadata: gitg from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#gitg
```

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

- pacman (92%):

```sh
sudo pacman -S gitg
```

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

- zypper (92%):

```sh
sudo zypper install gitg
```

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

### Windows

- winget (92%):

```sh
winget install --id gnome.gitg -e
```

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

## 软件包事实

- **软件包键:** brew:gitg
- **软件包管理器:** Homebrew
- **版本:** 50
- **来源摘要:** GNOME GUI client to view git repositories
- **主页:** <https://wiki.gnome.org/Apps/Gitg>
- **最后更新:** 2026-08-02T20:52:06+09:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gitg (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 50
## 项目历史与用法

gitg is a GNOME graphical interface for Git repositories. Its README describes it as a small, fast, convenient tool for visualizing repository history, with additional utilities for repository management and committing work.

### 项目历史

The official GNOME repository history begins with an initial import in June 2008, placing gitg among the long-running desktop Git clients that emerged as distributed version control became common on Linux desktops. It remained within GNOME infrastructure, using GNOME distribution channels, translation systems, and application packaging practices.

The release stream shows early 0.x releases from 2009 onward, later 3.x releases aligned with GNOME-era versioning, and the v44 release in 2023. The project uses modern GNOME build tooling and advertises source downloads, Flatpak installation, and development builds from its GitLab repository.

### 采用历史

gitg's adoption is tied less to a broad plugin ecosystem and more to the GNOME desktop. It appears in Linux and Unix package collections as the GNOME-native answer for users who want visual commit history, branch inspection, and simple repository operations without leaving the desktop environment.

### 使用方式

Practitioners launch gitg from the GNOME menu or from a terminal, often inside a repository, to browse commit history, inspect branches, and perform lightweight repository management tasks. It complements command-line Git rather than replacing it.

### 为什么软件包爱好者会关心

For package nerds, gitg is a classic desktop adjunct to Git: a small GUI that distribution maintainers can package alongside the command-line tool, useful for users who prefer visual history browsing but still work in ordinary Git repositories.

### 时间线

- 2008: Initial import appears in the official repository.
- 2009: v0.0.1 begins the tagged release stream.
- 2019: v3.32.1 marks the later 3.x release line.
- 2023: v44 is tagged in the GNOME-style release series.

### Related projects

- gitg is part of the GNOME application ecosystem and relates to Git itself, GNOME GitLab, Flathub distribution, and other graphical Git clients such as gitk and Git GUI.

### 来源

- <https://download.gnome.org/sources/gitg/>
- <https://gitlab.gnome.org/GNOME/gitg>
- <https://wiki.gnome.org/Apps/Gitg>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

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

- Debian apt - gitg - 44-2: normalized package name match | Debian stable package indexes: gitg from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | git repository viewer | https://wiki.gnome.org/Apps/Gitg
- Nix - gitg: normalized package name match | nixpkgs package indexes: pkgs/by-name/gi/gitg/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - gitg - 44-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: gitg from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | git repository viewer | https://wiki.gnome.org/Apps/Gitg
- apk - gitg - 44-r4: normalized package name match | Alpine Linux edge package indexes: gitg from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | gitg is the GNOME GUI client to view git repositories | https://gitlab.gnome.org/GNOME/gitg
- apk - gitg-dev - 44-r4: normalized package name match | Alpine Linux edge package indexes: gitg-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | gitg is the GNOME GUI client to view git repositories (development files) | https://gitlab.gnome.org/GNOME/gitg
- apk - gitg-doc - 44-r4: normalized package name match | Alpine Linux edge package indexes: gitg-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | gitg is the GNOME GUI client to view git repositories (documentation) | https://gitlab.gnome.org/GNOME/gitg
- apk - gitg-lang - 44-r4: normalized package name match | Alpine Linux edge package indexes: gitg-lang from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Languages for package gitg | https://gitlab.gnome.org/GNOME/gitg
- apk - gitg-pyc - 44-r4: normalized package name match | Alpine Linux edge package indexes: gitg-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for gitg | https://gitlab.gnome.org/GNOME/gitg
- dnf - gitg - 50-3.fc45: normalized package name match | Fedora Rawhide package metadata: gitg from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | GTK+ graphical interface for the git revision control system | https://wiki.gnome.org/Apps/Gitg
- dnf - gitg-devel - 50-3.fc45: normalized package name match | Fedora Rawhide package metadata: gitg-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for gitg | https://wiki.gnome.org/Apps/Gitg
- dnf - gitg-libs - 50-3.fc45: normalized package name match | Fedora Rawhide package metadata: gitg-libs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Backend Library for gitg | https://wiki.gnome.org/Apps/Gitg
- pacman - gitg - 2:50-1: normalized package name match | Arch Linux sync databases: gitg from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | GNOME GUI client to view git repositories | https://wiki.gnome.org/Apps/Gitg
- zypper - gitg - 50-1.3: normalized package name match | openSUSE Tumbleweed package metadata: gitg from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Git repository viewer | https://wiki.gnome.org/Apps/Gitg
- zypper - gitg-lang - 50-1.3: normalized package name match | openSUSE Tumbleweed package metadata: gitg-lang from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Translations for package gitg | https://wiki.gnome.org/Apps/Gitg
- zypper - glade-catalog-gitg - 50-1.3: normalized package name match | openSUSE Tumbleweed package metadata: glade-catalog-gitg from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Git repository viewer -- Catalog for Glade | https://wiki.gnome.org/Apps/Gitg
- zypper - libgitg-1_0-0 - 50-1.3: normalized package name match | openSUSE Tumbleweed package metadata: libgitg-1_0-0 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Git repository viewer -- Library | https://wiki.gnome.org/Apps/Gitg


## Combined YAML source

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


## 来源

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