# 使用 Homebrew, apt, pacman 安装 libtecla

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

## 安装

```sh
sudo av install brew:libtecla
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libtecla
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install libtecla-dev
```

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

- pacman (92%):

```sh
sudo pacman -S libtecla
```

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

## 软件包事实

- **软件包键:** brew:libtecla
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/libtecla>
- **版本:** 1.6.3
- **来源摘要:** Command-line editing facilities similar to the tcsh shell
- **主页:** <https://sites.astro.caltech.edu/~mcs/tecla/>
- **上游文档:** <https://sites.astro.caltech.edu/~mcs/tecla>
- **许可证:** ICU
- **源码归档:** <https://sites.astro.caltech.edu/~mcs/tecla/libtecla-1.6.3.tar.gz>
- **最后更新:** 2026-06-22T14:05:23-07:00
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- enhance (cli)
- enhance (别名)

## 构建依赖

- automake

## macOS 提供的库

- ncurses

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.6.3
- 管理器更新时间: 2026-06-22
- 本地数据: OK
- 上游仓库: https://sites.astro.caltech.edu/~mcs/tecla/
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

libtecla is Martin Shepherd's interactive command-line input library for Unix-like programs. It provides tcsh-like editing, command history, tab completion, filename expansion, and the enhance wrapper for adding line editing to third-party programs.

### 项目历史

The official release notes identify version 1.1j as the initial public release on freshmeat.org. The libtecla man page names Martin Shepherd as author and explains the name: in Spanish, tecla means a keyboard key, fitting a library centered on keyboard input.

The project evolved through practical terminal features rather than a large ecosystem. Version 1.2 added path lookup and completion, 1.2.3 introduced an autoconf configure script, 1.3.0 added optional vi editing mode, 1.4.0 expanded history, configuration, signals, and the enhance program, and 1.5.0 added non-blocking I/O and event-loop integration.

### 采用历史

libtecla's adoption has been modest but durable. It appears in Homebrew, Debian, Ubuntu, and Arch-family packaging in the input metadata, mostly for C programs that want readline-like behavior under a permissive license and with a small dependency footprint.

### 使用方式

Programs link with libtecla and call its interactive line-input API to get emacs-like default bindings, optional vi mode, command history, tab completion, filename expansion, and per-user customization through ~/.teclarc.

The enhance utility is the package's user-visible trick: it can add command-line editing to some third-party interactive programs without those programs being linked against libtecla.

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

libtecla sits in the same mental shelf as readline and libedit, but as a smaller permissively licensed option. Package maintainers care because it offers command-line ergonomics without making every consumer inherit readline's licensing and dependency choices.

Its significance is niche: valuable for terminal-native Unix software, not a broad application platform.

### 时间线

- 1.1j: Initial public release on freshmeat.org.
- 1.2: Adds lookup and completion of filenames in Unix-style paths.
- 1.2.3: Adds an autoconf configure script and shared-library support on several Unix systems.
- 1.3.0: Adds optional vi command-line editing mode.
- 1.4.0: Adds history save/load, richer configuration, signal handling, 8-bit clean input, and the enhance program.
- 1.5.0: Adds non-blocking I/O and event-loop support.
- 2014: The upstream page lists version 1.6.3 and is signed by Martin Shepherd on November 9, 2014.

### Related projects

- GNU readline and BSD libedit are the closest related command-line editing libraries. tcsh, vi, and emacs provide the interaction styles that libtecla imitates or supports.

### 来源

- <https://sites.astro.caltech.edu/~mcs/tecla/>
- <https://sites.astro.caltech.edu/~mcs/tecla/enhance.html>
- <https://sites.astro.caltech.edu/~mcs/tecla/libtecla.html>
- <https://sites.astro.caltech.edu/~mcs/tecla/release.html>
- <https://sites.astro.caltech.edu/~mcs/tecla/tecla.html>


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.teclarc
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** libtecla
- **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 - libtecla-dev - 1.6.3-3.1: normalized package name match | Debian stable package indexes: libtecla-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | interactive command line editing facilities (development) | https://www.astro.caltech.edu/~mcs/tecla/
- Debian apt - libtecla1t64 - 1.6.3-3.1: normalized package name match | Debian stable package indexes: libtecla1t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | interactive command line editing facilities | https://www.astro.caltech.edu/~mcs/tecla/
- Ubuntu apt - libtecla-dev - 1.6.3-3.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libtecla-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | interactive command line editing facilities (development) | https://www.astro.caltech.edu/~mcs/tecla/
- Ubuntu apt - libtecla1t64 - 1.6.3-3.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libtecla1t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | interactive command line editing facilities | https://www.astro.caltech.edu/~mcs/tecla/
- pacman - libtecla - 1.6.3-2: normalized package name match | Arch Linux sync databases: libtecla from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Interactive command line editing facilities | http://www.astro.caltech.edu/~mcs/tecla/


## 相关链接

- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/zh-hans/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [automake](https://www.automicvault.com/zh-hans/pkg/brew/automake/) - Build dependency declared by Homebrew.
- [libsql](https://www.automicvault.com/zh-hans/pkg/brew/libsql/) - Shares av.db curated category or tags: cli, not-completed, other.
- [libstatgrab](https://www.automicvault.com/zh-hans/pkg/brew/libstatgrab/) - Shares av.db curated category or tags: cli, not-completed, other.
- [libstxxl](https://www.automicvault.com/zh-hans/pkg/brew/libstxxl/) - Shares av.db curated category or tags: cli, not-completed, other.
- [libsvm](https://www.automicvault.com/zh-hans/pkg/brew/libsvm/) - Shares av.db curated category or tags: cli, not-completed, other.
- [libtar](https://www.automicvault.com/zh-hans/pkg/brew/libtar/) - Shares av.db curated category or tags: cli, not-completed, other.
- [libtasn1](https://www.automicvault.com/zh-hans/pkg/brew/libtasn1/) - Shares av.db curated category or tags: cli, not-completed, other.
- [libtensorflow](https://www.automicvault.com/zh-hans/pkg/brew/libtensorflow/) - Shares av.db curated category or tags: cli, not-completed, other.
- [libtiff](https://www.automicvault.com/zh-hans/pkg/brew/libtiff/) - Shares av.db curated category or tags: cli, not-completed, other.

## Combined YAML source

View the package source record on GitHub. [combined/libtecla.yml](https://github.com/automic-vault/db/blob/main/combined/libtecla.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
