# 使用 Homebrew, dnf, MacPorts, Nix, zypper 安装 gti

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

## 安装

```sh
sudo av install brew:gti
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gti
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gti
```

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

### Linux

- dnf (92%):

```sh
sudo dnf install gti
```

  证据: Fedora Rawhide package metadata: gti 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#gti
```

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

- zypper (92%):

```sh
sudo zypper install gti
```

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

## 软件包事实

- **软件包键:** brew:gti
- **软件包管理器:** Homebrew
- **版本:** 1.9.1
- **来源摘要:** ASCII-art displaying typo-corrector for commands
- **主页:** <https://r-wos.org/hacks/gti>
- **仓库:** <https://github.com/rwos/gti>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gti (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

gti is a deliberately silly git typo launcher: when a user types gti instead of git, it plays an ASCII-art animation and then runs the intended git command. It is tiny, but it survives in package managers because it turns a common developer typo into a harmless joke.

### 项目历史

Richard Wossal's project page describes gti as a program that displays a badly made ASCII-art animation as punishment for the typing error and then launches the command the user meant to run. The official README calls it a silly git launcher inspired by sl.

The repository's initial commit dates to 2012-08-15. The code is small C with a Makefile, a manual page, and shell completions, which matches the old-school Unix joke-tool pattern.

### 采用历史

The official README lists packages or ports for Fedora, Arch Linux AUR, Gentoo, Nix/NixOS, FreeBSD ports, OpenBSD ports, Homebrew on macOS, and Cygwin. That list explains why a joke command still has cross-platform package metadata: it is cheap to build and memorable to install.

### 使用方式

The intended invocation is accidental: type gti when trying to type git. After the animation, gti dispatches to git. The README documents GTI_SPEED as an environment variable for changing the animation speed.

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

gti belongs to the lineage of terminal whimsy packages such as sl, but its package-manager hook is practical: unlike sl, it forwards to git after the joke. It is a good example of how tiny C utilities with manpages, completions, and portable Makefiles can become distro trivia.

### 时间线

- 2012: Initial commit added gti.
- 2012: The author page described the typo-correcting ASCII-art behavior.
- 2023: v1.9.1 tag was cut with a Homebrew build fix noted in the commit message.

### Related projects

- git is the command gti wraps after the animation.
- sl is the inspiration named by both the author page and README.

### 来源

- <https://api.github.com/repos/rwos/gti/commits/789bea8c6e330c75390ec4d38f8718b957d0084f>
- <https://api.github.com/repos/rwos/gti/commits?per_page=1&page=98>
- <https://github.com/rwos/gti>
- <https://r-wos.org/hacks/gti>
- <https://raw.githubusercontent.com/rwos/gti/master/README.md>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Nix - gti: normalized package name match | nixpkgs package indexes: pkgs/by-name/gt/gti/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- dnf - gti - 1.6.1-15.fc45: normalized package name match | Fedora Rawhide package metadata: gti from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Just a silly gti launcher | http://r-wos.org/hacks/gti
- zypper - gti - 1.9.1-1.8: normalized package name match | openSUSE Tumbleweed package metadata: gti from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | ASCII art punishment for misspelling git | https://r-wos.org/hacks/gti
- MacPorts - gti: normalized package name match | MacPorts ports tree: games/gti/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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