# 使用 Homebrew, MacPorts, Nix, scoop 安装 flyway

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

## 安装

```sh
sudo av install brew:flyway
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install flyway
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install flyway
```

  证据: MacPorts ports tree: java/flyway/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#flyway
```

  证据: nixpkgs package indexes: pkgs/by-name/fl/flyway/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- Scoop (92%):

```sh
scoop install main/flyway
```

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

## 软件包事实

- **软件包键:** brew:flyway
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/flyway>
- **版本:** 12.10.0
- **来源摘要:** Database version control to control migrations
- **主页:** <https://www.red-gate.com/products/flyway/community/>
- **仓库:** <https://github.com/flyway/flyway>
- **上游文档:** <https://documentation.red-gate.com/flyway>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/flyway/flyway/releases/download/flyway-12.10.0/flyway-commandline-12.10.0.tar.gz>
- **最后更新:** 2026-06-30T12:28:44Z
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- flyway (cli)
- flyway (别名)

## 依赖

- openjdk

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 12.10.0
- 管理器更新时间: 2026-06-30
- 本地数据: OK
- 上游仓库: https://github.com/flyway/flyway
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

Redgate Flyway is a database migration and schema versioning tool for command-line, API, Maven, Gradle, Docker, and desktop workflows. It applies versioned migrations, records them in a schema history table, and is used to bring database change management into application-style CI/CD pipelines.

### 项目历史

The open-source repository identifies Flyway as a Redgate project and carries copyright from 2010 through 2026. The README emphasizes a simple, focused migration model and lists support across Windows, macOS, Linux, Docker, Java, Maven, and Gradle.

Redgate documentation presents Flyway as part of a wider product family that includes Flyway Command Line, Flyway Desktop, APIs, build-tool integrations, and Redgate editions. The GitHub README also notes that Flyway is a registered trademark of Boxfuse GmbH owned by Red Gate Software Ltd.

### 采用历史

Flyway's adoption is tied to the rise of database DevOps: its own documentation says it extends DevOps to databases, automates database deployments, and is commonly used from the command line in CI/CD systems. The README lists support for 50-plus DBMS products and many community or third-party integrations, including Spring Boot, SBT, Ant, Grails, Play, DropWizard, Grunt, Griffon, and Ninja.

### 使用方式

The standard workflow is to create ordered SQL, Java, or scripting migrations, run Flyway against a database, and let it create or update the `flyway_schema_history` table as migrations are applied. It can be used directly through the CLI, embedded through the Java API, or driven through Maven and Gradle.

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

Flyway matters to package ecosystems because it is both a standalone CLI and a Java library/plugin stack. It bridges application release tooling and mutable database state, so packaging has to serve local developer installs, CI runners, containers, build plugins, and enterprise editions without confusing the open-source command-line engine with Redgate's commercial surfaces.

### 时间线

- 2010: The Flyway open-source repository's copyright period begins.
- 2021: Redgate Flyway documentation was published in its current documentation space.
- 2022: Redgate published the Flyway Engine release-notes page in the current documentation system.
- 2024: The GitHub release stream included Flyway 10.x releases.
- 2026: Redgate documentation listed Flyway 12.10.0 as a current engine release.

### Related projects

- Related official surfaces include Flyway Desktop, Flyway Command Line, Flyway Java API, the Maven and Gradle plugins, flyway-community-db-support, and Redgate's commercial Flyway editions.

### 来源

- <https://api.github.com/repos/flyway/flyway/releases?per_page=100>
- <https://documentation.red-gate.com/fd/release-notes-for-flyway-engine-179732572.html>
- <https://documentation.red-gate.com/flyway>
- <https://documentation.red-gate.com/flyway/getting-started-with-flyway>
- <https://github.com/flyway/flyway>
- <https://raw.githubusercontent.com/flyway/flyway/main/README.md>


## 安全说明

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



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ./flyway.toml, ./flyway.conf, ~/flyway.conf, <flyway-install-dir>/conf/flyway.conf

## Credential files

- Unix: ~/flyway.conf
## 源数据库详情

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

## 其他软件包管理器记录

- Nix - flyway: normalized package name match | nixpkgs package indexes: pkgs/by-name/fl/flyway/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - flyway: normalized package name match | MacPorts ports tree: java/flyway/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/flyway: normalized package name match | Scoop official bucket manifest trees: bucket/flyway.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [openjdk](https://www.automicvault.com/zh-hans/pkg/brew/openjdk/) - Runtime dependency declared by Homebrew.
- [act](https://www.automicvault.com/zh-hans/pkg/brew/act/) - Shares av.db curated category or tags: ci-cd, cli, developer-tools, devops.
- [dbmate](https://www.automicvault.com/zh-hans/pkg/brew/dbmate/) - Shares av.db curated category or tags: cli, database-migrations, developer-tools, sql.
- [gitea](https://www.automicvault.com/zh-hans/pkg/brew/gitea/) - Shares av.db curated category or tags: ci-cd, cli, developer-tools, devops.
- [glab](https://www.automicvault.com/zh-hans/pkg/brew/glab/) - Shares av.db curated category or tags: ci-cd, cli, developer-tools, devops.
- [jenkins](https://www.automicvault.com/zh-hans/pkg/brew/jenkins/) - Shares av.db curated category or tags: ci-cd, cli, developer-tools, devops.
- [jenkins-lts](https://www.automicvault.com/zh-hans/pkg/brew/jenkins-lts/) - Shares av.db curated category or tags: ci-cd, cli, developer-tools, devops.
- [sql-migrate](https://www.automicvault.com/zh-hans/pkg/brew/sql-migrate/) - Shares av.db curated category or tags: cli, database-migrations, developer-tools, sql.
- [woodpecker-cli](https://www.automicvault.com/zh-hans/pkg/brew/woodpecker-cli/) - Shares av.db curated category or tags: ci-cd, cli, developer-tools, devops.
- [liquibase](https://www.automicvault.com/zh-hans/pkg/brew/liquibase/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, database, developer, developer-tools, devops.

## Combined YAML source

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


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- 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
