Automic VaultAutomic Vault

brew

使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, zypper, winget 安装 dtc

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install dtc

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install dtc

MacPorts ports tree · cross/dtc/Portfile · 来源: api.github.com

Linux

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

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

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

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

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

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

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

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

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

openSUSE Tumbleweed package metadata · dtc · 来源: download.opensuse.org

Windows

Windows Package Manager已验证 · 92%
winget install --id oss-winget.dtc -e

Windows Package Manager source index · oss-winget.dtc · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Device tree compiler

命令和别名

  • convert-dtsv0
  • dtc
  • dtdiff
  • fdtdump
  • fdtget
  • fdtoverlay
  • fdtput

历史

项目历史与用法

dtc is the Device Tree Compiler, the upstream toolchain for converting human-readable Devicetree Source files into binary Devicetree Blob files and back. It is a small command-line package, but it sits on a critical path for Linux, embedded boards, bootloaders, firmware descriptions, and hardware bring-up.

项目历史

The Linux kernel documentation explains the historical setting: Devicetree came from Open Firmware as a way for firmware to describe hardware to an operating system, long used on PowerPC and SPARC. In 2005, PowerPC Linux cleanup required DT support broadly, and the Flattened Device Tree format was created so bootloaders such as U-Boot and kexec could pass a binary blob to the kernel without requiring a full Open Firmware implementation.

dtc is the userspace compiler around that format. Its manual says the compiler takes a device tree in one format and emits another, typically compiling DTS source into DTB binary output, while also supporting filesystem-style input, assembly output, YAML intermediate output, libfdt, fdtdump, fdtget, fdtput, fdtoverlay, and related tools.

The upstream repository is maintained on git.kernel.org by the DTC group. The official manual names git.kernel.org as the source location and gives the HTTP(S) upstream repository URL, making it the authoritative repo rather than a package-manager mirror.

采用历史

dtc adoption follows Linux and embedded adoption rather than an application popularity curve. Whenever a board port, bootloader, firmware workflow, or kernel build needs DTS-to-DTB compilation or libfdt tools, dtc becomes part of the build or debugging environment.

Package-manager coverage is broad: the input package metadata records Alpine, Homebrew, Fedora/DNF, MacPorts, Nix, Arch/pacman, winget, and zypper packages. Homebrew analytics are much higher than the other packages in this batch, which fits dtc's role as infrastructure pulled in by embedded, kernel, and hardware workflows.

使用方式

The core command compiles between input formats such as `dts`, `dtb`, and filesystem representation, and output formats such as `dtb`, `dts`, assembly, and YAML. Common workflows include compiling board `.dts` files, decompiling `.dtb` blobs for inspection, generating overlays with symbol and fixup metadata, and using libfdt utilities in scripts.

The package has no user config file or credentials. It is a compiler/tool suite whose behavior is driven by command-line options and source files.

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

dtc is significant because it is one of those packages that looks small in a package list but represents an entire hardware-description ABI. If you build kernels, bootloaders, board support packages, or firmware images, `dtc` is often just there, quietly turning text descriptions into boot-time data.

For package nerds, it is also a reminder that not all important packages are user-facing applications. dtc is plumbing: versioned tarballs from kernel.org, a dual GPL/BSD license model, libfdt consumers, distro packaging, and an executable family that shows up anywhere embedded Linux work happens.

时间线

  • 2005: Linux kernel documentation describes Flattened Device Tree creation during PowerPC Linux cleanup.
  • 2006-01: The dtc refs page shows the `dwg-last` tag.
  • 2007-08: The dtc refs page shows v1.0.0.
  • 2011-05: The dtc refs page shows v1.3.0.
  • 2021-06: The dtc refs page shows v1.6.1.
  • 2026-05: The dtc refs page shows v1.8.1, packaged by Homebrew as the stable version.

Related projects

  • Linux Devicetree support is the main operating-system context for dtc.
  • U-Boot and kexec are named by the Linux kernel documentation as bootloaders or loaders modified to pass and modify DTB data.
  • libfdt is part of the dtc source tree and provides library access to Flattened Device Tree data.
  • Devicetree.org specifications are cited by the Linux kernel documentation as the format overview.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

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

建议审查

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
convert-dtsv0cli全局可执行文件
dtccli全局可执行文件
dtdiffcli全局可执行文件
fdtdumpcli全局可执行文件
fdtgetcli全局可执行文件
fdtoverlaycli全局可执行文件
fdtputcli全局可执行文件

新鲜度

版本和新鲜度

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

页面生成时间2026-07-25
管理器版本1.8.1
管理器更新时间2026-05-28
本地数据OK
上游not checked
检测到的最新版本未检测到

