# dbmate を Homebrew, apk, Nix, pacman, scoop, winget でインストール

dbmate のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

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

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install dbmate
```

  証拠: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add dbmate
```

  証拠: 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
```

  証拠: 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
```

  証拠: 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
```

  証拠: 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
```

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

## パッケージ情報

- **パッケージキー:** brew:dbmate
- **パッケージマネージャ:** Homebrew
- **バージョン:** 2.34.1
- **ソース概要:** Lightweight, framework-agnostic database migration tool
- **ホームページ:** <https://github.com/amacneil/dbmate>
- **リポジトリ:** <https://github.com/amacneil/dbmate>
- **最終更新:** 2026-07-28T14:10:37+02:00
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- dbmate (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 2.34.1
## プロジェクトの歴史と使われ方

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.

### プロジェクトの歴史

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.

### 採用の歴史

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.

### 使われ方

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.

### パッケージ好きにとっての重要性

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.

### タイムライン

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

### ソース

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


## セキュリティノート

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

- **Geiger リスク:** blue / 中
- broad file, network, media, or database tool signal

## 他のパッケージマネージャ記録

- 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.33.0-r1: 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.33.0-r1: 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.34.1-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


## Combined YAML source

View the package source record on GitHub. [combined/dbmate.yml](https://github.com/mxcl/pkgdb/blob/main/combined/dbmate.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
