Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 tig

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install tig

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install tig

MacPorts ports tree · devel/tig/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add tig

Alpine Linux edge package indexes · tig · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install tig

Debian stable package indexes · tig · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install tig

Fedora Rawhide package metadata · tig · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#tig

nixpkgs package indexes · pkgs/by-name/ti/tig/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S tig

Arch Linux sync databases · tig · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install tig

openSUSE Tumbleweed package metadata · tig · 来源: download.opensuse.org

概览

软件包摘要

Text interface for Git repositories

历史

项目历史与用法

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.

来源

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 3 个运行时依赖。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

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

Config paths the tool may read or write during local use.

Unix
{sysconfdir}/tigrc~/.tigrc$XDG_CONFIG_HOME/tig/config

可执行文件

已安装的可执行文件

命令类型暴露范围备注
tigcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本2.6.1
管理器更新时间2026-06-14
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/jonas/tig

安装元数据

软件包元数据

软件包键brew:tig
版本2.6.1
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/tig
主页https://jonas.github.io/tig/
仓库https://github.com/jonas/tig
上游文档https://github.com/jonas/tig/blob/master/doc/manual.adoc
许可证GPL-2.0-or-later
源码归档https://github.com/jonas/tig/releases/download/tig-2.6.1/tig-2.6.1.tar.gz
最后更新2026-06-14T05:08:25Z
Pulseupdated
依赖ncurses, pcre2, readline
构建依赖pkgconf
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明
注意事项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

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nametig
Aliases
  • git-tig
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

tig 2.5.8-1+b1

ncurses-based text-mode interface for Git

https://jonas.github.io/tig/

sudo apt install tig
  • Section: vcs
  • Architecture: amd64
  • Source Package: tig
  • 8 依赖
  • normalized package name match
  • 匹配方式:Tig
Debian stable package indexes · deb.debian.org · Debian stable package indexes: tig from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

tig

nix profile install nixpkgs#tig
  • normalized package name match
  • 匹配方式:Tig
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ti/tig/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

tig 2.5.8-1build2

ncurses-based text-mode interface for Git

https://jonas.github.io/tig/

sudo apt install tig
  • Section: universe/utils
  • Architecture: amd64
  • 8 依赖
  • normalized package name match
  • 匹配方式:Tig
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: tig from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

tig 2.6.0-r1

Text-mode interface for the git revision control system

https://jonas.github.io/tig/

sudo apk add tig
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: tig
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Tig
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: tig from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

tig-doc 2.6.0-r1

Text-mode interface for the git revision control system (documentation)

https://jonas.github.io/tig/

sudo apk add tig-doc
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: tig
  • normalized package name match
  • 匹配方式:Tig
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: tig-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

tig 2.6.0-2.fc44

Text-mode interface for the git revision control system

https://jonas.github.io/tig/

sudo dnf install tig
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: tig
  • 6 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Tig
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: tig from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

tig 2.6.0-1

Text-mode interface for Git.

https://jonas.github.io/tig/

sudo pacman -S tig
  • License: GPL
  • Architecture: x86_64
  • 8 依赖
  • normalized package name match
  • 匹配方式:Tig
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: tig from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

tig 2.6.0-1.4

An ncurses-based text-mode interface for git

https://jonas.github.io/tig/

sudo zypper install tig
  • License: GPL-2.0-or-later
  • Category: Development/Tools/Version Control
  • Architecture: x86_64
  • Source Package: tig
  • 7 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Tig
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: tig from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

tig-bash-completion 2.6.0-1.4

Bash completion for tig

https://jonas.github.io/tig/

sudo zypper install tig-bash-completion
  • License: GPL-2.0-or-later
  • Category: Development/Tools/Version Control
  • Architecture: noarch
  • Source Package: tig
  • 2 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Tig
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: tig-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

tig-zsh-completion 2.6.0-1.4

Zsh completion for tig

https://jonas.github.io/tig/

sudo zypper install tig-zsh-completion
  • License: GPL-2.0-or-later
  • Category: Development/Tools/Version Control
  • Architecture: noarch
  • Source Package: tig
  • 2 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Tig
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: tig-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

tig

sudo port install tig
  • normalized package name match
  • 匹配方式:Tig
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/tig/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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