# Install ledger with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Command-line, double-entry accounting tool. Version 3.4.1 via Homebrew; verified 2026-06-22.

## Install

```sh
sudo av install brew:ledger
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install ledger
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ledger
```

  Evidence: MacPorts ports tree: finance/ledger/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add ledger
```

  Evidence: Alpine Linux edge package indexes: ledger from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install ledger
```

  Evidence: Debian stable package indexes: ledger from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install ledger
```

  Evidence: Fedora Rawhide package metadata: ledger from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#ledger
```

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

- pacman (92%):

```sh
sudo pacman -S ledger
```

  Evidence: Arch Linux sync databases: ledger from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install ledger
```

  Evidence: openSUSE Tumbleweed package metadata: ledger from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:ledger
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/ledger>
- **Version:** 3.4.1
- **Source summary:** Command-line, double-entry accounting tool
- **Homepage:** <https://ledger-cli.org/>
- **Repository:** <https://github.com/ledger/ledger>
- **Upstream docs:** <https://ledger-cli.org/doc/ledger.1.html>
- **License:** BSD-3-Clause
- **Source archive:** <https://github.com/ledger/ledger/archive/refs/tags/v3.4.1.tar.gz>
- **Last updated:** 2026-06-22T14:05:09-07:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- ledger (cli)
- ledger (alias)

## Dependencies

- boost
- gmp
- gpgme
- gpgmepp
- libassuan
- mpfr
- python@3.14

## Build dependencies

- cmake
- texinfo

## Uses from macOS

- libedit

## 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: 3.4.1
- Package-manager updated: 2026-06-22
- Local data: ok
- Upstream repository: https://github.com/ledger/ledger
- Upstream latest detected: v3.4.1 (current)
## Project history and usage

Ledger is a command-line, double-entry accounting system built around plain-text journals. Users write transactions in Ledger's text format and run reports from the Unix shell without a separate database.

### Project history

The official Ledger site says Ledger began in 2003, was written by John Wiegley, and is released under the BSD license. Its design centers on text files, double-entry accounting, and report generation rather than a graphical accounting database.

The GitHub repository continues that positioning: Ledger reads text files, generates reports, and stores no other database state. The project accumulated a long 3.x release history, with signed tags and release maintenance visible through the ledger/ledger repository.

### Adoption history

Ledger became one of the foundational tools in the plain-text accounting community. Package-manager coverage across Homebrew, Debian, Ubuntu, Fedora, Arch, MacPorts, Nix, Alpine, and openSUSE reflects adoption by Unix users who prefer version-controlled finance data and scriptable reports.

### How it is used

The basic workflow is to keep a journal file of dated transactions, then run commands such as balance, register, equity, prices, and other reports. The documentation emphasizes that Ledger has no graphical interface and returns accounting to text journals and shell output.

### Why package nerds care

Ledger is package-nerd significant because it helped define plain-text accounting as a durable command-line category. It also inspired ports and related tools, including editor modes, hledger, Beancount, and ecosystem utilities that treat financial records as auditable text.

### Timeline

- 2003: Ledger began, according to the official project site.
- 2003-2009: Ledger 2.6 documentation carries John Wiegley's copyright range.
- 2020-05-01: v3.2.0 tag published.
- 2023-02-08: v3.3.0 tag published.
- 2023-03-30: v3.3.2 release published.

### Related projects

- Related projects include ledger-mode for Emacs, vim-ledger, hledger, Beancount, Fava, plain-text-accounting workflows, and shell/reporting tools that consume Ledger journals.

### Sources

- <https://formulae.brew.sh/formula/ledger>
- <https://github.com/ledger/ledger>
- <https://github.com/ledger/ledger-mode>
- <https://github.com/ledger/ledger/releases>
- <https://github.com/ledger/ledger/tags>
- <https://ledger-cli.org/>
- <https://ledger-cli.org/2.6/doc/ledger.html>
- <https://ledger-cli.org/doc/ledger3.html>


## Security Notes

narrow executable package without higher-risk signals.

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


## 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: $XDG_CONFIG_HOME, ~/.config/ledger/ledgerrc, ~/.ledgerrc, ./.ledgerrc
## Source Database Details

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

## Other Package-Manager Records

- Debian apt - ledger - 3.3.2-1+b4: normalized package name match | Debian stable package indexes: ledger from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | command-line double-entry accounting program | http://ledger-cli.org
- Debian apt - python3-ledger - 3.3.2-1+b4: normalized package name match | Debian stable package indexes: python3-ledger from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | command-line double-entry accounting program (python3 extension) | http://ledger-cli.org
- Nix - ledger: normalized package name match | nixpkgs package indexes: pkgs/by-name/le/ledger/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - ledger - 3.3.2-1build4: normalized package name match | Ubuntu 24.04 LTS package indexes: ledger from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | command-line double-entry accounting program | http://ledger-cli.org
- Ubuntu apt - python3-ledger - 3.3.2-1build4: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-ledger from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | command-line double-entry accounting program (python3 extension) | http://ledger-cli.org
- apk - ledger - 3.4.1-r0: normalized package name match | Alpine Linux edge package indexes: ledger from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Double-entry accounting system with a command-line reporting interface | https://www.ledger-cli.org/
- apk - ledger-doc - 3.4.1-r0: normalized package name match | Alpine Linux edge package indexes: ledger-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Double-entry accounting system with a command-line reporting interface (documentation) | https://www.ledger-cli.org/
- dnf - ledger - 3.3.2-5.fc44: normalized package name match | Fedora Rawhide package metadata: ledger from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | A powerful command-line double-entry accounting system | https://ledger-cli.org/
- dnf - ledger-devel - 3.3.2-5.fc44: normalized package name match | Fedora Rawhide package metadata: ledger-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Libraries and header files for ledger development | https://ledger-cli.org/
- pacman - ledger - 3.4.1-5: normalized package name match | Arch Linux sync databases: ledger from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Double-entry accounting system with a command-line reporting interface | https://ledger-cli.org
- zypper - ledger - 3.3.2-4.5: normalized package name match | openSUSE Tumbleweed package metadata: ledger from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Double-entry accounting system with a command-line reporting interface | https://github.com/ledger/ledger
- MacPorts - ledger: normalized package name match | MacPorts ports tree: finance/ledger/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.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Productivity CLI packages](https://www.automicvault.com/pkg/productivity-cli-packages/) - Matched curated productivity category metadata from av.db.
- [gpgme](https://www.automicvault.com/pkg/brew/gpgme/) - Runtime dependency declared by Homebrew.
- [libassuan](https://www.automicvault.com/pkg/brew/libassuan/) - Runtime dependency declared by Homebrew.
- [python@3.14](https://www.automicvault.com/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [texinfo](https://www.automicvault.com/pkg/brew/texinfo/) - Build dependency declared by Homebrew.
- [beancount](https://www.automicvault.com/pkg/brew/beancount/) - Shares av.db curated category or tags: accounting, cli, productivity.
- [hledger](https://www.automicvault.com/pkg/brew/hledger/) - Shares av.db curated category or tags: accounting, cli, plain-text-accounting, productivity.
- [homebank](https://www.automicvault.com/pkg/brew/homebank/) - Shares av.db curated category or tags: accounting, cli, personal-finance, productivity.
- [rustledger](https://www.automicvault.com/pkg/brew/rustledger/) - Shares av.db curated category or tags: accounting, cli, plain-text-accounting, productivity.
- [fava](https://www.automicvault.com/pkg/brew/fava/) - Shares av.db curated category or tags: accounting, cli, productivity.
- [a2ps](https://www.automicvault.com/pkg/brew/a2ps/) - Shares av.db curated category or tags: cli, productivity.
- [abook](https://www.automicvault.com/pkg/brew/abook/) - Shares av.db curated category or tags: cli, productivity.
- [acronym](https://www.automicvault.com/pkg/brew/acronym/) - Shares av.db curated category or tags: cli, productivity.

## Combined YAML source

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


## Sources

- 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
