# 使用 Homebrew, Nix 安装 dbxml

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

## 安装

```sh
sudo av install brew:dbxml
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dbxml
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#dbxml
```

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

## 软件包事实

- **软件包键:** brew:dbxml
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/dbxml>
- **版本:** 6.1.4
- **来源摘要:** Embeddable XML database with XQuery support and other advanced features
- **主页:** <https://www.oracle.com/database/technologies/related/berkeleydb.html>
- **上游文档:** <https://www.oracle.com/database/technologies/related/berkeleydb.html>
- **许可证:** AGPL-3.0-only
- **源码归档:** <https://download.oracle.com/berkeley-db/dbxml-6.1.4.tar.gz>
- **最后更新:** 2026-07-10T19:03:06-04:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- dbxml (cli)
- dbxml_dump (cli)
- dbxml_load (cli)
- dbxml_load_container (cli)
- dbxml (别名)
- dbxml_dump (别名)
- dbxml_load (别名)
- dbxml_load_container (别名)

## 依赖

- berkeley-db
- xerces-c
- xqilla

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 6.1.4
- 管理器更新时间: 2026-07-10
- 本地数据: OK
- 上游仓库: https://www.oracle.com/database/technologies/related/berkeleydb.html
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

Berkeley DB XML is Oracle's embeddable XML database product for applications that wanted native XML storage, indexing, and XQuery without running a separate database server. In package terms it sits at the intersection of Berkeley DB, XML databases, and local command-line database tooling.

### 项目历史

The project grew out of the Berkeley DB family after native XML databases became a practical answer to document-centric data. Oracle's Programmer's Reference Guide describes Berkeley DB XML as a C++ library built around Berkeley DB storage and XML/XQuery components, with documentation for Unix, Windows, language APIs, upgrades, and the dbxml command-line shell.

Its long manual history is visible in Oracle's upgrade and changelog sections, which cover the 1.2 line, the 2.0 through 2.5 series, and 6.0.x releases. The product's technical story is not only file storage: it was about storing XML documents in containers, indexing nodes and metadata, and running XQuery directly against those containers.

### 采用历史

Berkeley DB XML belongs to the embedded-database tradition rather than the client/server database tradition. Oracle's FAQ lists C++, Java, Perl, PHP, Python, and Tcl interfaces, so adoption was mostly through applications that linked the library or scripted it locally, not through users connecting to a network daemon.

The product is also a period marker for the 2000s XML-database wave. It appealed to applications with non-tabular, frequently changing, document-shaped data, where an XML repository reduced the mismatch between the application model and relational tables.

### 使用方式

Typical use is to create Berkeley DB XML containers, insert XML documents, define indexes, and query them with XQuery or XPath-style expressions. The Homebrew package exposes the dbxml shell and dump/load utilities, which makes it useful for local inspection, export/import, and small reproducible database experiments.

The FAQ emphasizes operational concerns familiar to embedded-database users: large documents, node storage containers, explicit resource cleanup in Java bindings, thread-sharing rules for manager/container/query objects, and careful configuration of validation and external access.

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

dbxml is a preserved slice of database packaging history: an embeddable XML database installed as libraries plus command-line utilities. It is interesting precisely because it is neither a modern document service nor a plain key-value store; it packages a whole native-XML data-management worldview into a local Unix toolchain.

### 时间线

- 1.2 era: Oracle's guide records Berkeley DB XML 1.2.0 and 1.2.1 changelog sections.
- 2.x era: Upgrade notes cover 2.0, 2.1, 2.2, 2.3, 2.4, and 2.5 transitions.
- 2015: Oracle's Berkeley DB XML Programmer's Reference Guide for library version 12.1.6.0 is dated July 10, 2015.
- 6.0 era: Oracle's documentation includes 6.0.17 and 6.0.18 changelog sections.

### Related projects

- Berkeley DB XML is closely tied to Berkeley DB, XQilla, Xerces-C, and the language bindings documented by Oracle for C++, Java, Perl, PHP, Python, and Tcl.

### 来源

- <https://docs.oracle.com/cd/E17276_01/html/programmer_reference_xml/index.html>
- <https://www.oracle.com/database/technologies/berkeleydb-xml-faq.html>


## 安全说明

broad file, network, media, or database tool signal. infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- broad file, network, media, or database tool signal
- infrastructure mutation or orchestration signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** dbxml
- **Version Scheme:** 0
- **Revision:** 4
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** yes
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- Nix - dbxml: normalized package name match | nixpkgs package indexes: pkgs/by-name/db/dbxml/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [xerces-c](https://pkg.so/zh-hans/brew/xerces-c/) - Runtime dependency declared by Homebrew.
- [berkeley-db](https://pkg.so/zh-hans/brew/berkeley-db/) - Runtime dependency declared by Homebrew.
- [xqilla](https://pkg.so/zh-hans/brew/xqilla/) - Runtime dependency declared by Homebrew.
- [basex](https://pkg.so/zh-hans/brew/basex/) - Shares pkgdb curated category or tags: cli, data, database, xml, xquery.
- [sqlite](https://pkg.so/zh-hans/brew/sqlite/) - Shares pkgdb curated category or tags: cli, data, database, embedded-database.
- [gdbm](https://pkg.so/zh-hans/brew/gdbm/) - Shares pkgdb curated category or tags: cli, data, database, embedded-database.
- [lmdb](https://pkg.so/zh-hans/brew/lmdb/) - Shares pkgdb curated category or tags: cli, data, database, embedded-database.
- [tdb](https://pkg.so/zh-hans/brew/tdb/) - Shares pkgdb curated category or tags: cli, data, database, embedded-database.
- [rocksdb](https://pkg.so/zh-hans/brew/rocksdb/) - Shares pkgdb curated category or tags: cli, data, database, embedded-database.
- [tokyo-cabinet](https://pkg.so/zh-hans/brew/tokyo-cabinet/) - Shares pkgdb curated category or tags: cli, data, database, embedded-database.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
