Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget 安装 hledger

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install hledger

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install hledger

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

Linux

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

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

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

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

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

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

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

nixpkgs package indexes · hledger · 来源: raw.githubusercontent.com

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

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

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

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

Windows

Scoop已验证 · 92%
scoop install main/hledger

Scoop official bucket manifest trees · bucket/hledger.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id simonmichael.hledger -e

Windows Package Manager source index · simonmichael.hledger · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Easy plain text accounting with command-line, terminal and web UIs

命令和别名

  • hledger
  • hledger-ui
  • hledger-web

历史

项目历史与用法

hledger is Simon Michael's Haskell implementation in the plain-text accounting family: a command-line, terminal, and web accounting tool that stores financial data in human-readable journal files and reports on money, investments, time, inventory, and other countable commodities.

项目历史

hledger was created as a Haskell response to Ledger, the earlier command-line tool that pioneered plain text accounting. The hledger FAQ says the project was motivated by making finance work more enjoyable, by frustration with Ledger's stalled development and rough edges, and by the desire to build a more usable, robust, documented, cross-platform-installable version in Haskell.

The README describes the codebase as continually improved since 2007, with a focus on reliability, maintainability, and practical everyday accounting. hledger's design keeps the plain-text journal at the center while offering multiple interfaces: hledger for the CLI, hledger-ui for a terminal interface, and hledger-web for a browser UI.

hledger has grown inside the broader Plain Text Accounting ecosystem. The hledger manual states that it is inspired by and largely compatible with ledger(1), and largely interconvertible with beancount(1). The hledger and Ledger page describes hledger as a reimplementation of Ledger's best parts with stronger focus on UX, reliability, consistency, and real-world practicality.

In 2026, the README records a branch split: the former master branch became hledger1 and work began on hledger 2.x in main. The stated 2.x goals include better lot tracking and capital gains calculation, more interoperability, more speed, easier contribution, and continued reliability.

采用历史

hledger adoption is tied to the plain-text accounting community: users choose editable text files, version control, scripts, and transparent data over database-backed personal finance applications. The README names the Plain Text Accounting ecosystem, documentation, videos, tutorials, editor/IDE integrations, mobile and web interfaces, and a contributor base as part of the project context.

The Homebrew input facts show broad packaging across Alpine, Homebrew, Debian, Fedora, MacPorts, Nix, Arch, Scoop, Ubuntu, WinGet, and openSUSE. That breadth matters because hledger is used by individuals and organizations on Unix, macOS, and Windows workstations.

The hledger FAQ frames the project's mission beyond a single executable: making plain text accounting more usable and useful, reducing finance and financial-technology stress, and supporting a thriving ecosystem of financial software projects.

使用方式

hledger reads journal files containing dated double-entry transactions, then produces reports such as balance sheets, income statements, registers, budgets, and cashflow views. Users can edit data directly in a text editor, import CSV from banks, use terminal data-entry tools, use hledger-web, or integrate it into scripts and version-control workflows.

The manual describes hledger as a robust, user-friendly, cross-platform set of programs for tracking money, time, or any other commodity. The README highlights CSV import/export, text/HTML/JSON/SQL output, multi-currency support, high precision, and scriptability through CLI, HTTP, or API.

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

hledger is important to package nerds because it treats accounting data as durable text. That makes backups, diffs, version control, review, automation, and migration tractable in a way that opaque finance-app databases often are not.

It also anchors one of the most package-manager-friendly corners of personal finance software: a Haskell executable suite with CLI/TUI/web surfaces, docs shipped with the tool, and broad distro packaging. For users who prefer reproducible environments and text-first workflows, hledger is one of the central packages in the plain-text accounting toolbox.

Its relationship to Ledger and Beancount makes it part of a larger lineage rather than an isolated app. Package maintainers and users often evaluate the three together: Ledger for the original format and C++ implementation, Beancount for Python-oriented workflows, and hledger for Haskell, cross-platform installability, and active UX-focused maintenance.

时间线

  • 2007: hledger development lineage begins according to the project README.
  • 2008: hledger maintenance and support era is described on the hledger and Ledger page.
  • 2013-04-08: The simonmichael/hledger GitHub repository was created.
  • 2026: The former master branch was renamed hledger1 and hledger 2.x work began in main.

Related projects

  • Ledger: the original plain-text accounting CLI and file-format influence.
  • Beancount: a Python plain-text accounting system that hledger documentation names as largely interconvertible.
  • PlainTextAccounting.org: the ecosystem portal maintained by Simon Michael for related tools, docs, and community resources.
  • hledger-ui and hledger-web: sibling interfaces shipped in the hledger suite.

安全态势

风险级别:绿色

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 个平台目标。
  • 安装时包含 2 个运行时依赖。
  • 构建元数据列出 3 个构建依赖。

建议审查

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

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
hledger.conf~/.hledger.conf~/.config/hledger/hledger.conf

可执行文件

已安装的可执行文件

