macOS
brew install ledgerlocal Homebrew formula metadata
sudo port install ledgerMacPorts ports tree · finance/ledger/Portfile · 来源: api.github.com
安装
brew install ledgerlocal Homebrew formula metadata
sudo port install ledgerMacPorts ports tree · finance/ledger/Portfile · 来源: api.github.com
sudo apk add ledgerAlpine Linux edge package indexes · ledger · 来源: dl-cdn.alpinelinux.org
sudo apt install ledgerDebian stable package indexes · ledger · 来源: deb.debian.org
sudo dnf install ledgerFedora Rawhide package metadata · ledger · 来源: dl.fedoraproject.org
nix profile install nixpkgs#ledgernixpkgs package indexes · pkgs/by-name/le/ledger/package.nix · 来源: api.github.com
sudo pacman -S ledgerArch Linux sync databases · ledger · 来源: geo.mirror.pkgbuild.com
sudo zypper install ledgeropenSUSE Tumbleweed package metadata · ledger · 来源: download.opensuse.org
概览
Command-line, double-entry accounting tool
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
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.
Config paths the tool may read or write during local use.
$XDG_CONFIG_HOME~/.config/ledger/ledgerrc~/.ledgerrc./.ledgerrc可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
ledger | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/ledger/ledger
安装元数据
| 软件包键 | 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 |
| Pulse | updated |
| 依赖 | 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 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
ledger 3.3.2-1+b4
command-line double-entry accounting program
sudo apt install ledgerpython3-ledger 3.3.2-1+b4
command-line double-entry accounting program (python3 extension)
sudo apt install python3-ledgerledger
nix profile install nixpkgs#ledgerledger 3.3.2-1build4
command-line double-entry accounting program
sudo apt install ledgerpython3-ledger 3.3.2-1build4
command-line double-entry accounting program (python3 extension)
sudo apt install python3-ledgerledger 3.4.1-r0
Double-entry accounting system with a command-line reporting interface
sudo apk add ledgerledger-doc 3.4.1-r0
Double-entry accounting system with a command-line reporting interface (documentation)
sudo apk add ledger-docledger 3.3.2-5.fc44
A powerful command-line double-entry accounting system
sudo dnf install ledgerledger-devel 3.3.2-5.fc44
Libraries and header files for ledger development
sudo dnf install ledger-develledger 3.4.1-5
Double-entry accounting system with a command-line reporting interface
sudo pacman -S ledgerledger 3.3.2-4.5
Double-entry accounting system with a command-line reporting interface
https://github.com/ledger/ledger
sudo zypper install ledgerledger
sudo port install ledger来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.