# Install dbhash with Homebrew

Computes the SHA1 hash of schema and content of a SQLite database. Version 3.53.3 via Homebrew; verified 2026-06-27.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install dbhash
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:dbhash
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/dbhash>
- **Version:** 3.53.3
- **Source summary:** Computes the SHA1 hash of schema and content of a SQLite database
- **Homepage:** <https://www.sqlite.org/dbhash.html>
- **Repository:** <https://sqlite.org/src>
- **Upstream docs:** <https://www.sqlite.org/dbhash.html>
- **License:** blessing
- **Source archive:** <https://www.sqlite.org/2026/sqlite-src-3530300.zip>
- **Last updated:** 2026-06-27T14:08:56Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- dbhash (cli)
- dbhash (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sequoia, sonoma, tahoe, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 3.53.3
- Package-manager updated: 2026-06-27
- Local data: ok
- Upstream repository: https://www.sqlite.org/dbhash.html
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

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


## Security Notes

No matching local secret-handling manifest was found for dbhash. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

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


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [litecli](https://www.automicvault.com/pkg/brew/litecli/) - Shares av.db curated category or tags: cli, database, developer-tools, sqlite.
- [neonctl](https://www.automicvault.com/pkg/brew/neonctl/) - Shares av.db curated category or tags: cli, database, developer-tools.
- [sqlcmd](https://www.automicvault.com/pkg/brew/sqlcmd/) - Shares av.db curated category or tags: cli, database, developer-tools.
- [mongosh](https://www.automicvault.com/pkg/brew/mongosh/) - Shares av.db curated category or tags: cli, database, developer-tools.
- [sqldiff](https://www.automicvault.com/pkg/brew/sqldiff/) - Shares av.db curated category or tags: cli, database, developer-tools, sqlite.
- [sqlx-cli](https://www.automicvault.com/pkg/brew/sqlx-cli/) - Shares av.db curated category or tags: cli, database, developer-tools, sqlite.
- [chdig](https://www.automicvault.com/pkg/brew/chdig/) - Shares av.db curated category or tags: cli, database, developer-tools.
- [dblab](https://www.automicvault.com/pkg/brew/dblab/) - Shares av.db curated category or tags: cli, database, developer-tools, sqlite.
- [sqlite](https://www.automicvault.com/pkg/brew/sqlite/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, database, sqlite.
- [sqlite-analyzer](https://www.automicvault.com/pkg/brew/sqlite-analyzer/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, database, sqlite.

## Combined YAML source

View the package source record on GitHub. [combined/dbhash.yml](https://github.com/automic-vault/db/blob/main/combined/dbhash.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
