# 使用 Homebrew 安装 stolon

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

## 安装

```sh
sudo av install brew:stolon
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install stolon
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:stolon
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/stolon>
- **版本:** 0.17.0
- **来源摘要:** Cloud native PostgreSQL manager for high availability
- **主页:** <https://talk.stolon.io>
- **仓库:** <https://github.com/sorintlab/stolon>
- **上游文档:** <https://talk.stolon.io>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/sorintlab/stolon/archive/refs/tags/v0.17.0.tar.gz>
- **最后更新:** 2026-07-26T04:03:46+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- stolon-keeper (cli)
- stolon-proxy (cli)
- stolon-sentinel (cli)
- stolonctl (cli)
- stolon-keeper (别名)
- stolon-proxy (别名)
- stolon-sentinel (别名)
- stolonctl (别名)

## 依赖

- libpq

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.17.0
- 管理器更新时间: 2026-07-26
- 本地数据: OK
- 上游仓库: https://github.com/sorintlab/stolon
- 检测到的最新版本: v0.17.0 (当前)
## 项目历史与用法

stolon is a cloud-native PostgreSQL high-availability manager. It is packaged as a set of operational CLIs and daemons for people who want PostgreSQL streaming replication, failover control, and service routing in container or cloud environments.

### 项目历史

The official README describes stolon as a PostgreSQL manager for high availability across Kubernetes, cloud IaaS, and older infrastructure. Simone Gotti's introduction, linked from the README, says the project was created after earlier HA approaches such as heartbeat, Pacemaker-style clusters, and shared storage proved awkward for cloud and container environments.

### 采用历史

The project was framed from the start around cloud and container operations, using etcd, Consul, or the Kubernetes API as the cluster store. The README says the Homebrew formula exists but is unofficial and unsupported by the project, which is useful package-manager context: it is installable through Brew, but upstream still expects operators to check version and support status.

### 使用方式

stolon is composed of keeper, sentinel, proxy, and the `stolonctl` administrative client. Operators use those pieces to run PostgreSQL instances, monitor cluster state, calculate the desired cluster view, and route client connections to the current master.

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

stolon is interesting to package nerds because it packages a distributed PostgreSQL control plane into ordinary binaries. It sits at the intersection of database administration, Kubernetes-era service discovery, and classic Unix daemon packaging.

### 时间线

- 2016: Simone Gotti publishes the linked introduction to stolon and its cloud-native PostgreSQL HA goals.
- 2016: README-era documentation presents keeper, sentinel, proxy, and `stolonctl` as the core components.
- Current: Upstream README lists Homebrew availability while warning that the formula is unofficial and unsupported by the project.

### Related projects

- The project documentation names PostgreSQL streaming replication as its base and uses etcd, Consul, or Kubernetes as a highly available cluster store. The introduction also compares the problem space with repmgr and governor.

### 来源

- <https://github.com/sorintlab/stolon#readme>
- <https://github.com/sorintlab/stolon/tree/master/doc>
- <https://raw.githubusercontent.com/sorintlab/stolon/master/doc/architecture.md>
- <https://sgotti.dev/post/stolon-introduction/>


## 安全说明

broad file, network, media, or database tool signal. infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- broad file, network, media, or database tool signal
- infrastructure mutation or orchestration signal

## 源数据库详情

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


## 相关链接

- [Cloud CLI packages](https://pkg.so/zh-hans/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [libpq](https://pkg.so/zh-hans/brew/libpq/) - Runtime dependency declared by Homebrew.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [pgstream](https://pkg.so/zh-hans/brew/pgstream/) - Shares pkgdb curated category or tags: cli, data, postgresql, replication.
- [postgresql@14](https://pkg.so/zh-hans/brew/postgresql-14/) - Shares pkgdb curated category or tags: cli, data, postgresql.
- [postgresql@16](https://pkg.so/zh-hans/brew/postgresql-16/) - Shares pkgdb curated category or tags: cli, data, postgresql.
- [postgresql@17](https://pkg.so/zh-hans/brew/postgresql-17/) - Shares pkgdb curated category or tags: cli, data, postgresql.
- [postgresql@18](https://pkg.so/zh-hans/brew/postgresql-18/) - Shares pkgdb curated category or tags: cli, data, postgresql.
- [postgresql@15](https://pkg.so/zh-hans/brew/postgresql-15/) - Shares pkgdb curated category or tags: cli, data, postgresql.
- [postgis](https://pkg.so/zh-hans/brew/postgis/) - Shares pkgdb curated category or tags: cli, data, postgresql.
- [lazysql](https://pkg.so/zh-hans/brew/lazysql/) - Shares pkgdb curated category or tags: cli, data, postgresql.
- [barman](https://pkg.so/zh-hans/brew/barman/) - Local package facts share a topical domain. Shared terms: cli, cloud, data, libpq, manager.
- [pex](https://pkg.so/zh-hans/brew/pex/) - Local package facts share a topical domain. Shared terms: cli, data, libpq, management, manager.
- [osm2pgsql](https://pkg.so/zh-hans/brew/osm2pgsql/) - Local package facts share a topical domain. Shared terms: cli, data, libpq, postgresql, replication.

## Combined YAML source

View the package source record on GitHub. [combined/stolon.yml](https://github.com/mxcl/pkgdb/blob/main/combined/stolon.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
