macOS
brew install dublocal Homebrew formula metadata
安装
brew install dublocal Homebrew formula metadata
sudo apk add dubAlpine Linux edge package indexes · dub · 来源: dl-cdn.alpinelinux.org
sudo dnf install dubFedora Rawhide package metadata · dub · 来源: dl.fedoraproject.org
nix profile install nixpkgs#dubnixpkgs package indexes · pkgs/by-name/du/dub/package.nix · 来源: api.github.com
sudo pacman -S dubArch Linux sync databases · dub · 来源: geo.mirror.pkgbuild.com
sudo zypper install dubopenSUSE Tumbleweed package metadata · dub · 来源: download.opensuse.org
概览
Build tool for D projects
历史
DUB is the package and build manager that gave the D language ecosystem a conventional registry-plus-build-tool workflow. It matters because it made reusable D libraries installable and buildable through a shared package description instead of scattered project-specific build scripts.
The project describes itself as a package and build manager for D applications and libraries, with a central package registry at code.dlang.org. Its README says DUB emerged as a more general replacement for the package manager originally associated with vibe.d, then expanded from dependency management into building projects and generating IDE project files.
DUB's design center was deliberately small: a short dub.json or later package file, source in a conventional directory, and automatic dependency downloads during builds. That placed it in the same cultural slot as Cargo, npm, or Bundler, but tailored to D's compiler ecosystem and common D project layouts.
DUB became the normal packaging path for public D libraries because the official registry, documentation, and compiler-facing workflow all point through it. The README records broad packaging support over time, including Homebrew, MacPorts, Chocolatey, Debian/Ubuntu, Arch, Alpine, FreeBSD, and OpenBSD.
Its adoption is also tied to IDE and editor integration. The project documentation notes VisualD project generation and Mono-D support for dub.json, which helped make DUB package metadata double as development-environment metadata.
D developers use DUB to create packages, resolve dependencies, build executables and libraries, run tests, and publish packages to the D package registry. The common workflow is intentionally root-directory based: run dub from a package directory and let the package file describe dependencies and build settings.
DUB also has package-nerd value as an example of a language ecosystem build tool that grew out of a framework-specific need, then became the ecosystem-level package manager.
For package database work, DUB is a high-signal package because it is both a CLI and an ecosystem primitive: the executable is a developer tool, while the project also defines package metadata conventions for the D community.
It is historically interesting because it sits between older makefile-centric compiled-language workflows and newer language-native package managers. DUB made D packages discoverable through a central registry while still respecting multiple D compilers such as DMD, GDC, and LDC.
安全态势
generalized runtime or code generation signal.
yellow 风险 · 中 置信度 · runtime
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
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.
Config paths the tool may read or write during local use.
/var/lib/dub/settings.json<dub executable folder>/../etc/dub/settings.json/etc/dub/settings.json$DUB_HOME/settings.json$ROOT_PACKAGE_DIR/dub.settings.json%ProgramData%\dub\settings.json<dub executable folder>\..\etc\dub\settings.json%DUB_HOME%\settings.json%ROOT_PACKAGE_DIR%\dub.settings.json可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
dub | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:dub |
|---|---|
| 版本 | 1.41.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/dub |
| 主页 | https://code.dlang.org/getting_started |
| 仓库 | https://github.com/dlang/dub |
| 上游文档 | https://dub.pm/ |
| 许可证 | MIT |
| 源码归档 | https://github.com/dlang/dub/archive/refs/tags/v1.41.0.tar.gz |
| 最后更新 | 2026-06-22T14:03:12-07:00 |
| Pulse | updated |
| 依赖 | pkgconf |
| 构建依赖 | ldc |
| macOS 提供的库 | curl |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | dub |
| Version Scheme | 1 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
dub 1.40.0-1
Package and build management system for D
sudo apt install dubdub
nix profile install nixpkgs#dubdub 1.36.0-1ubuntu2
Package and build management system for D
sudo apt install dubdub 1.41.0-r2
Package and build management system for D
sudo apk add dubdub-doc 1.41.0-r2
Package and build management system for D (documentation)
sudo apk add dub-docdub-zsh-completion 1.41.0-r2
Zsh completions for dub
sudo apk add dub-zsh-completiondub 1.41.0-1.fc45
Package and build management system for D
sudo dnf install dubdub 1.41.0-1
Developer package manager for D programming language
sudo pacman -S dubdub 1.41.0-1.4
Package manager and meta build tool for the D programming language
sudo zypper install dubdub
sudo port install dub来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.