Automic VaultAutomic Vault

brew

Install mongo-c-driver with Homebrew, apk, apt, dnf, MacPorts, pacman, zypper

C driver for MongoDB. Version 2.3.2 via Homebrew; verified 2026-07-07.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install mongo-c-driver

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install mongo-c-driver

MacPorts ports tree · devel/mongo-c-driver/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add libbson

Alpine Linux edge package indexes · libbson · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install libbson-1.0-0t64

Debian stable package indexes · libbson-1.0-0t64 · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install libbson

Fedora Rawhide package metadata · libbson · source: dl.fedoraproject.org

Arch Linux pacmanverified · 92%
sudo pacman -S mongo-c-driver

Arch Linux sync databases · mongo-c-driver · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install bson-devel

openSUSE Tumbleweed package metadata · bson-devel · source: download.opensuse.org

overview

Package summary

C driver for MongoDB

Commands and aliases

  • mongoc2-stat

history

Project history and usage

mongo-c-driver is MongoDB's official C client-driver project. The documentation identifies libmongoc as the official driver for C applications and explains that it depends on libbson for creating and parsing BSON, MongoDB's native document format. The project therefore serves two audiences: C programs that connect directly to MongoDB, and higher-level drivers or bindings that need a maintained C implementation underneath.

Project history

The driver line has been packaged under several names. Homebrew notes mongo-c-driver as also known as libmongoc and mongo-c-driver@2, and formerly known as mongo-c. The upstream API site describes the package as a cross-platform MongoDB client library for C and for writing drivers in higher-level languages, while the GitHub repository summarizes the project as libmongoc plus libbson and points contributors to MongoDB's driver documentation and support channels.

Adoption history

The 2.x series is the main Homebrew formula. MongoDB's release notes mark 2.0.0 as a breaking release that removed deprecated types and methods, added BSON Binary Vector subtype support in libbson, and added libmongoc support for aggregate operations that include lookup stages for in-use encryption. Later 2.x notes show the driver continuing to track server features such as OIDC authentication variants, Queryable Encryption operations, client-side timeout behavior, overload handling, and other production-driver concerns.

How it is used

In practice the formula is installed when building C applications against MongoDB, compiling software that embeds MongoDB access through libmongoc, or satisfying native dependencies for language bindings and tools. It sits beside server packages and higher-level MongoDB drivers: users rarely run it as an end-user database tool, but many builds need its headers, libraries, pkg-config/CMake metadata, and small diagnostic utility.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 2 runtime dependencies.
  • Build metadata lists 3 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
mongoc2-statcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version2.3.2
manager updated2026-07-07
local dataok
upstreamcurrent
latest detected2.3.2

https://github.com/mongodb/mongo-c-driver

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:mongo-c-driver
Version2.3.2
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/mongo-c-driver
Homepagehttps://github.com/mongodb/mongo-c-driver
Repositoryhttps://github.com/mongodb/mongo-c-driver
Upstream docshttps://www.mongoc.org/
LicenseApache-2.0
Source archivehttps://github.com/mongodb/mongo-c-driver/archive/refs/tags/2.3.2.tar.gz
Last updated2026-07-07T16:38:47Z
Pulseupdated
Dependenciesopenssl@3, zstd
Build dependenciescmake, pkgconf, sphinx-doc
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namemongo-c-driver
Aliases
  • libmongoc
  • mongo-c-driver@2
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

libbson-1.0-0t64 1.30.4-1+deb13u2

Library to parse and generate BSON documents - runtime files

https://github.com/mongodb/mongo-c-driver

sudo apt install libbson-1.0-0t64
  • Section: libs
  • Architecture: amd64
  • Source Package: mongo-c-driver
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Mongo C Driver
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libbson-1.0-0t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libbson-dev 1.30.4-1+deb13u2

Library to parse and generate BSON documents - dev files

https://github.com/mongodb/mongo-c-driver

sudo apt install libbson-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: mongo-c-driver
  • 1 dependencies
  • normalized package name match
  • Matched by: Mongo C Driver
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libbson-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libbson-doc 1.30.4-1+deb13u2

