macOS
brew install dtclocal Homebrew formula metadata
安装
brew install dtclocal Homebrew formula metadata
sudo apk add dtcAlpine Linux edge package indexes · dtc · 来源: dl-cdn.alpinelinux.org
sudo dnf install dtcFedora Rawhide package metadata · dtc · 来源: dl.fedoraproject.org
nix profile install nixpkgs#dtcnixpkgs package indexes · pkgs/by-name/dt/dtc/package.nix · 来源: api.github.com
sudo pacman -S dtcArch Linux sync databases · dtc · 来源: geo.mirror.pkgbuild.com
sudo zypper install dtcopenSUSE Tumbleweed package metadata · dtc · 来源: download.opensuse.org
winget install --id oss-winget.dtc -eWindows Package Manager source index · oss-winget.dtc · 来源: cdn.winget.microsoft.com
概览
Device tree compiler
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
convert-dtsv0 | cli | 全局可执行文件 | |
dtc | cli | 全局可执行文件 | |
dtdiff | cli | 全局可执行文件 | |
fdtdump | cli | 全局可执行文件 | |
fdtget | cli | 全局可执行文件 | |
fdtoverlay | cli | 全局可执行文件 | |
fdtput | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
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 |
| Pulse | updated |
| 依赖 | libyaml |
| 构建依赖 | meson, ninja, pkgconf |
| 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 | dtc |
| Version Scheme | 0 |
| 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 软件包链接分开显示。
dtc
nix profile install nixpkgs#dtcdtc 1.7.2-r1
Device Tree Compiler
https://git.kernel.org/pub/scm/utils/dtc/dtc.git/
sudo apk add dtcdtc-dev 1.7.2-r1
Device Tree Compiler (development files)
https://git.kernel.org/pub/scm/utils/dtc/dtc.git/
sudo apk add dtc-devlibfdt 1.7.2-r1
Device tree library
https://git.kernel.org/pub/scm/utils/dtc/dtc.git/
sudo apk add libfdtpy3-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-libfdtpy3-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-pycdtc 1.8.1-2.fc45
Device Tree Compiler
sudo dnf install dtclibfdt 1.8.1-2.fc45
Device tree library
sudo dnf install libfdtlibfdt-devel 1.8.1-2.fc45
Development headers for device tree library
sudo dnf install libfdt-devellibfdt-static 1.8.1-2.fc45
Static version of device tree library
sudo dnf install libfdt-staticmingw32-libfdt 1.8.1-2.fc45
MinGW Device tree library
sudo dnf install mingw32-libfdtmingw32-libfdt-static 1.8.1-2.fc45
Static version of MinGW Device tree library
sudo dnf install mingw32-libfdt-staticmingw64-libfdt 1.8.1-2.fc45
MinGW Device tree library
sudo dnf install mingw64-libfdtmingw64-libfdt-static 1.8.1-2.fc45
Static version of MinGW Device tree library
sudo dnf install mingw64-libfdt-staticpython3-libfdt 1.8.1-2.fc45
Python 3 bindings for device tree library
sudo dnf install python3-libfdtdtc 1:1.7.2-1
Device Tree Compiler
sudo pacman -S dtc来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.