# 使用 Homebrew, apk, dnf, Nix 安装 libcouchbase

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

## 安装

```sh
sudo av install brew:libcouchbase
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libcouchbase
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add libcouchbase
```

  证据: Alpine Linux edge package indexes: libcouchbase from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install libcouchbase
```

  证据: Fedora Rawhide package metadata: libcouchbase from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#libcouchbase
```

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

## 软件包事实

- **软件包键:** brew:libcouchbase
- **软件包管理器:** Homebrew
- **版本:** 3.3.19
- **来源摘要:** C library for Couchbase
- **主页:** <https://docs.couchbase.com/c-sdk/current/hello-world/start-using-sdk.html>
- **仓库:** <https://github.com/couchbase/libcouchbase>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- cbc-admin (别名)
- cbc-bucket-create (别名)
- cbc-bucket-delete (别名)
- cbc-bucket-flush (别名)
- cbc-bucket-list (别名)
- cbc-cat (别名)
- cbc-collection-id (别名)
- cbc-collection-manifest (别名)
- cbc-connstr (别名)
- cbc-create (别名)
- cbc-decr (别名)
- cbc-gen (别名)
- cbc-hash (别名)
- cbc-incr (别名)
- cbc-keygen (别名)
- cbc-lock (别名)
- cbc-mcversion (别名)
- cbc-n1ql (别名)
- cbc-n1qlback (别名)
- cbc-observe (别名)
- cbc-observe-seqno (别名)
- cbc-pillowfight (别名)
- cbc-ping (别名)
- cbc-proxy (别名)
- cbc-rm (别名)
- cbc-role-list (别名)
- cbc-stats (别名)
- cbc-strerror (别名)
- cbc-subdoc (别名)
- cbc-touch (别名)
- cbc-unlock (别名)
- cbc-user-delete (别名)
- cbc-user-list (别名)
- cbc-user-upsert (别名)
- cbc-verbosity (别名)
- cbc-version (别名)
- cbc-view (别名)
- cbc-watch (别名)
- cbc-write-config (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

libcouchbase is the Couchbase C SDK and low-level C client library. It speaks Couchbase cluster protocols, provides synchronous and asynchronous APIs, and ships the `cbc` command family for administration, diagnostics, data access, and benchmarking.

### 项目历史

The Couchbase repository describes libcouchbase as the C client library for Couchbase, responsible for connecting to a cluster and executing data operations. Its README also shows the library's long-standing cross-platform shape: Linux, OS X/macOS, and Windows support, with asynchronous integrations for libuv, libev, libevent, select, and Windows IOCP.

Couchbase documentation treats libcouchbase as both the C SDK and as infrastructure for other SDKs. The getting-started guide states that older versions of the Node.js, PHP, and Python SDKs used libcouchbase to communicate with Couchbase Server.

### 采用历史

Adoption came from two directions: direct C applications using Couchbase, and language SDKs or extensions that used the C client underneath. Couchbase's package documentation lists apt and yum repositories, Homebrew installation, Windows archives, and source builds, which made the library a normal dependency in both server deployments and developer workstations.

### 使用方式

Developers link against the C SDK for key-value, query, management, and cluster operations, while operators and package users often meet libcouchbase through the `cbc-*` tools. The official docs point to `cbc` and `cbc-pillowfight` as examples, and Homebrew exposes a large set of `cbc-` utilities.

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

libcouchbase is interesting to package nerds because it is not just a leaf CLI: it is a database client ABI, a tool bundle, and historically a foundation for higher-level Couchbase SDKs. Packaging it correctly means caring about TLS, event-loop backends, server compatibility, and command-line tools in one formula.

### 时间线

- 2014-11-27: Repository contributor list noted as last updated on this date in the README.
- 2020-04-08: Couchbase C SDK 3.0.1 released as the second release of the 3.0 series.
- 2020-06-08: Couchbase release notes mention Homebrew behavior changing from the 2.10 series to the 3.0 series.
- 2020s: Couchbase maintained 3.x release notes and package repositories for Debian, Ubuntu, Enterprise Linux, Amazon Linux, Windows, and source archives.

### Related projects

- Related projects include Couchbase Server, the Couchbase Node.js, Python, and PHP SDKs, libcouchbase's `cbc` tools, libevent, libev, libuv, OpenSSL, and CouchbaseMock for tests.

### 来源

- <https://docs.couchbase.com/c-sdk/current/hello-world/start-using-sdk.html>
- <https://docs.couchbase.com/c-sdk/current/project-docs/sdk-release-notes.html>
- <https://formulae.brew.sh/formula/libcouchbase>
- <https://github.com/couchbase/libcouchbase>


## 安全说明

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


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

- Nix - libcouchbase: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libcouchbase/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - libcouchbase - 3.3.18-r0: normalized package name match | Alpine Linux edge package indexes: libcouchbase from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | C client library for Couchbase | https://developer.couchbase.com/community
- apk - libcouchbase-dev - 3.3.18-r0: normalized package name match | Alpine Linux edge package indexes: libcouchbase-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | C client library for Couchbase (development files) | https://developer.couchbase.com/community
- apk - libcouchbase-doc - 3.3.18-r0: normalized package name match | Alpine Linux edge package indexes: libcouchbase-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | C client library for Couchbase (documentation) | https://developer.couchbase.com/community
- apk - libcouchbase-libev - 3.3.18-r0: normalized package name match | Alpine Linux edge package indexes: libcouchbase-libev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | C client library for Couchbase (libev backend) | https://developer.couchbase.com/community
- apk - libcouchbase-libevent - 3.3.18-r0: normalized package name match | Alpine Linux edge package indexes: libcouchbase-libevent from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | C client library for Couchbase (libevent backend) | https://developer.couchbase.com/community
- apk - libcouchbase-libuv - 3.3.18-r0: normalized package name match | Alpine Linux edge package indexes: libcouchbase-libuv from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | C client library for Couchbase (libuv backend) | https://developer.couchbase.com/community
- apk - libcouchbase-utils - 3.3.18-r0: normalized package name match | Alpine Linux edge package indexes: libcouchbase-utils from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | C client library for Couchbase (command line utilities) | https://developer.couchbase.com/community
- dnf - libcouchbase - 3.3.18-6.fc45: normalized package name match | Fedora Rawhide package metadata: libcouchbase from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Client and protocol library for the Couchbase project | https://docs.couchbase.com/c-sdk/current/project-docs/sdk-release-notes.html
- dnf - libcouchbase-devel - 3.3.18-6.fc45: normalized package name match | Fedora Rawhide package metadata: libcouchbase-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Couchbase client library - Header files | https://docs.couchbase.com/c-sdk/current/project-docs/sdk-release-notes.html
- dnf - libcouchbase-libev - 3.3.18-6.fc45: normalized package name match | Fedora Rawhide package metadata: libcouchbase-libev from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Couchbase client library - libev IO back-end | https://docs.couchbase.com/c-sdk/current/project-docs/sdk-release-notes.html
- dnf - libcouchbase-libevent - 3.3.18-6.fc45: normalized package name match | Fedora Rawhide package metadata: libcouchbase-libevent from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Couchbase client library - libevent IO back-end | https://docs.couchbase.com/c-sdk/current/project-docs/sdk-release-notes.html
- dnf - libcouchbase-libuv - 3.3.18-6.fc45: normalized package name match | Fedora Rawhide package metadata: libcouchbase-libuv from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Couchbase client library - libuv IO back-end | https://docs.couchbase.com/c-sdk/current/project-docs/sdk-release-notes.html
- dnf - libcouchbase-tools - 3.3.18-6.fc45: normalized package name match | Fedora Rawhide package metadata: libcouchbase-tools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Couchbase client tools | https://docs.couchbase.com/c-sdk/current/project-docs/sdk-release-notes.html


## Combined YAML source

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