# 使用 Homebrew, MacPorts, pacman 安装 couchdb

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

## 安装

```sh
sudo av install brew:couchdb
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install couchdb
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install couchdb
```

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

### Linux

- pacman (92%):

```sh
sudo pacman -S couchdb
```

  证据: Arch Linux sync databases: couchdb from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

- **软件包键:** brew:couchdb
- **软件包管理器:** Homebrew
- **版本:** 3.5.2
- **来源摘要:** Apache CouchDB database server
- **主页:** <https://couchdb.apache.org/>
- **最后更新:** 2026-05-20T14:53:57-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- couchdb (别名)
- remsh (别名)
- weatherreport (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 3.5.2
## 项目历史与用法

Apache CouchDB is an Apache document database built around JSON documents, an HTTP API, replication, and offline-first synchronization patterns.

### 项目历史

The Apache CouchDB site presents the database as a system for multi-primary synchronization, HTTP/JSON access, and reliability from single-node deployments to clustered installations.

The Apache GitHub repository records the modern source location for the project, with the mirror created in 2009 and active development continuing through the 3.x series.

### 采用历史

CouchDB became significant in the NoSQL era because its HTTP API and replication model made it usable directly by web, mobile, and synchronization-oriented applications. The official site points to user stories centered on replication, offline use, and reliability.

The Couch Replication Protocol is implemented by multiple projects and products, making CouchDB relevant beyond the server package itself.

### 使用方式

Administrators run CouchDB as a database server and interact with it over HTTP, through cURL, client libraries, Fauxton, and bundled command-line tools such as `couchdb`, `remsh`, and `weatherreport`.

Configuration is layered through `default.ini`, `default.d`, `local.ini`, and `local.d`, with administrator credentials stored in the `[admins]` section of the loaded ini files rather than in the `_users` database.

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

For package maintainers, CouchDB is more than a single executable: packaging has to account for an Erlang-based service, layered ini configuration, administrator bootstrap, local data/state directories, and platform-specific macOS application paths.

### 时间线

- 2009: Apache CouchDB GitHub repository mirror created.
- 2026: Apache CouchDB 3.5.2 listed on the official site download callout.

### Related projects

- Fauxton
- Couch Replication Protocol
- PouchDB
- Erlang/OTP

### 来源

- <https://couchdb.apache.org/>
- <https://docs.couchdb.org/en/stable/intro/overview.html>
- <https://docs.couchdb.org/en/stable/config/intro.html>
- <https://docs.couchdb.org/en/stable/config/auth.html>
- <https://github.com/apache/couchdb>
- <https://api.github.com/repos/apache/couchdb>


## 安全说明

formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- formula declares a Homebrew service


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

- macOS: Applications/Apache CouchDB.app/Contents/Resources/couchdbx-core/etc, /Users/<your-user>/Library/Application Support/CouchDB2/etc/couchdb, /Users/<your-user>/Library/Preferences/couchdb2-local.ini
- Unix: etc/default.ini, etc/default.d/*.ini, etc/local.ini, etc/local.d/*.ini

## Credential files

- macOS: /Users/<your-user>/Library/Application Support/CouchDB2/etc/couchdb, /Users/<your-user>/Library/Preferences/couchdb2-local.ini
- Unix: etc/local.ini, etc/local.d/*.ini, /opt/couchdb/etc/local.ini, /opt/couchdb/etc/local.d/10-admins.ini
## 其他软件包管理器记录

- pacman - couchdb - 3.5.2-1: normalized package name match | Arch Linux sync databases: couchdb from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Document-oriented database that can be queried and indexed in a MapReduce fashion using JSON | https://couchdb.apache.org
- MacPorts - couchdb: normalized package name match | MacPorts ports tree: databases/couchdb/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
