Automic VaultAutomic Vault

brew

Install dub with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Build tool for D projects. Version 1.41.0 via Homebrew; verified 2026-06-22.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install dub

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install dub

MacPorts ports tree · devel/dub/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add dub

Alpine Linux edge package indexes · dub · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install dub

Debian stable package indexes · dub · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install dub

Fedora Rawhide package metadata · dub · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#dub

nixpkgs package indexes · pkgs/by-name/du/dub/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S dub

Arch Linux sync databases · dub · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install dub

openSUSE Tumbleweed package metadata · dub · source: download.opensuse.org

overview

Package summary

Build tool for D projects

Commands and aliases

  • dub

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 2010s: DUB emerges from vibe.d's package-manager needs and generalizes into a package and build manager for D.
  • 2010s: code.dlang.org becomes the central DUB package registry.
  • 2017: DUB 1.5 and 1.6 releases appear in the GitHub release history.
  • 2020s: DUB remains the documented D package/build workflow and is packaged by mainstream OS package managers.

Related projects

  • vibe.d is central to DUB's origin story because DUB's README names it as the package manager that DUB generalized beyond.
  • code.dlang.org is the registry side of the DUB ecosystem; VisualD and Mono-D are related development tools that consumed DUB package metadata.

security posture

Risk level: yellow

generalized runtime or code generation signal.

Risk classifier

yellow risk · medium confidence · runtime

Why

  • generalized runtime or code generation signal

Signals

  • text:build tool

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 1 runtime dependencies.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
/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
Windows
%ProgramData%\dub\settings.json<dub executable folder>\..\etc\dub\settings.json%DUB_HOME%\settings.json%ROOT_PACKAGE_DIR%\dub.settings.json

executables

Installed executables

CommandKindExposureNote
dubcliglobal executable

freshness

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

page generated2026-07-08
manager version1.41.0
manager updated2026-06-22
local dataok
upstreamcurrent
latest detectedv1.41.0

https://github.com/dlang/dub

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:dub
Version1.41.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/dub
Homepagehttps://code.dlang.org/getting_started
Repositoryhttps://github.com/dlang/dub
Upstream docshttps://dub.pm/
LicenseMIT
Source archivehttps://github.com/dlang/dub/archive/refs/tags/v1.41.0.tar.gz
Last updated2026-06-22T14:03:12-07:00
Pulseupdated
Dependenciespkgconf
Build dependenciesldc
Uses from macOScurl
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namedub
Version Scheme1
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

dub 1.40.0-1

Package and build management system for D

https://code.dlang.org/

sudo apt install dub
  • Section: devel
  • Architecture: amd64
  • 6 dependencies
  • 2 optional deps
  • normalized package name match
  • Matched by: Dub
Debian stable package indexes · deb.debian.org · Debian stable package indexes: dub from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

dub

nix profile install nixpkgs#dub
  • normalized package name match
  • Matched by: Dub
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/du/dub/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

dub 1.36.0-1ubuntu2

Package and build management system for D

https://code.dlang.org/

sudo apt install dub
  • Section: universe/devel
  • Architecture: amd64
  • 6 dependencies
  • 2 optional deps
  • normalized package name match
  • Matched by: Dub
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: dub from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

dub 1.41.0-r2

Package and build management system for D

https://code.dlang.org/

sudo apk add dub
  • License: MIT
  • Architecture: x86_64
  • Source Package: dub
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Dub
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: dub from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

dub-doc 1.41.0-r2

Package and build management system for D (documentation)

https://code.dlang.org/

sudo apk add dub-doc
  • License: MIT
  • Architecture: x86_64
  • Source Package: dub
  • normalized package name match
  • Matched by: Dub
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: dub-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

dub-zsh-completion 1.41.0-r2

Zsh completions for dub

https://code.dlang.org/

sudo apk add dub-zsh-completion
  • License: MIT
  • Architecture: x86_64
  • Source Package: dub
  • normalized package name match
  • Matched by: Dub
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: dub-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

dub 1.41.0-1.fc45

Package and build management system for D

https://github.com/dlang/dub

sudo dnf install dub
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: dub
  • 8 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Dub
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: dub from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

dub 1.41.0-1

Developer package manager for D programming language

https://github.com/dlang/dub

sudo pacman -S dub
  • License: MIT
  • Architecture: x86_64
  • 1 dependencies
  • normalized package name match
  • Matched by: Dub
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: dub from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

dub 1.41.0-1.4

Package manager and meta build tool for the D programming language

https://code.dlang.org

sudo zypper install dub
  • License: MIT
  • Category: Development/Languages/Other
  • Architecture: x86_64
  • Source Package: dub
  • 4 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Dub
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: dub from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

dub

sudo port install dub
  • normalized package name match
  • Matched by: Dub
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/dub/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment