# 使用 Homebrew, apt, MacPorts, Nix 安装 ledit

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

## 安装

```sh
sudo av install brew:ledit
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ledit
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ledit
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install ledit
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#ledit
```

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

## 软件包事实

- **软件包键:** brew:ledit
- **软件包管理器:** Homebrew
- **版本:** 2-07
- **来源摘要:** Line editor for interactive commands
- **主页:** <https://pauillac.inria.fr/~ddr/ledit/>
- **仓库:** <https://github.com/chetmurthy/ledit>
- **最后更新:** 2026-07-13T05:11:30Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- ledit (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Ledit is a small OCaml line editor for wrapping interactive commands with Emacs-like control keys, shell-style editing, and command history behavior.

### 项目历史

The project originated at Inria as an OCaml/Camlp4-era utility by Daniel de Rauglaudre. Its changelog records open-source licensing in 2001, years of compatibility work for Camlp4/Camlp5 and OCaml, and the addition of a user `.leditrc` binding file in version 2.00 on 2008-01-18.

The GitHub-hosted continuation preserved the Inria codebase and kept it buildable for newer OCaml releases, including updates for recent OCaml versions in 2018, OCaml 5.0 build work in 2022, and opam/build fixes in 2025.

### 采用历史

Ledit stayed in the Unix package ecosystem as a compact tool rather than a large application: the input package facts list Homebrew, Debian, MacPorts, Nix, and Ubuntu packaging. That footprint reflects the usual adoption path for small terminal helpers used by OCaml and command-line users.

### 使用方式

Users run `ledit` in front of another interactive command to get line editing, history navigation, reverse search, and configurable key bindings without changing the wrapped program.

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

For package maintainers, Ledit is an example of the old but durable terminal-helper class: tiny source, native-code language dependencies, man-page behavior, and recurring build-system updates to survive language-runtime churn.

### 时间线

- 2001: Changelog records the addition of an open-source license.
- 2008: Version 2.00 added support for a home-directory `.leditrc` or `LEDITRC` binding file.
- 2018: Version 2.04 was distributed on the Inria page with updates for newer OCaml versions.
- 2022: Version 2.06 updated the build for OCaml 5.0.0.
- 2025: Versions 2.07 and 2.08 shipped build and opam maintenance fixes.

### Related projects

- Ledit sits near other command wrappers and line editors such as `rlwrap`, but its implementation and packaging history are tied to OCaml, Camlp5, and Inria's OCaml ecosystem.

### 来源

- <https://github.com/chetmurthy/ledit>
- <https://pauillac.inria.fr/~ddr/ledit/>
- <https://raw.githubusercontent.com/chetmurthy/ledit/master/CHANGES>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Debian apt - ledit - 2.04-8+b12: normalized package name match | Debian stable package indexes: ledit from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | line editor for interactive programs | http://cristal.inria.fr/~ddr/ledit/
- Debian apt - libledit-ocaml-dev - 2.04-8+b12: normalized package name match | Debian stable package indexes: libledit-ocaml-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | OCaml line editor library | http://cristal.inria.fr/~ddr/ledit/
- Nix - ledit: normalized package name match | nixpkgs package indexes: pkgs/by-name/le/ledit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - ledit - 2.04-7build5: normalized package name match | Ubuntu 24.04 LTS package indexes: ledit from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | line editor for interactive programs | http://cristal.inria.fr/~ddr/ledit/
- Ubuntu apt - libledit-ocaml-dev - 2.04-7build5: normalized package name match | Ubuntu 24.04 LTS package indexes: libledit-ocaml-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | OCaml line editor library | http://cristal.inria.fr/~ddr/ledit/
- MacPorts - ledit: normalized package name match | MacPorts ports tree: editors/ledit/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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