# Install dbmate with Homebrew, apk, Nix, pacman, scoop, winget

Lightweight, framework-agnostic database migration tool. Version 2.33.0 via Homebrew; verified 2026-04-29.

## Install

```sh
sudo av install brew:dbmate
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install dbmate
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add dbmate
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#dbmate
```

  Evidence: nixpkgs package indexes: pkgs/by-name/db/dbmate/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S dbmate
```

  Evidence: Arch Linux sync databases: dbmate from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- Scoop (92%):

```sh
scoop install main/dbmate
```

  Evidence: Scoop official bucket manifest trees: bucket/dbmate.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id amacneil.dbmate -e
```

  Evidence: Windows Package Manager source index: amacneil.dbmate from https://cdn.winget.microsoft.com/cache/source.msix

## Package facts

- **Package key:** brew:dbmate
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/dbmate>
- **Version:** 2.33.0
- **Source summary:** Lightweight, framework-agnostic database migration tool
- **Homepage:** <https://github.com/amacneil/dbmate>
- **Repository:** <https://github.com/amacneil/dbmate>
- **Upstream docs:** <https://github.com/amacneil/dbmate#readme>
- **License:** MIT
- **Source archive:** <https://github.com/amacneil/dbmate/archive/refs/tags/v2.33.0.tar.gz>
- **Last updated:** 2026-04-29T13:56:50Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- dbmate (cli)
- dbmate (alias)

## Build dependencies

- go

## Install behavior

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

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.33.0
- Package-manager updated: 2026-04-29
- Local data: ok
- Upstream repository: https://github.com/amacneil/dbmate
- Upstream latest detected: v2.33.0 (current)
## Project history and usage

Dbmate is a standalone, framework-agnostic database migration tool that keeps schemas in sync across developers and production servers. It uses plain SQL migrations, timestamped migration files, and a command-line workflow that can be shared across languages and frameworks.

### Project history

The official GitHub repository was created in November 2015, and its early v0.1 tag points to a December 2015 commit. The README emphasizes that Dbmate can be used with Go, Node.js, Python, Ruby, PHP, Rust, C++, or any other stack, making it independent of a web framework's migration system.

### Adoption history

Dbmate spread as a simple binary migration tool for teams that wanted SQL migrations without adopting a framework-specific migrator. The official README documents installation through npm, Homebrew, direct Linux binaries, Scoop on Windows, and GitHub Container Registry images, showing how it fits multiple package ecosystems.

### How it is used

A typical project stores DATABASE_URL in the environment or a local .env file, keeps migration files under ./db/migrations by default, and runs commands such as dbmate new, up, migrate, rollback, status, dump, and load. Dbmate also writes schema.sql for diffing schema changes in git.

### Why package nerds care

Dbmate is package-nerd friendly because it is boring in the best way: one self-contained binary, plain SQL files, environment-variable configuration, and no service dependency. It is a migration tool that deliberately avoids framework lock-in and SaaS upsell, which makes it easy to slot into mixed-language repos.

### Timeline

- 2015: Official GitHub repository was created.
- 2015: v0.1 tag appears in the official repository.
- Present: README documents Dbmate v2-era usage, multi-database support, containers, and package-manager installs.

### Related projects

- The README explicitly frames Dbmate against other database schema migration tools, while its supported database targets include MySQL, MariaDB, PostgreSQL, SQLite, ClickHouse, BigQuery, and Spanner.

### Sources

- <https://github.com/amacneil/dbmate>
- <https://raw.githubusercontent.com/amacneil/dbmate/master/README.md>
- <https://api.github.com/repos/amacneil/dbmate>
- <https://api.github.com/repos/amacneil/dbmate/git/commits/158ecaa96570a07826ab0c6f20e965f5a15a784e>


## Security Notes

broad file, network, media, or database tool signal.

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** dbmate
- **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

## Other Package-Manager Records

- Nix - dbmate: normalized package name match | nixpkgs package indexes: pkgs/by-name/db/dbmate/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - dbmate - 2.31.0-r3: normalized package name match | Alpine Linux edge package indexes: dbmate from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Lightweight, framework-agnostic database migration tool | https://github.com/amacneil/dbmate
- apk - dbmate-doc - 2.31.0-r3: normalized package name match | Alpine Linux edge package indexes: dbmate-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Lightweight, framework-agnostic database migration tool (documentation) | https://github.com/amacneil/dbmate
- pacman - dbmate - 2.33.0-1: normalized package name match | Arch Linux sync databases: dbmate from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A lightweight, framework-agnostic database migration tool | https://github.com/amacneil/dbmate
- Scoop - main/dbmate: normalized package name match | Scoop official bucket manifest trees: bucket/dbmate.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - amacneil.dbmate: normalized package name match | Windows Package Manager source index: amacneil.dbmate from https://cdn.winget.microsoft.com/cache/source.msix


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [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.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [dblab](https://www.automicvault.com/pkg/brew/dblab/) - Shares av.db curated category or tags: cli, database, developer-tools, mysql, postgresql.
- [pgcopydb](https://www.automicvault.com/pkg/brew/pgcopydb/) - Shares av.db curated category or tags: cli, database, developer-tools, migration, postgresql.
- [pg-schema-diff](https://www.automicvault.com/pkg/brew/pg-schema-diff/) - Shares av.db curated category or tags: cli, database, developer-tools, postgresql, sql.
- [pgformatter](https://www.automicvault.com/pkg/brew/pgformatter/) - Shares av.db curated category or tags: cli, database, developer-tools, postgresql, sql.
- [sql-migrate](https://www.automicvault.com/pkg/brew/sql-migrate/) - Shares av.db curated category or tags: cli, database, database-migrations, developer-tools, sql.
- [sqlbench](https://www.automicvault.com/pkg/brew/sqlbench/) - Shares av.db curated category or tags: cli, database, developer-tools, postgresql, sql.
- [sqldiff](https://www.automicvault.com/pkg/brew/sqldiff/) - Shares av.db curated category or tags: cli, database, developer-tools, sql, sqlite.
- [sqlx-cli](https://www.automicvault.com/pkg/brew/sqlx-cli/) - Shares av.db curated category or tags: cli, database, developer-tools, mysql, postgresql.
- [dbmate](https://www.automicvault.com/pkg/npm/dbmate/) - Same normalized package name appears in another local ecosystem. Shared terms: agnostic, database, dbmate, framework, framework-agnostic.
- [dbmate](https://www.automicvault.com/pkg/npm/dbmate/) - Same normalized package name in another local ecosystem.

## Combined YAML source

View the package source record on GitHub. [combined/dbmate.yml](https://github.com/automic-vault/db/blob/main/combined/dbmate.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
- external package-manager database matches
- cross-ecosystem install command graph
