# 使用 Homebrew 安装 dbhash

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

## 安装

```sh
sudo av install brew:dbhash
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dbhash
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:dbhash
- **软件包管理器:** Homebrew
- **版本:** 3.53.4
- **来源摘要:** Computes the SHA1 hash of schema and content of a SQLite database
- **主页:** <https://www.sqlite.org/dbhash.html>
- **最后更新:** 2026-07-25T14:38:49Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- dbhash (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

dbhash is an SQLite command-line utility that computes a SHA1 hash of a database's schema and content, ignoring storage-level details that do not change the represented data. It is packaged separately in some ecosystems because it is a useful database-inspection tool even for users who are not building SQLite itself.

### 项目历史

The official SQLite documentation describes dbhash as part of SQLite's source tree, implemented by the single C source file tool/dbhash.c. The SQLite source repository is a Fossil repository whose README says it contains SQLite source history going back to May 2000.

### 采用历史

dbhash is a specialist utility rather than a broad application. Its adoption comes from SQLite's ubiquity: database users often need to compare two SQLite files whose on-disk bytes differ after VACUUM, page-size changes, journal-mode changes, backup, or other operations, while the logical schema and content remain equivalent.

### 使用方式

Users run dbhash with one or more SQLite database files and compare the resulting hashes. The official documentation also notes options for restricting hashing to specific tables, content only, or schema only, making it useful in tests, release checks, and remote verification where transferring a whole database would be expensive.

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

For package maintainers and database-heavy developers, dbhash is a small example of SQLite's tool-first culture: a single-purpose binary built from the canonical source tree that solves a real reproducibility problem better than hashing database files byte-for-byte.

### 时间线

- 2000: SQLite source repository history begins, according to the official repository README.
- 2025: The dbhash documentation page records a May 2025 update.
- Present: The official docs describe building dbhash from the canonical SQLite source tree.

### Related projects

- dbhash is closely tied to SQLite itself and related SQLite maintenance tools. It complements SQLite backup, VACUUM, REINDEX, ANALYZE, and schema inspection workflows by comparing logical database content.

### 来源

- <https://www.sqlite.org/dbhash.html>
- <https://www.sqlite.org/src/dir?ci=trunk>
- <https://sqlite.org/src>


## 安全说明

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



## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
