# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, zypper 安装 timg

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

## 安装

```sh
sudo av install brew:timg
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install timg
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install timg
```

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

### Linux

- apk (92%):

```sh
sudo apk add timg
```

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

- Debian apt (92%):

```sh
sudo apt install timg
```

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

- dnf (92%):

```sh
sudo dnf install timg
```

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

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

- zypper (92%):

```sh
sudo zypper install timg
```

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

## 软件包事实

- **软件包键:** brew:timg
- **软件包管理器:** Homebrew
- **版本:** 1.6.3
- **来源摘要:** Terminal image and video viewer
- **主页:** <https://timg.sh/>
- **仓库:** <https://github.com/hzeller/timg>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- timg (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

timg is a terminal image and video viewer that renders media using terminal graphics protocols or Unicode/block-character fallbacks.

### 项目历史

The official repository describes timg as a user-friendly terminal viewer for images and videos. It supports Sixel, Kitty, and iTerm2 graphics protocols for full-resolution display, with 24-bit color and Unicode block fallbacks for terminals without graphics support.

The official GitHub releases show v0.9.0 as the first public release in June 2016. Later releases added features such as video playback, iTerm2 graphics support, Kitty graphics support, grid display, and maintenance fixes, with v1.6.3 published in 2025.

### 采用历史

timg was adopted in the terminal-media niche as modern terminals gained richer image protocols. The input package-manager data lists apk, Homebrew, Debian, Fedora, MacPorts, Nix, Ubuntu, and openSUSE, showing that it moved beyond a single-distro novelty.

Its packaging footprint reflects demand from users who want previews over SSH, inside terminal file-manager workflows, or during command-line media triage.

### 使用方式

The common use case is quick visual inspection without leaving the shell: displaying images, animated GIFs, videos, and other supported media directly in a terminal.

In terminals with graphics protocol support, timg can display real image data; otherwise it degrades to block-based representations that are still useful for previews.

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

timg is notable to package nerds because it sits at the intersection of terminal capability detection, graphics protocol support, and lightweight CLI media tooling.

It is often compared with other terminal viewers such as chafa, viu, catimg, and sixel-oriented tools, but its package appeal comes from combining image, GIF, and video preview behavior in one installed command.

### 时间线

- 2016-06: v0.9.0 first public release.
- 2021-02: v1.0.0 release added grid display, threaded loading, and long options.
- 2021-03: v1.2.0 highlighted iTerm2 graphics support and v1.1.0 highlighted Kitty graphics support.
- 2025-09: v1.6.3 maintenance release published.

### Related projects

- Related terminal image tools include chafa, viu, catimg, imgcat, and other Sixel, Kitty, or iTerm2 graphics viewers.

### 来源

- <https://api.github.com/repos/hzeller/timg/releases - official GitHub releases identify v0.9.0 first public release and later feature milestones.>
- <https://github.com/hzeller/timg - official README describes terminal graphics protocols, fallback rendering, images, and videos.>
- input.source_facts.package-manager - package-manager availability lists apk, Homebrew, Debian, Fedora, MacPorts, Nix, Ubuntu, and openSUSE.


## 安全说明

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

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

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

- Debian apt - timg - 1.6.0-1+b1: normalized package name match | Debian stable package indexes: timg from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | terminal image and video viewer | https://github.com/hzeller/timg
- Nix - timg: normalized package name match | nixpkgs package indexes: pkgs/by-name/ti/timg/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - timg - 1.5.2-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: timg from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | terminal image and video viewer | https://github.com/hzeller/timg
- apk - timg - 1.6.3-r0: normalized package name match | Alpine Linux edge package indexes: timg from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | 24-Bit color image viewer for terminal | https://github.com/hzeller/timg
- apk - timg-doc - 1.6.3-r0: normalized package name match | Alpine Linux edge package indexes: timg-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | 24-Bit color image viewer for terminal (documentation) | https://github.com/hzeller/timg
- dnf - timg - 1.6.3-6.fc45: normalized package name match | Fedora Rawhide package metadata: timg from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A terminal image and video viewer | https://github.com/hzeller/timg
- zypper - timg - 1.6.3-1.8: normalized package name match | openSUSE Tumbleweed package metadata: timg from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Terminal image viewer | https://github.com/hzeller/timg
- MacPorts - timg: normalized package name match | MacPorts ports tree: graphics/timg/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/timg.yml](https://github.com/mxcl/pkgdb/blob/main/combined/timg.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
