# 使用 Homebrew, apk, MacPorts, Nix 安装 fava

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

## 安装

```sh
sudo av install brew:fava
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install fava
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install fava
```

  证据: MacPorts ports tree: python/fava/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add fava
```

  证据: Alpine Linux edge package indexes: fava from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#fava
```

  证据: nixpkgs package indexes: pkgs/by-name/fa/fava/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:fava
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/fava>
- **版本:** 1.30.14
- **来源摘要:** Web interface for the double-entry bookkeeping software Beancount
- **主页:** <https://beancount.github.io/fava/>
- **仓库:** <https://github.com/beancount/fava>
- **上游文档:** <https://beancount.github.io/fava/>
- **许可证:** MIT
- **源码归档:** <https://files.pythonhosted.org/packages/6b/a0/2c16c55c9b011fb6e7f73a40441f7dc533922b24782c57588a036781719f/fava-1.30.14.tar.gz>
- **最后更新:** 2026-06-17T21:36:00Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- fava (cli)
- fava (别名)

## 依赖

- certifi
- python@3.14

## 构建依赖

- bison
- meson
- ninja
- rust

## macOS 提供的库

- libxml2
- libxslt

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.30.14
- 管理器更新时间: 2026-06-17
- 本地数据: OK
- 上游仓库: https://beancount.github.io/fava/
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

Fava is the web interface for Beancount, the plain-text double-entry accounting system. It turns a Beancount ledger into a local browser application for reports, charts, journals, editing, import workflows, documents, query results, and account navigation.

### 项目历史

The Fava changelog records the first commit on December 4, 2015, and says early versions could not be installed using only `pip`. Version 0.2.3, released in February 2016, marked the point where `pip install` worked with all requirements included.

Fava reached version 1.0 in October 2016 with a major UI and architecture refresh: improved layout and fonts, better small-screen behavior, asynchronous page loading, and configuration moved into custom entries in the Beancount file rather than a separate Fava config file.

After 1.0, Fava evolved from a reporting UI into a broader personal-finance workbench. Releases added document uploads, transaction entry, translations, a Beancount import interface, entry editing, richer filtering, charts, query visualization, extension points, editor improvements, and frontend-rendered report pages.

Recent releases show Fava tracking both Python/web frontend changes and Beancount compatibility. Version 1.25 moved the editor to a tree-sitter grammar and introduced a Flask application factory; version 1.30 added Beancount 3 support and upgraded the frontend to Svelte 5.

### 采用历史

Fava's adoption is tied to Beancount's plain-text accounting community: it became the default graphical companion for users who keep the ledger as text but want searchable, charted, browser-based views. The official README points users to an online demo, the website, `pip3 install fava`, and the `fava ledger.beancount` workflow.

Packaging followed the same practical path as other Python CLI apps. In this batch input Fava appears in Alpine, Homebrew, MacPorts, and Nix package metadata, which matches its role as a local developer-style tool rather than a hosted SaaS service.

### 使用方式

The common usage path is deliberately small: install Fava, run `fava ledger.beancount`, and open the local web interface at `http://localhost:5000`. Users already familiar with Beancount can use Fava as a viewer and editor over their existing ledger file.

Fava stores project options in the Beancount file via custom entries, so Homebrew-style installation does not imply a global Fava configuration file. That design matters for package metadata: the executable is packaged, but the user's accounting state and Fava options live with the ledger.

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

Fava is a good example of a package-manager friendly personal web app: a CLI command launches a local Flask/Svelte interface over plain text data, without asking the package manager to install a daemon, database, or desktop application.

It also matters because it gives Beancount users a maintained alternative to command-line-only reporting and older web views, while preserving the text-ledger workflow that makes Beancount attractive to developers and accountants who want version-controlled finances.

### 时间线

- 2015: First Fava commit recorded on December 4.
- 2016: Version 0.2.3 makes `pip install` work with requirements included.
- 2016: Version 1.0 ships a major UI refresh and moves configuration into Beancount entries.
- 2017: Version 1.4 adds an interface for Beancount's import system.
- 2018: Version 1.8 ends separate GUI releases because of maintenance burden.
- 2023: Version 1.25 adopts tree-sitter for editor parsing and a Flask application factory.
- 2024: Version 1.30 adds Beancount 3 support and upgrades the frontend to Svelte 5.

### Related projects

- Beancount is Fava's underlying accounting system and data format.
- The changelog references older Beancount web/reporting expectations such as missing Holdings views compared with `bean-web`, and later Beancount-adjacent tools such as beanquery and beangulp.

### 来源

- <https://beancount.github.io/fava>
- <https://beancount.github.io/fava/usage.html>
- <https://github.com/beancount/fava>
- <https://raw.githubusercontent.com/beancount/fava/main/README.rst>
- <https://raw.githubusercontent.com/beancount/fava/main/CHANGES>


## 安全说明

没有找到 fava 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

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

## 其他软件包管理器记录

- Nix - fava: normalized package name match | nixpkgs package indexes: pkgs/by-name/fa/fava/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - fava - 1.28-r0: normalized package name match | Alpine Linux edge package indexes: fava from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Web interface for Beancount | https://beancount.github.io/fava/
- apk - fava-pyc - 1.28-r0: normalized package name match | Alpine Linux edge package indexes: fava-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for fava | https://beancount.github.io/fava/
- MacPorts - fava: normalized package name match | MacPorts ports tree: python/fava/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [ninja](https://pkg.so/zh-hans/brew/ninja/) - Build dependency declared by Homebrew.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [meson](https://pkg.so/zh-hans/brew/meson/) - Build dependency declared by Homebrew.
- [bison](https://pkg.so/zh-hans/brew/bison/) - Build dependency declared by Homebrew.
- [rustledger](https://pkg.so/zh-hans/brew/rustledger/) - Shares pkgdb curated category or tags: accounting, beancount, cli, finance, productivity.
- [bagels](https://pkg.so/zh-hans/brew/bagels/) - Shares pkgdb curated category or tags: cli, finance, productivity.
- [libofx](https://pkg.so/zh-hans/brew/libofx/) - Shares pkgdb curated category or tags: cli, finance, productivity.
- [pytr](https://pkg.so/zh-hans/brew/pytr/) - Shares pkgdb curated category or tags: cli, finance, productivity.
- [hledger](https://pkg.so/zh-hans/brew/hledger/) - Shares pkgdb curated category or tags: accounting, cli, finance, productivity.
- [beancount](https://pkg.so/zh-hans/brew/beancount/) - Shares pkgdb curated category or tags: accounting, cli, finance, productivity.
- [gcalcli](https://pkg.so/zh-hans/brew/gcalcli/) - Shares pkgdb curated category or tags: cli, productivity, python.
- [ledger](https://pkg.so/zh-hans/brew/ledger/) - Shares pkgdb curated category or tags: accounting, cli, productivity.

## Combined YAML source

View the package source record on GitHub. [combined/fava.yml](https://github.com/mxcl/pkgdb/blob/main/combined/fava.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
