# 使用 Homebrew, apk, Nix, pacman, zypper 安装 db-vcs

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install db-vcs
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add db
```

  证据: Alpine Linux edge package indexes: db from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#db
```

  证据: nixpkgs package indexes: db from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S db
```

  证据: Arch Linux sync databases: db from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz

- zypper (92%):

```sh
sudo zypper install libdb-4_8
```

  证据: openSUSE Tumbleweed package metadata: libdb-4_8 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:db-vcs
- **软件包管理器:** Homebrew
- **版本:** 1.1
- **来源摘要:** Version control for MySQL databases
- **主页:** <https://github.com/infostreams/db>
- **仓库:** <https://github.com/infostreams/db>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- db (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.1
## 项目历史与用法

db-vcs is a small command-line tool for saving, restoring, and archiving MySQL database snapshots in a project-local repository. It treats database dumps as artifacts that can be named, loaded, exported, and inspected from the shell.

### 项目历史

The GitHub repository was created in April 2019 and the README frames the tool as MySQL-only for now, with extension points for other database systems left as a possibility. Its first public tags, 1.0 and 1.1, are visible in the official repository tag list.

### 采用历史

The upstream README documents Homebrew as the macOS installation path and direct cloning for Linux and other systems. That pattern points to a niche developer-tool audience: people who want a lightweight snapshot workflow around migrations and environment refreshes rather than a full migration framework.

### 使用方式

A typical db-vcs workflow starts with db init, which creates a .db repository in the project root and records connection details. Users then run commands such as db save, db load, db export, db import, db structure, and db log to move database dumps through development, staging, and local recovery scenarios.

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

The package is notable as a Unixy database helper: it wraps mysqldump-style operations in a project repository model, leaves credentials in a predictable ignored file, and exposes everything as simple subcommands. It appeals to package users who prefer shell tools and visible files over a service-backed database workflow.

### 时间线

- 2019: Official GitHub repository was created.
- 2019: Tag 1.0 appears in the official repository.
- 2019: Tag 1.1 appears in the official repository.

### Related projects

- db-vcs overlaps with database migration and dump tools, but its README positions it around snapshots, restores, imports, exports, and repository-style history rather than schema-only migration management.

### 来源

- <https://github.com/infostreams/db>
- <https://raw.githubusercontent.com/infostreams/db/master/readme.md>
- <https://api.github.com/repos/infostreams/db>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

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

- Nix - db: installed executable or alias match | nixpkgs package indexes: db from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- apk - db - 5.3.28-r7: installed executable or alias match | Alpine Linux edge package indexes: db from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | The Berkeley DB embedded database system | https://www.oracle.com/technology/software/products/berkeley-db/index.html
- apk - db-c++ - 5.3.28-r7: installed executable or alias match | Alpine Linux edge package indexes: db-c++ from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | C++ binding for libdb | https://www.oracle.com/technology/software/products/berkeley-db/index.html
- apk - db-dev - 5.3.28-r7: installed executable or alias match | Alpine Linux edge package indexes: db-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | The Berkeley DB embedded database system (development files) | https://www.oracle.com/technology/software/products/berkeley-db/index.html
- apk - db-doc - 5.3.28-r7: installed executable or alias match | Alpine Linux edge package indexes: db-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | The Berkeley DB embedded database system (documentation) | https://www.oracle.com/technology/software/products/berkeley-db/index.html
- apk - db-utils - 5.3.28-r7: installed executable or alias match | Alpine Linux edge package indexes: db-utils from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Utils for The Berkeley DB embedded database system | https://www.oracle.com/technology/software/products/berkeley-db/index.html
- pacman - db - 6.2.32-4: installed executable or alias match | Arch Linux sync databases: db from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz | The Berkeley DB embedded database system | https://www.oracle.com/technology/software/products/berkeley-db/index.html
- zypper - libdb-4_8 - 4.8.30-48.3: installed executable or alias match | openSUSE Tumbleweed package metadata: libdb-4_8 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Berkeley DB Database Library Version 4.8 | https://oracle.com/technetwork/products/berkeleydb/


## Combined YAML source

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


## 来源

- 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