https://git.kernel.org/pub/scm/utils/dtc/dtc

安装元数据

软件包元数据

软件包键brew:dtc
版本1.8.1
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/dtc
主页https://git.kernel.org/pub/scm/utils/dtc/dtc.git
仓库https://git.kernel.org/pub/scm/utils/dtc/dtc.git
上游文档https://git.kernel.org/pub/scm/utils/dtc/dtc.git/tree/Documentation
许可证GPL-2.0-or-later OR BSD-2-Clause
源码归档https://mirrors.edge.kernel.org/pub/software/utils/dtc/dtc-1.8.1.tar.xz
最后更新2026-05-28T04:27:00Z
Pulseupdated
依赖libyaml
构建依赖meson, ninja, pkgconf
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

Nix95%

dtc

nix profile install nixpkgs#dtc
  • normalized package name match
  • 匹配方式:Dtc
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/dt/dtc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

dtc 1.7.2-r1

Device Tree Compiler

https://git.kernel.org/pub/scm/utils/dtc/dtc.git/

sudo apk add dtc
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: dtc
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Dtc
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: dtc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

dtc-dev 1.7.2-r1

Device Tree Compiler (development files)

https://git.kernel.org/pub/scm/utils/dtc/dtc.git/

sudo apk add dtc-dev
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: dtc
  • 1 依赖
  • normalized package name match
  • 匹配方式:Dtc
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: dtc-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

libfdt 1.7.2-r1

Device tree library

https://git.kernel.org/pub/scm/utils/dtc/dtc.git/

sudo apk add libfdt
  • License: GPL-2.0-or-later OR BSD-2-Clause
  • Architecture: x86_64
  • Source Package: dtc
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Dtc
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libfdt from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

py3-libfdt 1.7.2-r1

Device tree library for Python 3

https://git.kernel.org/pub/scm/utils/dtc/dtc.git/

sudo apk add py3-libfdt
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: dtc
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Dtc
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: py3-libfdt from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

py3-libfdt-pyc 1.7.2-r1

Precompiled Python bytecode for py3-libfdt

https://git.kernel.org/pub/scm/utils/dtc/dtc.git/

sudo apk add py3-libfdt-pyc
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: dtc
  • 1 依赖
  • normalized package name match
  • 匹配方式:Dtc
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: py3-libfdt-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

dtc 1.8.1-2.fc45

Device Tree Compiler

https://devicetree.org/

sudo dnf install dtc
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: dtc
  • 5 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Dtc
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: dtc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

libfdt 1.8.1-2.fc45

Device tree library

https://devicetree.org/

sudo dnf install libfdt
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: i686
  • Source Package: dtc
  • 2 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Dtc
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: libfdt from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

libfdt-devel 1.8.1-2.fc45

Development headers for device tree library

https://devicetree.org/

sudo dnf install libfdt-devel
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: i686
  • Source Package: dtc
  • 3 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Dtc
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: libfdt-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

libfdt-static 1.8.1-2.fc45

Static version of device tree library

https://devicetree.org/

sudo dnf install libfdt-static
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: i686
  • Source Package: dtc
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Dtc
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: libfdt-static from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

mingw32-libfdt 1.8.1-2.fc45

MinGW Device tree library

https://devicetree.org/

sudo dnf install mingw32-libfdt
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: dtc
  • 4 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Dtc
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: mingw32-libfdt from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

mingw32-libfdt-static 1.8.1-2.fc45

Static version of MinGW Device tree library

https://devicetree.org/

sudo dnf install mingw32-libfdt-static
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: dtc
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Dtc
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: mingw32-libfdt-static from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

mingw64-libfdt 1.8.1-2.fc45

MinGW Device tree library

https://devicetree.org/

sudo dnf install mingw64-libfdt
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: dtc
  • 4 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Dtc
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: mingw64-libfdt from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

mingw64-libfdt-static 1.8.1-2.fc45

Static version of MinGW Device tree library

https://devicetree.org/

sudo dnf install mingw64-libfdt-static
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: dtc
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Dtc
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: mingw64-libfdt-static from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

python3-libfdt 1.8.1-2.fc45

Python 3 bindings for device tree library

https://devicetree.org/

sudo dnf install python3-libfdt
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: dtc
  • 5 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Dtc
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: python3-libfdt from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

dtc 1:1.7.2-1

Device Tree Compiler

https://www.devicetree.org/

sudo pacman -S dtc
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • 3 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Dtc
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: dtc from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

来源线索

由仓库数据生成

此页面由 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 package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment