# 使用 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
- **版本:** 1.30.14
- **来源摘要:** Web interface for the double-entry bookkeeping software Beancount
- **主页:** <https://beancount.github.io/fava/>
- **仓库:** <https://github.com/beancount/fava>
- **最后更新:** 2026-06-17T21:36:00Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- fava (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.30.14
## 项目历史与用法

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。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


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

- 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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
