# Install tig with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Text interface for Git repositories. Version 2.6.1 via Homebrew; verified 2026-06-14.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install tig
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install tig
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: Fedora Rawhide package metadata: tig from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#tig
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: openSUSE Tumbleweed package metadata: tig from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:tig
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/tig>
- **Version:** 2.6.1
- **Source summary:** Text interface for Git repositories
- **Homepage:** <https://jonas.github.io/tig/>
- **Repository:** <https://github.com/jonas/tig>
- **Upstream docs:** <https://github.com/jonas/tig/blob/master/doc/manual.adoc>
- **License:** GPL-2.0-or-later
- **Source archive:** <https://github.com/jonas/tig/releases/download/tig-2.6.1/tig-2.6.1.tar.gz>
- **Last updated:** 2026-06-14T05:08:25Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- tig (cli)
- tig (alias)

## Dependencies

- ncurses
- pcre2
- readline

## Build dependencies

- pkgconf

## Install behavior

- Post-install hook: not defined
- Caveats: A sample of the default configuration has been installed to: $HOMEBREW_PREFIX/opt/tig/share/tig/examples/tigrc to override the system-wide default configuration, copy the sample to: $HOMEBREW_PREFIX/etc/tigrc
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.6.1
- Package-manager updated: 2026-06-14
- Local data: ok
- Upstream repository: https://github.com/jonas/tig
- info: No cached GitHub release or tag data was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <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.>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- 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
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** tig
- **Aliases:** git-tig
- **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

## Other Package-Manager Records

- 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.0-r1: 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.0-r1: 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.0-2.fc44: normalized package name match | Fedora Rawhide package metadata: tig from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Text-mode interface for the git revision control system | https://jonas.github.io/tig/
- pacman - tig - 2.6.0-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.0-1.4: normalized package name match | openSUSE Tumbleweed package metadata: tig from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | An ncurses-based text-mode interface for git | https://jonas.github.io/tig/
- zypper - tig-bash-completion - 2.6.0-1.4: normalized package name match | openSUSE Tumbleweed package metadata: tig-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Bash completion for tig | https://jonas.github.io/tig/
- zypper - tig-zsh-completion - 2.6.0-1.4: normalized package name match | openSUSE Tumbleweed package metadata: tig-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-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


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [ncurses](https://www.automicvault.com/pkg/brew/ncurses/) - Runtime dependency declared by Homebrew.
- [pcre2](https://www.automicvault.com/pkg/brew/pcre2/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [nb](https://www.automicvault.com/pkg/brew/nb/) - Popular package that depends on this formula.
- [lazygit](https://www.automicvault.com/pkg/brew/lazygit/) - Shares av.db curated category or tags: cli, developer-tools, git, terminal-ui, version-control.
- [braid](https://www.automicvault.com/pkg/brew/braid/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [codeberg-cli](https://www.automicvault.com/pkg/brew/codeberg-cli/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [dura](https://www.automicvault.com/pkg/brew/dura/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [gcli](https://www.automicvault.com/pkg/brew/gcli/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [ggc](https://www.automicvault.com/pkg/brew/ggc/) - Shares av.db curated category or tags: cli, developer-tools, git, terminal-ui, version-control.
- [git-branchless](https://www.automicvault.com/pkg/brew/git-branchless/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [git-cinnabar](https://www.automicvault.com/pkg/brew/git-cinnabar/) - Shares av.db curated category or tags: cli, developer-tools, git, version-control.
- [git-open](https://www.automicvault.com/pkg/brew/git-open/) - Local package facts share a topical domain. Shared terms: browser, cli, control, developer, developer-tools.
- [gitbatch](https://www.automicvault.com/pkg/brew/gitbatch/) - Local package facts share a topical domain. Shared terms: cli, control, developer, developer-tools, git.

## Combined YAML source

View the package source record on GitHub. [combined/tig.yml](https://github.com/automic-vault/db/blob/main/combined/tig.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