命令类型暴露范围备注
hledgercli全局可执行文件
hledger-uicli全局可执行文件
hledger-webcli全局可执行文件

新鲜度

版本和新鲜度

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

页面生成时间2026-07-25
管理器版本1.52.1
管理器更新时间2026-07-24
本地数据OK
上游当前
检测到的最新版本1.52.1

https://github.com/simonmichael/hledger

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

安装元数据

软件包元数据

软件包键brew:hledger
版本1.52.1
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/hledger
主页https://hledger.org/
仓库https://github.com/simonmichael/hledger
上游文档https://hledger.org/doc.html
许可证GPL-3.0-or-later
源码归档https://github.com/simonmichael/hledger/archive/refs/tags/1.52.1.tar.gz
最后更新2026-07-24T01:58:27Z
Pulseupdated
依赖gmp, libyaml
构建依赖ghc, haskell-stack, pkgconf
macOS 提供的库libffi, ncurses
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

Debian apt95%

hledger 1.32.3-1+b2

command-line double-entry accounting program

https://hledger.org

sudo apt install hledger
  • Section: utils
  • Architecture: amd64
  • Source Package: haskell-hledger
  • 6 依赖
  • normalized package name match
  • 匹配方式:Hledger
Debian stable package indexes · deb.debian.org · Debian stable package indexes: hledger from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

hledger

nix profile install nixpkgs#hledger
  • normalized package name match
  • 匹配方式:Hledger
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: hledger from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

hledger 1.30.1-1

command-line double-entry accounting program

https://hledger.org

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

hledger 1.52-r0

Command-line interface for the hledger accounting system

https://hledger.org/hledger.html

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

hledger-bash-completion 1.52-r0

Bash completions for hledger

https://hledger.org/hledger.html

sudo apk add hledger-bash-completion
  • License: GPL-3.0-only
  • Architecture: x86_64
  • Source Package: hledger
  • normalized package name match
  • 匹配方式:Hledger
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: hledger-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

hledger-doc 1.52-r0

Command-line interface for the hledger accounting system (documentation)

https://hledger.org/hledger.html

sudo apk add hledger-doc
  • License: GPL-3.0-only
  • Architecture: x86_64
  • Source Package: hledger
  • normalized package name match
  • 匹配方式:Hledger
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: hledger-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

hledger-ui 1.52-r0

Curses-style terminal interface for the hledger accounting system

https://hledger.org/hledger-ui.html

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

hledger-ui-doc 1.52-r0

Curses-style terminal interface for the hledger accounting system (documentation)

https://hledger.org/hledger-ui.html

sudo apk add hledger-ui-doc
  • License: GPL-3.0-only
  • Architecture: x86_64
  • Source Package: hledger
  • normalized package name match
  • 匹配方式:Hledger
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: hledger-ui-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

hledger-web 1.52-r0

Web interface for the hledger accounting system

https://hledger.org/hledger-web.html

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

hledger-web-doc 1.52-r0

Web interface for the hledger accounting system (documentation)

https://hledger.org/hledger-web.html

sudo apk add hledger-web-doc
  • License: GPL-3.0-only
  • Architecture: x86_64
  • Source Package: hledger
  • normalized package name match
  • 匹配方式:Hledger
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: hledger-web-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

hledger-web-openrc 1.52-r0

Web interface for the hledger accounting system (OpenRC init scripts)

https://hledger.org/hledger-web.html

sudo apk add hledger-web-openrc
  • License: GPL-3.0-only
  • Architecture: x86_64
  • Source Package: hledger
  • normalized package name match
  • 匹配方式:Hledger
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: hledger-web-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

ghc-hledger 1.43.2-18.fc44

Haskell hledger library

https://hackage.haskell.org/package/hledger

sudo dnf install ghc-hledger
  • License: GPL-3.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: hledger
  • 32 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Hledger
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-hledger from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ghc-hledger-devel 1.43.2-18.fc44

Haskell hledger library development files

https://hackage.haskell.org/package/hledger

sudo dnf install ghc-hledger-devel
  • License: GPL-3.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: hledger
  • 3 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Hledger
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-hledger-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ghc-hledger-doc 1.43.2-18.fc44

Haskell hledger library documentation

https://hackage.haskell.org/package/hledger

sudo dnf install ghc-hledger-doc
  • License: GPL-3.0-or-later
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: hledger
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Hledger
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-hledger-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ghc-hledger-prof 1.43.2-18.fc44

Haskell hledger profiling library

https://hackage.haskell.org/package/hledger

sudo dnf install ghc-hledger-prof
  • License: GPL-3.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: hledger
  • 2 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Hledger
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-hledger-prof from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ghc-quote-quot 0.2.1.0-18.fc44

Haskell quote-quot library

https://hackage.haskell.org/package/quote-quot

sudo dnf install ghc-quote-quot
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: hledger
  • 13 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Hledger
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-quote-quot from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

来源线索

由仓库数据生成

此页面由 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