# 使用 Homebrew, MacPorts, Nix, apt, scoop, winget 安装 agg

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

## 安装

```sh
sudo av install brew:agg
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install agg
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install agg
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#agg
```

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

- Debian apt (92%):

```sh
sudo apt install libagg-dev
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/agg
```

  证据: Scoop official bucket manifest trees: bucket/agg.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id asciinema.agg -e
```

  证据: Windows Package Manager source index: asciinema.agg from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:agg
- **软件包管理器:** Homebrew
- **版本:** 1.9.0
- **来源摘要:** Asciicast to GIF converter
- **主页:** <https://docs.asciinema.org/manual/agg/>
- **仓库:** <https://github.com/asciinema/agg>
- **最后更新:** 2026-07-10T16:49:54-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- agg (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

agg, the asciinema gif generator, is a command-line tool for rendering terminal session recordings in asciicast format to animated GIF files.

### 项目历史

The agg repository was created under the asciinema organization in July 2022, and v1.0.0, named Hello, World!, was released in August 2022. The README describes it as a command-line generator for animated GIF files from terminal session recordings.

agg belongs to the broader asciinema ecosystem created by Marcin Kulik. Whereas asciinema records, streams, and plays terminal sessions, agg focuses on producing portable GIF artifacts from asciicast files. Later releases through 2026 continued the 1.x line.

### 采用历史

The upstream README documents building and installing with Cargo from the GitHub repository, manual source builds, and Docker/Podman image builds. The supplied package metadata shows Homebrew, MacPorts, Nix, Scoop, and winget packaging for agg; Debian and Ubuntu entries in the supplied facts refer to `libagg-dev`, so they should not be treated as upstream asciinema agg adoption without separate confirmation.

### 使用方式

agg converts asciicast recordings produced by asciinema into GIF output. The README highlights support for asciicast v1, v2, and v3, input from local files, stdin, or HTTP(S) URLs, optimized GIF output through gifski, built-in and custom themes, font controls, emoji rendering, multiple rendering backends, playback speed, idle-time limiting, frame selection, looping, FPS caps, and terminal-size overrides.

Its usual package-manager value is pragmatic: a user records a terminal session with asciinema, then ships a GIF for documentation, READMEs, release notes, issue reports, or places where embedded asciinema playback is not available.

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

agg sits at a fun packaging intersection: terminal recording culture, Rust command-line distribution, font rendering, GIF encoding, and documentation workflows. It is the package you reach for when a terminal cast needs to become a boring old image file that every platform can show.

It also demonstrates how ecosystem packages grow around a file format. asciicast is the format; asciinema is the recorder/player; agg is the renderer/exporter.

### 时间线

- 2022: GitHub repository created.
- 2022: v1.0.0 released.
- 2023: v1.4.x releases published.
- 2024: v1.5.0 released.
- 2025: v1.6.0 and v1.7.0 released.
- 2026: v1.8.x and v1.9.0 released.

### Related projects

- asciinema is the terminal session recorder, streamer, and player that produces asciicast recordings.
- asciicast is the recording file format agg consumes.
- gifski is the GIF encoder library named by the README as the basis for optimized output.

### 来源

- official GitHub releases API
- official GitHub repository metadata
- official asciinema docs
- source_facts.package-manager with Debian/Ubuntu caveat
- upstream README


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Debian apt - libagg-dev - 1:2.7.0.r145+dfsg-2: normalized package name match | Debian stable package indexes: libagg-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | AntiGrain Geometry graphical toolkit (static development files) | http://www.antigrain.com
- Debian apt - libagg2-dev - 1:2.7.0.r145+dfsg-2: normalized package name match | Debian stable package indexes: libagg2-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | AntiGrain Geometry graphical toolkit (static and shared development files) | http://www.antigrain.com
- Debian apt - libagg2t64 - 1:2.7.0.r145+dfsg-2: normalized package name match | Debian stable package indexes: libagg2t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | AntiGrain Geometry graphical toolkit (runtime files) | http://www.antigrain.com
- Nix - agg: normalized package name match | nixpkgs package indexes: pkgs/by-name/ag/agg/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libagg-dev - 1:2.6.1-r134+dfsg1-2.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libagg-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | AntiGrain Geometry graphical toolkit (static development files) | http://www.antigrain.com
- Ubuntu apt - libagg2-dev - 1:2.6.1-r134+dfsg1-2.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libagg2-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | AntiGrain Geometry graphical toolkit (static and shared development files) | http://www.antigrain.com
- Ubuntu apt - libagg2t64 - 1:2.6.1-r134+dfsg1-2.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libagg2t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | AntiGrain Geometry graphical toolkit (runtime files) | http://www.antigrain.com
- MacPorts - agg: normalized package name match | MacPorts ports tree: graphics/agg/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/agg: normalized package name match | Scoop official bucket manifest trees: bucket/agg.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - asciinema.agg: normalized package name match | Windows Package Manager source index: asciinema.agg from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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