Automic VaultAutomic Vault

brew

使用 Homebrew, apk, Nix, pacman, scoop, winget 安装 dbmate

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install dbmate

local Homebrew formula metadata

Linux

Alpine Linux apk已验证 · 92%
sudo apk add dbmate

Alpine Linux edge package indexes · dbmate · 来源: dl-cdn.alpinelinux.org

Nix已验证 · 92%
nix profile install nixpkgs#dbmate

nixpkgs package indexes · pkgs/by-name/db/dbmate/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S dbmate

Arch Linux sync databases · dbmate · 来源: geo.mirror.pkgbuild.com

Windows

Scoop已验证 · 92%
scoop install main/dbmate

Scoop official bucket manifest trees · bucket/dbmate.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id amacneil.dbmate -e

Windows Package Manager source index · amacneil.dbmate · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Lightweight, framework-agnostic database migration tool

命令和别名

  • dbmate

历史

项目历史与用法

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.

安全态势

风险级别:blue

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

风险分类器

blue 风险 · 中 置信度 · tool

原因

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

信号

  • text:database

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
dbmatecli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本2.34.1
管理器更新时间2026-07-09
本地数据OK
上游当前
检测到的最新版本v2.34.1

https://github.com/amacneil/dbmate

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:dbmate
版本2.34.1
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/dbmate
主页https://github.com/amacneil/dbmate
仓库https://github.com/amacneil/dbmate
上游文档https://github.com/amacneil/dbmate#readme
许可证MIT
源码归档https://github.com/amacneil/dbmate/archive/refs/tags/v2.34.1.tar.gz
最后更新2026-07-09T22:04:49Z
Pulseupdated
构建依赖go
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namedbmate
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

dbmate

nix profile install nixpkgs#dbmate
  • normalized package name match
  • 匹配方式:Dbmate
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/db/dbmate/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

dbmate 2.31.0-r3

Lightweight, framework-agnostic database migration tool

https://github.com/amacneil/dbmate

sudo apk add dbmate
  • License: MIT
  • Architecture: x86_64
  • Source Package: dbmate
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Dbmate
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: dbmate from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

dbmate-doc 2.31.0-r3

Lightweight, framework-agnostic database migration tool (documentation)

https://github.com/amacneil/dbmate

sudo apk add dbmate-doc
  • License: MIT
  • Architecture: x86_64
  • Source Package: dbmate
  • normalized package name match
  • 匹配方式:Dbmate
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: dbmate-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
pacman95%

dbmate 2.33.0-1

A lightweight, framework-agnostic database migration tool

https://github.com/amacneil/dbmate

sudo pacman -S dbmate
  • License: MIT
  • Architecture: x86_64
  • 2 依赖
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Dbmate
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: dbmate from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
Scoop95%

main/dbmate

scoop install main/dbmate
  • normalized package name match
  • 匹配方式:Dbmate
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/dbmate.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

amacneil.dbmate

winget install --id amacneil.dbmate -e
  • normalized package name match
  • 匹配方式:Dbmate
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: amacneil.dbmate from https://cdn.winget.microsoft.com/cache/source.msix

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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