# tig を Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper でインストール

tig のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:tig
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install tig
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install tig
```

  証拠: MacPorts ports tree: devel/tig/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add tig
```

  証拠: Alpine Linux edge package indexes: tig from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install tig
```

  証拠: Debian stable package indexes: tig from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install tig
```

  証拠: Fedora Rawhide package metadata: tig 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#tig
```

  証拠: nixpkgs package indexes: pkgs/by-name/ti/tig/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S tig
```

  証拠: Arch Linux sync databases: tig from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install tig
```

  証拠: openSUSE Tumbleweed package metadata: tig from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## パッケージ情報

- **パッケージキー:** brew:tig
- **パッケージマネージャ:** Homebrew
- **バージョン:** 2.6.1
- **ソース概要:** Text interface for Git repositories
- **ホームページ:** <https://jonas.github.io/tig/>
- **リポジトリ:** <https://github.com/jonas/tig>
- **最終更新:** 2026-06-14T05:08:25Z
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- tig (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 2.6.1
## プロジェクトの歴史と使われ方

Tig is an ncurses-based text-mode interface for Git. Its README describes it mainly as a Git repository browser that can also stage changes at chunk level and act as a pager for output from Git commands.

### プロジェクトの歴史

Tig grew around a simple package-manager-friendly idea: keep Git's command-line model, but make repository history, diffs, refs, blame, status, and staging navigable in a terminal UI. The manual explicitly says Tig uses underlying Git commands to present views such as commit logs, diffs, trees, blobs, blame, refs, status, stashes, grep results, and pager input.

The public GitHub repository was created in March 2009, and the official release notes show the project continuing through the 2.x series with ongoing fixes, Unicode updates, Git integration changes, editor behavior, blame improvements, status/stage workflow refinements, and security fixes such as the 2.6.1 editor command injection fix.

Tig's design has stayed deliberately close to Git rather than becoming a separate repository manager. Its manual documents that command-line Git options are passed through, Git output can be piped into pager mode, and user-defined commands can reference the current commit, branch, file, line, stash, or repository state.

### 採用の歴史

The input package facts list Tig across Homebrew, Debian, Ubuntu, Fedora/dnf, Alpine/apk, Arch/pacman, openSUSE/zypper, MacPorts, and Nix. That broad packaging footprint matches Tig's long-standing role as a standard terminal companion for Git users.

GitHub repository metadata also shows a large user base for a C/ncurses terminal tool, with many forks and stars and topics including git, ncurses, and tui. For a package database, this is a strong signal that Tig is not just a niche wrapper but a mature CLI application with cross-platform package visibility.

Tig's adoption tracks the popularity of text UIs among developers who want richer navigation than git log or git status without leaving SSH sessions, tmux panes, or minimal development environments.

### 使われ方

Common usage is interactive repository browsing: users run tig in a Git worktree to inspect commit history, open diffs, jump into blame, browse trees, inspect refs, and move between views from a single terminal screen.

Tig is also used as a pager. The manual shows piping git show into tig, and the README says it can act as a pager for output from various Git commands, which makes it useful in aliases and scripts that preserve Git's native output while adding navigation and color.

Its status and stage views matter to daily Git users because they allow staging and unstaging changes, including chunk-level staging, without starting a graphical Git client.

### パッケージ好きにとっての重要性

Tig is a canonical package-nerd tool: small name, huge day-to-day leverage, packaged everywhere, and useful immediately after brew install tig on a new machine. It represents the Unix packaging sweet spot where a binary depends on familiar libraries and composes with the command line rather than replacing it.

For maintainers and power users, Tig is also interesting because its behavior is tied to Git versions, ncurses, Unicode handling, shells, editors, and terminal quirks. The release notes read like a history of practical terminal-Git edge cases, which is exactly why distributions keep shipping current builds.

### タイムライン

- 2009: GitHub repository for jonas/tig created.
- 2010s: Tig becomes widely packaged as a terminal interface for Git repositories.
- 2024-2026: 2.5 and 2.6 release notes document continued work on Unicode, blame, status/stage behavior, Git maintenance refs, Apple Silicon build adjustments, and security fixes.
- 2026: 2.6.1 release notes document a security fix for an editor command injection vulnerability affecting 2.6.0.

### Related projects

- Tig is directly tied to Git: it shells out to Git commands and presents Git logs, diffs, refs, blame, status, stash, and grep views.
- Its closest package-neighbor category is terminal Git clients and TUIs, but official documentation frames it as a text-mode interface and pager rather than a replacement Git implementation.

### ソース

- <https://api.github.com/repos/jonas/tig - GitHub repository metadata for creation date, language, topics, and adoption signals.>
- <https://github.com/jonas/tig#readme - official README for purpose, bug-report channels, release-note pointers, and resource links.>
- <https://github.com/jonas/tig/blob/master/NEWS.adoc - official release notes for ongoing maintenance and security/history details.>
- <https://github.com/jonas/tig/blob/master/doc/manual.adoc - official manual for pager mode, Git command passthrough, and repository views.>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: {sysconfdir}/tigrc, ~/.tigrc, $XDG_CONFIG_HOME/tig/config
## 他のパッケージマネージャ記録

- Debian apt - tig - 2.5.8-1+b1: normalized package name match | Debian stable package indexes: tig from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | ncurses-based text-mode interface for Git | https://jonas.github.io/tig/
- Nix - tig: normalized package name match | nixpkgs package indexes: pkgs/by-name/ti/tig/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - tig - 2.5.8-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: tig from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | ncurses-based text-mode interface for Git | https://jonas.github.io/tig/
- apk - tig - 2.6.1-r0: normalized package name match | Alpine Linux edge package indexes: tig from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Text-mode interface for the git revision control system | https://jonas.github.io/tig/
- apk - tig-doc - 2.6.1-r0: normalized package name match | Alpine Linux edge package indexes: tig-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Text-mode interface for the git revision control system (documentation) | https://jonas.github.io/tig/
- dnf - tig - 2.6.1-2.fc45: normalized package name match | Fedora Rawhide package metadata: tig from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Text-mode interface for the git revision control system | https://jonas.github.io/tig/
- pacman - tig - 2.6.1-1: normalized package name match | Arch Linux sync databases: tig from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Text-mode interface for Git. | https://jonas.github.io/tig/
- zypper - tig - 2.6.1-1.3: normalized package name match | openSUSE Tumbleweed package metadata: tig from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | An ncurses-based text-mode interface for git | https://jonas.github.io/tig/
- zypper - tig-bash-completion - 2.6.1-1.3: normalized package name match | openSUSE Tumbleweed package metadata: tig-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Bash completion for tig | https://jonas.github.io/tig/
- zypper - tig-zsh-completion - 2.6.1-1.3: normalized package name match | openSUSE Tumbleweed package metadata: tig-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Zsh completion for tig | https://jonas.github.io/tig/
- MacPorts - tig: normalized package name match | MacPorts ports tree: devel/tig/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/tig.yml](https://github.com/mxcl/pkgdb/blob/main/combined/tig.yml)


## ソース

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