# Install ledit with Homebrew, apt, MacPorts, Nix

Line editor for interactive commands. Version 2-07 via Homebrew; verified 2026-07-13. Also installable with debian: sudo apt install ledit.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install ledit
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ledit
```

  Evidence: 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
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:ledit
- **Package manager:** Homebrew
- **Version:** 2-07
- **Source summary:** Line editor for interactive commands
- **Homepage:** <https://pauillac.inria.fr/~ddr/ledit/>
- **Repository:** <https://github.com/chetmurthy/ledit>
- **Last updated:** 2026-07-13T05:11:30Z
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- ledit (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 2-07
## Project history and usage

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

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

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


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Other Package-Manager Records

- 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)


## Sources

- 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
