Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 dub

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install dub

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install dub

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

Linux

Alpine Linux apk已验证 · 92%
sudo apk add dub

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

Debian apt已验证 · 92%
sudo apt install dub

Debian stable package indexes · dub · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install dub

Fedora Rawhide package metadata · dub · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#dub

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

Arch Linux pacman已验证 · 92%
sudo pacman -S dub

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

openSUSE zypper已验证 · 92%
sudo zypper install dub

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

时间线

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

安全态势

风险级别:yellow

generalized runtime or code generation signal.

风险分类器

yellow 风险 · 中 置信度 · runtime

原因

  • generalized runtime or code generation signal

信号

  • text:build tool

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 1 个运行时依赖。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
dubcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本1.41.0
管理器更新时间2026-06-22
本地数据OK
上游当前
检测到的最新版本v1.41.0

https://github.com/dlang/dub

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键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
Pulseupdated
依赖pkgconf
构建依赖ldc
macOS 提供的库curl
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

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 依赖
  • 2 可选依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • 2 可选依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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