Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 ledger

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install ledger

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install ledger

MacPorts ports tree · finance/ledger/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add ledger

Alpine Linux edge package indexes · ledger · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install ledger

Debian stable package indexes · ledger · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install ledger

Fedora Rawhide package metadata · ledger · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#ledger

nixpkgs package indexes · pkgs/by-name/le/ledger/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S ledger

Arch Linux sync databases · ledger · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install ledger

openSUSE Tumbleweed package metadata · ledger · 来源: download.opensuse.org

概览

软件包摘要

Command-line, double-entry accounting tool

命令和别名

  • ledger

历史

项目历史与用法

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.

项目历史

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.

采用历史

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.

使用方式

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.

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

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.

时间线

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

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 7 个运行时依赖。
  • 构建元数据列出 2 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

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

Config paths the tool may read or write during local use.

Unix
$XDG_CONFIG_HOME~/.config/ledger/ledgerrc~/.ledgerrc./.ledgerrc

可执行文件

已安装的可执行文件

命令类型暴露范围备注
ledgercli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本3.4.1
管理器更新时间2026-06-22
本地数据OK
上游当前
检测到的最新版本v3.4.1

https://github.com/ledger/ledger

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:ledger
版本3.4.1
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/ledger
主页https://ledger-cli.org/
仓库https://github.com/ledger/ledger
上游文档https://ledger-cli.org/doc/ledger.1.html
许可证BSD-3-Clause
源码归档https://github.com/ledger/ledger/archive/refs/tags/v3.4.1.tar.gz
最后更新2026-06-22T14:05:09-07:00
Pulseupdated
依赖boost, gmp, gpgme, gpgmepp, libassuan, mpfr, python@3.14
构建依赖cmake, texinfo
macOS 提供的库libedit
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameledger
Version Scheme0
Revision1
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

ledger 3.3.2-1+b4

command-line double-entry accounting program

http://ledger-cli.org

sudo apt install ledger
  • Section: utils
  • Architecture: amd64
  • Source Package: ledger
  • 10 依赖
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Ledger
Debian stable package indexes · deb.debian.org · Debian stable package indexes: ledger from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

python3-ledger 3.3.2-1+b4

command-line double-entry accounting program (python3 extension)

http://ledger-cli.org

sudo apt install python3-ledger
  • Section: python
  • Architecture: amd64
  • Source Package: ledger
  • 11 依赖
  • normalized package name match
  • 匹配方式:Ledger
Debian stable package indexes · deb.debian.org · Debian stable package indexes: python3-ledger from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

ledger

nix profile install nixpkgs#ledger
  • normalized package name match
  • 匹配方式:Ledger
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/le/ledger/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

ledger 3.3.2-1build4

command-line double-entry accounting program

http://ledger-cli.org

sudo apt install ledger
  • Section: universe/utils
  • Architecture: amd64
  • 10 依赖
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Ledger
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: ledger from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

python3-ledger 3.3.2-1build4

command-line double-entry accounting program (python3 extension)

http://ledger-cli.org

sudo apt install python3-ledger
  • Section: universe/python
  • Architecture: amd64
  • Source Package: ledger
  • 11 依赖
  • normalized package name match
  • 匹配方式:Ledger
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: python3-ledger from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

ledger 3.4.1-r0

Double-entry accounting system with a command-line reporting interface

https://www.ledger-cli.org/

sudo apk add ledger
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: ledger
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Ledger
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ledger from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

ledger-doc 3.4.1-r0

Double-entry accounting system with a command-line reporting interface (documentation)

https://www.ledger-cli.org/

sudo apk add ledger-doc
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: ledger
  • normalized package name match
  • 匹配方式:Ledger
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ledger-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

ledger 3.3.2-5.fc44

A powerful command-line double-entry accounting system

https://ledger-cli.org/

sudo dnf install ledger
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: i686
  • Source Package: ledger
  • 10 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Ledger
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ledger from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ledger-devel 3.3.2-5.fc44

Libraries and header files for ledger development

https://ledger-cli.org/

sudo dnf install ledger-devel
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: i686
  • Source Package: ledger
  • 2 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Ledger
Fedora Rawhide package metadata · dl.fedoraproject.org · 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
pacman95%

ledger 3.4.1-5

Double-entry accounting system with a command-line reporting interface

https://ledger-cli.org

sudo pacman -S ledger
  • License: BSD-3-Clause
  • Architecture: x86_64
  • 3 依赖
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Ledger
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: ledger from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

ledger 3.3.2-4.5

Double-entry accounting system with a command-line reporting interface

https://github.com/ledger/ledger

sudo zypper install ledger
  • License: BSD-3-Clause
  • Category: Productivity/Office/Finance
  • Architecture: x86_64
  • Source Package: ledger
  • 8 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Ledger
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: ledger from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

ledger

sudo port install ledger
  • normalized package name match
  • 匹配方式:Ledger
MacPorts ports tree · api.github.com · MacPorts ports tree: finance/ledger/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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