# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 0.3.3
- **来源摘要:** C99 library which implements a VT220 or xterm terminal emulator
- **主页:** <https://www.leonerd.org.uk/code/libvterm/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
