# Install db-vcs with Homebrew, apk, Nix, pacman, zypper

Version control for MySQL databases. Version 1.1 via Homebrew; verified from local package data. Also installable with nix: nix profile install nixpkgs#db.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

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

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add db
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:db-vcs
- **Package manager:** Homebrew
- **Version:** 1.1
- **Source summary:** Version control for MySQL databases
- **Homepage:** <https://github.com/infostreams/db>
- **Repository:** <https://github.com/infostreams/db>
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- db (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 1.1
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

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


## Security Notes

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

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Other Package-Manager Records

- 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)


## Sources

- 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
