# 使用 Homebrew, MacPorts, Nix 安装 dblab

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dblab
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install dblab
```

  证据: 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
```

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

## 软件包事实

- **软件包键:** brew:dblab
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/dblab>
- **版本:** 0.47.2
- **来源摘要:** Database client every command-line junkie deserves
- **主页:** <https://dblab.app/>
- **仓库:** <https://github.com/danvergara/dblab>
- **上游文档:** <https://dblab.app/>
- **许可证:** MIT
- **源码归档:** <https://github.com/danvergara/dblab/archive/refs/tags/v0.47.2.tar.gz>
- **最后更新:** 2026-07-29T20:52:31Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- dblab (cli)
- dblab (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.47.2
- 管理器更新时间: 2026-07-29
- 本地数据: OK
- 上游仓库: https://github.com/danvergara/dblab
- 检测到的最新版本: v0.47.2 (当前)
## 项目历史与用法

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

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

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.

### 时间线

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

### 来源

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


## 安全说明

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

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

## 源数据库详情

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

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

- 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


## 相关链接

- [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.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [dbmate](https://pkg.so/zh-hans/brew/dbmate/) - Shares pkgdb curated category or tags: cli, database, developer-tools, mysql, postgresql.
- [pgcli](https://pkg.so/zh-hans/brew/pgcli/) - Shares pkgdb curated category or tags: cli, database, database-client, developer-tools, postgresql.
- [litecli](https://pkg.so/zh-hans/brew/litecli/) - Shares pkgdb curated category or tags: cli, database, database-client, developer-tools, sqlite.
- [libpq](https://pkg.so/zh-hans/brew/libpq/) - Shares pkgdb curated category or tags: cli, database, developer-tools, postgresql.
- [mongosh](https://pkg.so/zh-hans/brew/mongosh/) - Shares pkgdb curated category or tags: cli, database, database-client, developer-tools.
- [pgformatter](https://pkg.so/zh-hans/brew/pgformatter/) - Shares pkgdb curated category or tags: cli, database, developer-tools, postgresql.
- [sqlx-cli](https://pkg.so/zh-hans/brew/sqlx-cli/) - Shares pkgdb curated category or tags: cli, database, developer-tools, mysql, postgresql.
- [pgbouncer](https://pkg.so/zh-hans/brew/pgbouncer/) - Shares pkgdb curated category or tags: cli, database, developer-tools, postgresql.
- [harlequin](https://pkg.so/zh-hans/brew/harlequin/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, client, database, database-client, developer.

## Combined YAML source

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