# Install libcouchbase with Homebrew, apk, dnf, Nix

C library for Couchbase. Version 3.3.19 via Homebrew; verified from local package data. Also installable with nix: nix profile install nixpkgs#libcouchbase.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install libcouchbase
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add libcouchbase
```

  Evidence: 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
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:libcouchbase
- **Package manager:** Homebrew
- **Version:** 3.3.19
- **Source summary:** C library for Couchbase
- **Homepage:** <https://docs.couchbase.com/c-sdk/current/hello-world/start-using-sdk.html>
- **Repository:** <https://github.com/couchbase/libcouchbase>
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

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

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 3.3.19
## Project history and usage

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.

### Project history

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 history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

No matching local secret-handling manifest was found for libcouchbase. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Other Package-Manager Records

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


## Sources

- 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
