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

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

## 安装

```sh
sudo av install brew:libvterm
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libvterm
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libvterm
```

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

### Linux

- apk (92%):

```sh
sudo apk add libvterm
```

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

- dnf (92%):

```sh
sudo dnf install libvterm
```

  证据: Fedora Rawhide package metadata: libvterm from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#libvterm
```

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

- pacman (92%):

```sh
sudo pacman -S libvterm
```

  证据: Arch Linux sync databases: libvterm from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- Debian apt (92%):

```sh
sudo apt install libvterm-bin
```

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

- zypper (92%):

```sh
sudo zypper install libvterm-devel
```

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

## 软件包事实

- **软件包键:** brew:libvterm
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/libvterm>
- **版本:** 0.3.3
- **来源摘要:** C99 library which implements a VT220 or xterm terminal emulator
- **主页:** <https://www.leonerd.org.uk/code/libvterm/>
- **上游文档:** <https://www.leonerd.org.uk/code/libvterm/>
- **许可证:** MIT
- **源码归档:** <https://launchpad.net/libvterm/trunk/v0.3/+download/libvterm-0.3.3.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- unterm (cli)
- vterm-ctrl (cli)
- vterm-dump (cli)
- unterm (别名)
- vterm-ctrl (别名)
- vterm-dump (别名)

## 构建依赖

- libtool

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.3.3
- 本地数据: OK
- 上游仓库: https://www.leonerd.org.uk/code/libvterm/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

libvterm is Paul "LeoNerd" Evans's C99 library for embedding a VT/xterm/ECMA-48 terminal emulator without binding the emulator to a graphics toolkit. In package-manager terms it is a small, sharp terminal-emulation core: applications provide callbacks for drawing while libvterm handles escape sequences, screen state, and terminal behavior.

### 项目历史

The official libvterm page describes it as an abstract C99 implementation of a VT220 or xterm-like terminal emulator that avoids a specific graphics toolkit and avoids malloc during normal running state. Launchpad records the project as registered by Paul Evans on 2010-08-01, with Bazaar as the version-control system and MIT/X/Expat licensing.

The project grew alongside related terminal experiments such as pangoterm and x86term. LeoNerd's project page points to pangoterm as a GTK/Pango terminal using libvterm, and blog posts from the 2010s document the library reaching enough completeness to drive Vim in its own terminal environment.

### 采用历史

libvterm became best known beyond its author's ecosystem through editor and terminal embedding work. Neovim maintained a public fork and later documented that vterm had been bundled into Neovim itself under src/nvim/vterm, making libvterm part of the story behind Neovim's built-in :terminal support.

### 使用方式

Applications embed libvterm when they need terminal parsing and screen-state management but want to draw through their own UI toolkit, TUI layer, or experimental environment. The Homebrew package also ships small utilities such as unterm, vterm-ctrl, and vterm-dump for exercising or inspecting terminal behavior.

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

libvterm is the dependency you notice when a text editor or UI toolkit suddenly grows a real terminal. It is interesting because it packages a historically messy domain, VT and xterm escape behavior, into a reusable C library small enough for distros and embedders to carry.

### 时间线

- 2010-08-01: libvterm is registered on Launchpad by Paul "LeoNerd" Evans.
- 2015-03-02: Neovim's libvterm-based terminal work draws public attention in the editor community.
- 2022-09-06: Launchpad lists v0.3 as released.
- 2023-01-15: The official libvterm page is updated and lists libvterm-0.3.3, 0.2, and 0.1.4 tarballs.

### Related projects

- Related projects include pangoterm, Tickit, libtermkey, x86term, Neovim's bundled vterm code, and the broader family of VT100, VT220, xterm, and ECMA-48 terminal behavior that terminal emulators implement.

### 来源

- <https://github.com/neovim/libvterm>
- <https://launchpad.net/libvterm>
- <https://leonerds-code.blogspot.com/search/label/libvterm>
- <https://www.leonerd.org.uk/code/libvterm/>


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** libvterm
- **Version Scheme:** 1
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- Debian apt - libvterm-bin - 0.3.3-3+b1: normalized package name match | Debian stable package indexes: libvterm-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | abstract terminal library (utility programs) | https://www.leonerd.org.uk/code/libvterm/
- Debian apt - libvterm-dev - 0.3.3-3+b1: normalized package name match | Debian stable package indexes: libvterm-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | abstract terminal library (development files) | https://www.leonerd.org.uk/code/libvterm/
- Debian apt - libvterm0 - 0.3.3-3+b1: normalized package name match | Debian stable package indexes: libvterm0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | abstract terminal library | https://www.leonerd.org.uk/code/libvterm/
- Nix - libvterm: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libvterm/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libvterm-bin - 0.3.3-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libvterm-bin from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | abstract terminal library (utility programs) | https://www.leonerd.org.uk/code/libvterm/
- Ubuntu apt - libvterm-dev - 0.3.3-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libvterm-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | abstract terminal library (development files) | https://www.leonerd.org.uk/code/libvterm/
- Ubuntu apt - libvterm0 - 0.3.3-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libvterm0 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | abstract terminal library | https://www.leonerd.org.uk/code/libvterm/
- apk - libvterm - 0.3.3-r0: normalized package name match | Alpine Linux edge package indexes: libvterm from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Abstract library implementation of a VT220/xterm/ECMA-48 terminal emulator | https://www.leonerd.org.uk/code/libvterm/
- apk - libvterm-dev - 0.3.3-r0: normalized package name match | Alpine Linux edge package indexes: libvterm-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Abstract library implementation of a VT220/xterm/ECMA-48 terminal emulator (development files) | https://www.leonerd.org.uk/code/libvterm/
- apk - libvterm-static - 0.3.3-r0: normalized package name match | Alpine Linux edge package indexes: libvterm-static from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Abstract library implementation of a VT220/xterm/ECMA-48 terminal emulator (static library) | https://www.leonerd.org.uk/code/libvterm/
- dnf - libvterm - 0.3.3-9.fc45: normalized package name match | Fedora Rawhide package metadata: libvterm from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | An abstract library implementation of a VT220/xterm/ECMA-48 terminal emulator | https://www.leonerd.org.uk/code/libvterm
- dnf - libvterm-devel - 0.3.3-9.fc45: normalized package name match | Fedora Rawhide package metadata: libvterm-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Development files needed for libvterm | https://www.leonerd.org.uk/code/libvterm
- dnf - libvterm-tools - 0.3.3-9.fc45: normalized package name match | Fedora Rawhide package metadata: libvterm-tools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Tools for libvterm | https://www.leonerd.org.uk/code/libvterm
- pacman - libvterm - 0.3.3-2: normalized package name match | Arch Linux sync databases: libvterm from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Abstract library implementation of a VT220/xterm/ECMA-48 terminal emulator | https://www.leonerd.org.uk/code/libvterm/
- zypper - libvterm-devel - 0.3.3-1.9: normalized package name match | openSUSE Tumbleweed package metadata: libvterm-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development files of libvterm | https://launchpad.net/libvterm
- zypper - libvterm-tools - 0.3.3-1.9: normalized package name match | openSUSE Tumbleweed package metadata: libvterm-tools from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Tools for libvterm | https://launchpad.net/libvterm


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [libtool](https://pkg.so/zh-hans/brew/libtool/) - Build dependency declared by Homebrew.
- [ada-url](https://pkg.so/zh-hans/brew/ada-url/) - Shares pkgdb curated category or tags: cli, developer-tools, library.
- [cgal](https://pkg.so/zh-hans/brew/cgal/) - Shares pkgdb curated category or tags: cli, developer-tools, library.
- [enchant](https://pkg.so/zh-hans/brew/enchant/) - Shares pkgdb curated category or tags: cli, developer-tools, library.
- [newt](https://pkg.so/zh-hans/brew/newt/) - Shares pkgdb curated category or tags: cli, developer-tools, library, terminal.
- [rio-terminal](https://pkg.so/zh-hans/brew/rio-terminal/) - Shares pkgdb curated category or tags: cli, developer-tools, terminal, terminal-emulator.
- [notcurses](https://pkg.so/zh-hans/brew/notcurses/) - Shares pkgdb curated category or tags: cli, developer-tools, library, terminal.
- [lunar-date](https://pkg.so/zh-hans/brew/lunar-date/) - Shares pkgdb curated category or tags: cli, developer-tools, library.
- [oh-my-posh](https://pkg.so/zh-hans/brew/oh-my-posh/) - Shares pkgdb curated category or tags: cli, developer-tools, terminal.
- [vte3](https://pkg.so/zh-hans/brew/vte3/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, emulator, library.
- [xterm](https://pkg.so/zh-hans/brew/xterm/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, emulator, terminal.

## Combined YAML source

View the package source record on GitHub. [combined/libvterm.yml](https://github.com/mxcl/pkgdb/blob/main/combined/libvterm.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
