macOS
brew install dublocal Homebrew formula metadata
sudo port install dubMacPorts ports tree · devel/dub/Portfile · source: api.github.com
brew
Build tool for D projects. Version 1.41.0 via Homebrew; verified 2026-06-22.
install
brew install dublocal Homebrew formula metadata
sudo port install dubMacPorts ports tree · devel/dub/Portfile · source: api.github.com
sudo apk add dubAlpine Linux edge package indexes · dub · source: dl-cdn.alpinelinux.org
sudo apt install dubDebian stable package indexes · dub · source: deb.debian.org
sudo dnf install dubFedora Rawhide package metadata · dub · source: dl.fedoraproject.org
nix profile install nixpkgs#dubnixpkgs package indexes · pkgs/by-name/du/dub/package.nix · source: api.github.com
sudo pacman -S dubArch Linux sync databases · dub · source: geo.mirror.pkgbuild.com
sudo zypper install dubopenSUSE Tumbleweed package metadata · dub · source: download.opensuse.org
overview
Build tool for D projects
history
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.
security posture
generalized runtime or code generation signal.
yellow risk · medium confidence · runtime
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
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.jsonexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
dub | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:dub |
|---|---|
| Version | 1.41.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/dub |
| Homepage | https://code.dlang.org/getting_started |
| Repository | https://github.com/dlang/dub |
| Upstream docs | https://dub.pm/ |
| License | MIT |
| Source archive | https://github.com/dlang/dub/archive/refs/tags/v1.41.0.tar.gz |
| Last updated | 2026-06-22T14:03:12-07:00 |
| Pulse | updated |
| Dependencies | pkgconf |
| Build dependencies | ldc |
| Uses from macOS | curl |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
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 dubsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.