# berkeley-db を Homebrew でインストール

berkeley-db のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:berkeley-db
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install berkeley-db
```

  証拠: local Homebrew formula metadata

## パッケージ情報

- **パッケージキー:** brew:berkeley-db
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/berkeley-db>
- **バージョン:** 18.1.40
- **ソース概要:** High performance key/value database
- **ホームページ:** <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/db-18.1.40.tar.gz>
- **最終更新:** 2026-07-21T18:35:11-04:00
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- db_archive (cli)
- db_checkpoint (cli)
- db_convert (cli)
- db_deadlock (cli)
- db_dump (cli)
- db_hotbackup (cli)
- db_load (cli)
- db_log_verify (cli)
- db_printlog (cli)
- db_recover (cli)
- db_replicate (cli)
- db_stat (cli)
- db_tuner (cli)
- db_upgrade (cli)
- db_verify (cli)
- db_archive (エイリアス)
- db_checkpoint (エイリアス)
- db_convert (エイリアス)
- db_deadlock (エイリアス)
- db_dump (エイリアス)
- db_hotbackup (エイリアス)
- db_load (エイリアス)
- db_log_verify (エイリアス)
- db_printlog (エイリアス)
- db_recover (エイリアス)
- db_replicate (エイリアス)
- db_stat (エイリアス)
- db_tuner (エイリアス)
- db_upgrade (エイリアス)
- db_verify (エイリアス)

## 依存関係

- openssl@3

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 18.1.40
- マネージャ更新日: 2026-07-21
- ローカルデータ: OK
- 上流リポジトリ: https://www.oracle.com/database/technologies/related/berkeleydb.html
- 情報: Release/tag comparison is only available for GitHub repositories.
## プロジェクトの歴史と使われ方

Berkeley DB is the classic embedded key/value database library lineage now distributed by Oracle. For package-manager users it is less a standalone server than a C library plus administrative utilities whose major version, license, and on-disk compatibility can matter to many dependent packages.

### プロジェクトの歴史

Berkeley DB originated in the BSD Unix world and became a general embedded database library under Sleepycat Software. Oracle acquired Sleepycat in 2006, and Oracle's current Berkeley DB pages and documentation now present the product as Oracle Berkeley DB.

The Homebrew berkeley-db package represents the current Oracle Berkeley DB line, with docs for the 18.1 series. It exposes command-line maintenance tools such as db_archive, db_checkpoint, db_dump, db_load, db_recover, db_upgrade, and db_verify in addition to the library API.

### 採用の歴史

Berkeley DB's adoption pattern was unusual: many users never chose it directly, but installed it because another package embedded it for local indexes, metadata stores, mail/news databases, directory services, package metadata, or application state.

That indirect adoption made the package-manager story important. Distributions historically carried multiple db, db4, db5, and berkeley-db variants because applications could be tied to a specific ABI or database file format.

### 使われ方

Developers link Berkeley DB into an application rather than run a database daemon. Runtime state lives in application-controlled database environments, where DB_CONFIG can tune caches, logging, locking, transactions, replication, and recovery behavior.

The bundled tools are operationally important: they let maintainers dump and reload databases, recover environments, inspect logs and statistics, verify files, and upgrade database formats when moving across versions.

### パッケージ好きにとっての重要性

Berkeley DB is package-nerd canon because it is tiny in concept but huge in dependency consequences. A formula upgrade can affect ABI compatibility, license acceptability, and whether old database files can be opened.

The current brew:berkeley-db and versioned brew:berkeley-db@5 relationship is exactly the sort of thing package historians care about: the unversioned formula tracks the modern Oracle line, while @5 keeps an older major line alive for dependents that cannot simply follow the latest library.

### タイムライン

- 1990s: Berkeley DB grew out of BSD database code and became Sleepycat Software's embedded database product.
- 2006: Oracle acquired Sleepycat Software, bringing Berkeley DB under Oracle.
- 2011: Berkeley DB 5.3 documentation was published for the 11g Release 2 generation.
- 2018: Oracle Berkeley DB 18.1 documentation represents the later Oracle version-numbering line used by the unversioned berkeley-db package.

### Related projects

- brew:berkeley-db@5 is the versioned Homebrew formula for the older Berkeley DB 5 line.
- SQLite is a related embedded database alternative, but with a relational SQL model rather than Berkeley DB's key/value API.
- LMDB is a related embedded key/value store often discussed in the same package and storage-engine context.

### ソース

- <https://docs.oracle.com/cd/E17076_02/html/programmer_reference/index.html>
- <https://docs.oracle.com/database/bdb181/html/index.html>
- <https://www.oracle.com/corporate/pressrelease/oracle-buys-sleepycat-021406.html>
- <https://www.oracle.com/database/technologies/related/berkeleydb.html>


## セキュリティノート

broad file, network, media, or database tool signal. generalized runtime or code generation signal.

- **Geiger リスク:** yellow / 中
- broad file, network, media, or database tool signal
- generalized runtime or code generation signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: <database-environment-home>/DB_CONFIG
- Windows: <database-environment-home>\DB_CONFIG
## ソースデータベース詳細

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


## 関連リンク

- [Secret-risk packages](https://pkg.so/ja/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://pkg.so/ja/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [openssl@3](https://pkg.so/ja/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [gnucobol](https://pkg.so/ja/brew/gnucobol/) - Popular package that depends on this formula.
- [libpinyin](https://pkg.so/ja/brew/libpinyin/) - Popular package that depends on this formula.
- [dbxml](https://pkg.so/ja/brew/dbxml/) - Popular package that depends on this formula.
- [lmdb](https://pkg.so/ja/brew/lmdb/) - Shares pkgdb curated category or tags: cli, data, database, embedded-database, key-value-store.
- [tdb](https://pkg.so/ja/brew/tdb/) - Shares pkgdb curated category or tags: cli, data, database, embedded-database, key-value-store.
- [rocksdb](https://pkg.so/ja/brew/rocksdb/) - Shares pkgdb curated category or tags: cli, data, database, embedded-database, key-value-store.
- [tokyo-cabinet](https://pkg.so/ja/brew/tokyo-cabinet/) - Shares pkgdb curated category or tags: cli, data, database, embedded-database, key-value-store.
- [tkrzw](https://pkg.so/ja/brew/tkrzw/) - Shares pkgdb curated category or tags: cli, data, database, embedded-database, key-value-store.
- [sparkey](https://pkg.so/ja/brew/sparkey/) - Shares pkgdb curated category or tags: cli, data, embedded-database, key-value-store, storage.
- [sqlite](https://pkg.so/ja/brew/sqlite/) - Shares pkgdb curated category or tags: cli, data, database, embedded-database.
- [redis](https://pkg.so/ja/brew/redis/) - Shares pkgdb curated category or tags: cli, data, database, key-value-store.

## Combined YAML source

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


## ソース

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
