# Install dblab with Homebrew, MacPorts, Nix

Database client every command-line junkie deserves. Version 0.47.2 via Homebrew; verified 2026-07-29. Also installable with nix: nix profile install nixpkgs#dblab.

## Install

```sh
sudo av install brew:dblab
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install dblab
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install dblab
```

  Evidence: MacPorts ports tree: databases/dblab/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#dblab
```

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

## Package facts

- **Package key:** brew:dblab
- **Package manager:** Homebrew
- **Version:** 0.47.2
- **Source summary:** Database client every command-line junkie deserves
- **Homepage:** <https://dblab.app/>
- **Repository:** <https://github.com/danvergara/dblab>
- **Last updated:** 2026-07-29T20:52:31Z
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- dblab (alias)

## Install behavior

- Bottle: not available

## Freshness

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

dblab is a terminal UI database client written in Go for PostgreSQL, MySQL, SQLite, Oracle, and SQL Server. It packages the familiar database-client workflow into a single interactive command-line program with saved profiles and keyring-backed secret storage.

### Project history

The GitHub repository was created in March 2021, and the first v0.1.0 tag points to a May 2021 commit. The README describes the project as an attempt to build a simple, portable database UI that uses Go's ability to ship zero-dependency binaries for multiple platforms.

### Adoption history

dblab's adoption is tied to the rise of richer terminal applications: developers who already live in the shell can browse schemas and query databases without moving to a desktop SQL client. The upstream README documents Homebrew, binary releases, and an install/update script, while the documentation site links the project directly to its GitHub repository.

### How it is used

Users can start dblab interactively, pass connection flags, provide a connection URL, load .dblab.yaml configuration, or reuse saved profiles. Recent documentation describes passwords stored in the operating system keyring while non-secret profile data is written under $XDG_CONFIG_HOME.

### Why package nerds care

dblab matters to package users because it is a modern TUI database client with broad database support and a small operational footprint. It stands in the same package-manager mental shelf as lazygit-style terminal apps: one binary, cross-platform releases, and enough UI to avoid opening a heavyweight desktop client.

### Timeline

- 2021: Official GitHub repository was created.
- 2021: v0.1.0 tag appears in the official repository.
- 2024: README documents v0.18.0-era configuration format guidance and later SSL config support.
- Present: Official documentation is published at dblab.app.

### Related projects

- dblab is related to terminal UI tools and database clients such as psql, mysql clients, SQLite shells, and graphical SQL browsers, but it focuses on a unified interactive TUI across several database engines.

### Sources

- <https://github.com/danvergara/dblab>
- <https://raw.githubusercontent.com/danvergara/dblab/main/README.md>
- <https://api.github.com/repos/danvergara/dblab>
- <https://api.github.com/repos/danvergara/dblab/git/commits/bb1d76e8cf35fc2decc619c33a41ccad3cc7e53c>
- <https://dblab.app/>


## 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 - dblab: normalized package name match | nixpkgs package indexes: pkgs/by-name/db/dblab/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - dblab: normalized package name match | MacPorts ports tree: databases/dblab/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/dblab.yml](https://github.com/mxcl/pkgdb/blob/main/combined/dblab.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
