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

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

## 安装

```sh
sudo av install brew:luit
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install luit
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install luit
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install luit
```

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

- dnf (92%):

```sh
sudo dnf install luit
```

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

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

- pacman (92%):

```sh
sudo pacman -S luit
```

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

- zypper (92%):

```sh
sudo zypper install luit
```

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

## 软件包事实

- **软件包键:** brew:luit
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/luit>
- **版本:** 20250912
- **来源摘要:** Filter run between arbitrary application and UTF-8 terminal emulator
- **主页:** <https://invisible-island.net/luit/>
- **上游文档:** <https://invisible-island.net/luit/>
- **许可证:** MIT
- **源码归档:** <https://invisible-mirror.net/archives/luit/luit-20250912.tgz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- luit (cli)
- luit (别名)

## 安装行为

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

## 版本和新鲜度

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

luit is a terminal encoding filter that sits between an application and a UTF-8 terminal emulator, translating application output into UTF-8 and terminal input back into the locale encoding.

### 项目历史

Juliusz Chroboczek wrote luit for the XFree86 Project in 2001-2002. The official history credits later fixes and improvements from several people, especially Tomohiro Kubota's CJK encoding extensions, and notes that the program uses the MIT-X11 license like xterm.

Thomas E. Dickey adopted luit maintenance in 2006 after a period without a maintainer, motivated by keeping it useful with xterm. The Invisible Island history emphasizes two long-running maintenance themes: correcting distribution and path changes made in Xorg-era packaging, and reducing dependence on the lightly maintained font-encoding library by implementing efficient iconv-based conversion.

As of the 2.0 line, luit deprecated the font-encoding library path while preserving support for `.enc` files and broader encoding selection. The official page documents the practical consequences for packagers: encoding data is often packaged separately, dependencies are sometimes incomplete, and luit is not itself an X application even though it is most useful with xterm.

### 采用历史

luit began inside the XFree86 and Xorg terminal ecosystem and became a small but widely packaged Unix utility. The maintainer's page lists portability across SVR4 Unix, AIX, Tru64, BSD systems, macOS, and Linux, and the package appears in common Unix package sets such as Homebrew, Debian, Fedora, MacPorts, Nix, Arch, and openSUSE.

Its adoption is mostly invisible: users encounter it through xterm or legacy-locale workflows rather than as a standalone application. That invisibility is part of its packaging importance, because terminal emulators and old applications still need reliable conversion behavior when UTF-8 terminals meet non-UTF-8 programs.

### 使用方式

The manpage describes luit as a filter run between an arbitrary application and a UTF-8 terminal emulator. It is mainly used with xterm, but the official page stresses that luit itself is not an X application.

Power users and packagers use options such as `-list-fontenc` and `-encoding` to inspect and choose encoding tables, especially when diagnosing missing CJK or legacy encoding data.

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

luit matters to package nerds because it is a small compatibility utility with a long tail of platform-specific behavior. It exposes classic distribution issues: upstream fork history, XFree86/Xorg lineage, font-encoding data split into separate packages, iconv availability, and packagers accidentally adding unnecessary X library dependencies.

### 时间线

- 2001-2002: Written by Juliusz Chroboczek for XFree86.
- 2006: Thomas E. Dickey adopts maintenance to keep luit working with xterm.
- 2010: Xorg incorporates Dickey's luit work into its repository.
- 2013: luit 2.0 release line appears in the maintainer history.
- 2018-2022: Invisible Island page documents ongoing maintenance and portability notes.

### Related projects

- xterm is the primary terminal emulator associated with luit usage.
- XFree86 and Xorg are the historical source trees where luit circulated.
- iconv and font-encoding provide the conversion mechanisms and data paths discussed by the maintainer.

### 来源

- <https://formulae.brew.sh/formula/luit>
- <https://invisible-island.net/luit/luit.html>
- <https://invisible-island.net/luit/luit.log.html>
- <https://invisible-island.net/luit/manpage/luit.html>


## 安全说明

narrow executable package without higher-risk signals.

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

## 源数据库详情

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

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

- Debian apt - luit - 2.0.20240910-1: normalized package name match | Debian stable package indexes: luit from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | locale and ISO 2022 support for Unicode terminals | https://invisible-island.net/luit/
- Nix - luit: normalized package name match | nixpkgs package indexes: pkgs/by-name/lu/luit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- dnf - luit - 2.0.20250912-8.fc45: normalized package name match | Fedora Rawhide package metadata: luit from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Locale and ISO 2022 support for Unicode terminals | https://invisible-island.net/luit/
- pacman - luit - 20250912-1: normalized package name match | Arch Linux sync databases: luit from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Filter that can be run between an arbitrary application and a UTF-8 terminal emulator | https://invisible-island.net/luit/luit.html
- zypper - luit - 20230201-1.9: normalized package name match | openSUSE Tumbleweed package metadata: luit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Locale and ISO 2022 support for Unicode terminals | http://invisible-island.net/luit/
- MacPorts - luit: normalized package name match | MacPorts ports tree: x11/luit/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Game and emulation packages](https://pkg.so/zh-hans/game-emulation-tools/) - Matched game or emulation metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [pv](https://pkg.so/zh-hans/brew/pv/) - Shares pkgdb curated category or tags: cli, system, terminal.
- [less](https://pkg.so/zh-hans/brew/less/) - Shares pkgdb curated category or tags: cli, system, terminal.
- [screen](https://pkg.so/zh-hans/brew/screen/) - Shares pkgdb curated category or tags: cli, system, terminal.
- [ranger](https://pkg.so/zh-hans/brew/ranger/) - Shares pkgdb curated category or tags: cli, system, terminal.
- [lesspipe](https://pkg.so/zh-hans/brew/lesspipe/) - Shares pkgdb curated category or tags: cli, system, terminal.
- [picocom](https://pkg.so/zh-hans/brew/picocom/) - Shares pkgdb curated category or tags: cli, system, terminal.
- [ov](https://pkg.so/zh-hans/brew/ov/) - Shares pkgdb curated category or tags: cli, system, terminal.
- [dtach](https://pkg.so/zh-hans/brew/dtach/) - Shares pkgdb curated category or tags: cli, system, terminal.
- [vttest](https://pkg.so/zh-hans/brew/vttest/) - Local package facts share a topical domain. Shared terms: cli, system, terminal, xterm.
- [cocot](https://pkg.so/zh-hans/brew/cocot/) - Local package facts share a topical domain. Shared terms: cli, encoding, system, terminal.

## Combined YAML source

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