# Install ledit with Homebrew, apt, MacPorts, Nix

Line editor for interactive commands. Version 2-07 via Homebrew; verified 2026-06-22.

## 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
- **Package manager page:** <https://formulae.brew.sh/formula/ledit>
- **Version:** 2-07
- **Source summary:** Line editor for interactive commands
- **Homepage:** <https://pauillac.inria.fr/~ddr/ledit/>
- **Repository:** <https://github.com/chetmurthy/ledit>
- **Upstream docs:** <https://github.com/chetmurthy/ledit#readme>
- **License:** BSD-3-Clause
- **Source archive:** <https://github.com/chetmurthy/ledit/archive/refs/tags/ledit-2-07.tar.gz>
- **Last updated:** 2026-06-22T14:05:10-07:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- ledit (cli)
- ledit (alias)

## Dependencies

- camlp-streams
- camlp5
- ocaml

## Build dependencies

- ocaml-findlib

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2-07
- Package-manager updated: 2026-06-22
- Local data: ok
- Upstream repository: https://github.com/chetmurthy/ledit
- info: No cached GitHub release or tag data was available.
## 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

## Source Database Details

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

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


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [camlp5](https://www.automicvault.com/pkg/brew/camlp5/) - Runtime dependency declared by Homebrew.
- [ocaml](https://www.automicvault.com/pkg/brew/ocaml/) - Runtime dependency declared by Homebrew.
- [ocaml-findlib](https://www.automicvault.com/pkg/brew/ocaml-findlib/) - Build dependency declared by Homebrew.
- [rlwrap](https://www.automicvault.com/pkg/brew/rlwrap/) - Shares av.db curated category or tags: cli, developer-tools, interactive-shell, terminal.
- [aha](https://www.automicvault.com/pkg/brew/aha/) - Shares av.db curated category or tags: cli, developer-tools, terminal.
- [amtterm](https://www.automicvault.com/pkg/brew/amtterm/) - Shares av.db curated category or tags: cli, developer-tools, terminal.
- [ansifilter](https://www.automicvault.com/pkg/brew/ansifilter/) - Shares av.db curated category or tags: cli, developer-tools, terminal.
- [aoe](https://www.automicvault.com/pkg/brew/aoe/) - Shares av.db curated category or tags: cli, developer-tools, terminal.
- [asciinema](https://www.automicvault.com/pkg/brew/asciinema/) - Shares av.db curated category or tags: cli, developer-tools, terminal.
- [aurora](https://www.automicvault.com/pkg/brew/aurora/) - Shares av.db curated category or tags: cli, developer-tools, terminal.
- [bitwise](https://www.automicvault.com/pkg/brew/bitwise/) - Shares av.db curated category or tags: cli, developer-tools, terminal.
- [forgit](https://www.automicvault.com/pkg/brew/forgit/) - Local package facts share a topical domain. Shared terms: cli, commands, developer, developer-tools, interactive.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- 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
