Automic VaultAutomic Vault

brew

使用 Homebrew, apk, dnf, MacPorts, pacman, apt, zypper 安装 mongo-c-driver

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install mongo-c-driver

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install mongo-c-driver

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

Linux

Alpine Linux apk已验证 · 92%
sudo apk add mongo-c-driver

Alpine Linux edge package indexes · mongo-c-driver · 来源: dl-cdn.alpinelinux.org

Fedora dnf已验证 · 92%
sudo dnf install mongo-c-driver

Fedora Rawhide package metadata · mongo-c-driver · 来源: dl.fedoraproject.org

Arch Linux pacman已验证 · 92%
sudo pacman -S mongo-c-driver

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

Debian apt已验证 · 92%
sudo apt install libbson-1.0-0t64

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

openSUSE zypper已验证 · 92%
sudo zypper install bson-devel

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

概览

软件包摘要

C driver for MongoDB

命令和别名

  • mongoc2-stat

历史

项目历史与用法

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.

项目历史

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.

采用历史

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.

使用方式

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.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 2 个运行时依赖。
  • 构建元数据列出 3 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
mongoc2-statcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本2.3.2
管理器更新时间2026-07-07
本地数据OK
上游当前
检测到的最新版本2.3.2

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

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:mongo-c-driver
版本2.3.2
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/mongo-c-driver
主页https://github.com/mongodb/mongo-c-driver
仓库https://github.com/mongodb/mongo-c-driver
上游文档https://www.mongoc.org/
许可证Apache-2.0
源码归档https://github.com/mongodb/mongo-c-driver/archive/refs/tags/2.3.2.tar.gz
最后更新2026-07-07T16:38:47Z
Pulseupdated
依赖openssl@3, zstd
构建依赖cmake, pkgconf, sphinx-doc
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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