Library to parse and generate BSON documents - documentation

https://github.com/mongodb/mongo-c-driver

sudo apt install libbson-doc
  • Section: doc
  • Architecture: all
  • Source Package: mongo-c-driver
  • normalized package name match
  • Matched by: Mongo C Driver
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libbson-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libmongoc-1.0-0t64 1.30.4-1+deb13u2

MongoDB C client library - runtime files

https://github.com/mongodb/mongo-c-driver

sudo apt install libmongoc-1.0-0t64
  • Section: libs
  • Architecture: amd64
  • Source Package: mongo-c-driver
  • 9 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Mongo C Driver
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libmongoc-1.0-0t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libmongoc-dev 1.30.4-1+deb13u2

MongoDB C client library - dev files

https://github.com/mongodb/mongo-c-driver

sudo apt install libmongoc-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: mongo-c-driver
  • 9 dependencies
  • normalized package name match
  • Matched by: Mongo C Driver
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libmongoc-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libmongoc-doc 1.30.4-1+deb13u2

MongoDB C client library - documentation

https://github.com/mongodb/mongo-c-driver

sudo apt install libmongoc-doc
  • Section: doc
  • Architecture: all
  • Source Package: mongo-c-driver
  • 1 dependencies
  • normalized package name match
  • Matched by: Mongo C Driver
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libmongoc-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt95%

libbson-1.0-0t64 1.26.0-1.1ubuntu2

Library to parse and generate BSON documents - runtime files

https://github.com/mongodb/mongo-c-driver

sudo apt install libbson-1.0-0t64
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: mongo-c-driver
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Mongo C Driver
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libbson-1.0-0t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libbson-dev 1.26.0-1.1ubuntu2

Library to parse and generate BSON documents - dev files

https://github.com/mongodb/mongo-c-driver

sudo apt install libbson-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: mongo-c-driver
  • 1 dependencies
  • normalized package name match
  • Matched by: Mongo C Driver
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libbson-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libbson-doc 1.26.0-1.1ubuntu2

Library to parse and generate BSON documents - documentation

https://github.com/mongodb/mongo-c-driver

sudo apt install libbson-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: mongo-c-driver
  • normalized package name match
  • Matched by: Mongo C Driver
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libbson-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libmongoc-1.0-0t64 1.26.0-1.1ubuntu2

MongoDB C client library - runtime files

https://github.com/mongodb/mongo-c-driver

sudo apt install libmongoc-1.0-0t64
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: mongo-c-driver
  • 9 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Mongo C Driver
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libmongoc-1.0-0t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libmongoc-dev 1.26.0-1.1ubuntu2

MongoDB C client library - dev files

https://github.com/mongodb/mongo-c-driver

sudo apt install libmongoc-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: mongo-c-driver
  • 9 dependencies
  • normalized package name match
  • Matched by: Mongo C Driver
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libmongoc-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libmongoc-doc 1.26.0-1.1ubuntu2

MongoDB C client library - documentation

https://github.com/mongodb/mongo-c-driver

sudo apt install libmongoc-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: mongo-c-driver
  • 1 dependencies
  • normalized package name match
  • Matched by: Mongo C Driver
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libmongoc-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

libbson 1.30.6-r0

Building, parsing, and iterating BSON documents

https://github.com/mongodb/mongo-c-driver

sudo apk add libbson
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: mongo-c-driver
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Mongo C Driver
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libbson from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

libbson-dev 1.30.6-r0

Client library written in C for MongoDB (development files)

https://github.com/mongodb/mongo-c-driver

sudo apk add libbson-dev
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: mongo-c-driver
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Mongo C Driver
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libbson-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

libbson-static 1.30.6-r0

Client library written in C for MongoDB (static library)

https://github.com/mongodb/mongo-c-driver

sudo apk add libbson-static
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: mongo-c-driver
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Mongo C Driver
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libbson-static from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

mongo-c-driver 1.30.6-r0

Client library written in C for MongoDB

https://github.com/mongodb/mongo-c-driver

sudo apk add mongo-c-driver
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: mongo-c-driver
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Mongo C Driver
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: mongo-c-driver from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment