How To Install dtc on Fedora 36

In this tutorial we learn how to install dtc in Fedora 36. dtc is Device Tree Compiler

Introduction

In this tutorial we learn how to install dtc on Fedora 36.

What is dtc

Devicetree is a data structure for describing hardware. Rather than hard coding every detail of a device into an operating system, many aspects of the hardware can be described in a data structure that is passed to the operating system at boot time. The devicetree is used by OpenFirmware, OpenPOWER Abstraction Layer (OPAL), Power Architecture Platform Requirements (PAPR) and in the standalone Flattened Device Tree (FDT) form.

We can use yum or dnf to install dtc on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install dtc.

Install dtc on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install dtc using dnf by running the following command:

sudo dnf -y install dtc

Install dtc on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install dtc using yum by running the following command:

sudo yum -y install dtc

How To Uninstall dtc on Fedora 36

To uninstall only the dtc package we can use the following command:

sudo dnf remove dtc

dtc Package Contents on Fedora 36

/usr/bin/convert-dtsv0
/usr/bin/dtc
/usr/bin/dtdiff
/usr/bin/fdtdump
/usr/bin/fdtget
/usr/bin/fdtoverlay
/usr/bin/fdtput
/usr/lib/.build-id
/usr/lib/.build-id/7a
/usr/lib/.build-id/7a/3de4e21bf7cb94750fcb550f184cef48e83426
/usr/lib/.build-id/bd
/usr/lib/.build-id/bd/39e31badf5e6d584d987b83bfdda705e927f31
/usr/lib/.build-id/c1
/usr/lib/.build-id/c1/7268eb30b4b89bef0631eee10c17039689ef5b
/usr/lib/.build-id/d7
/usr/lib/.build-id/d7/56166e32b13b3197fd05e7ac1419bcbdc8e11b
/usr/lib/.build-id/da
/usr/lib/.build-id/da/ee23d194195dabff894c278a317c981ac4fc1a
/usr/lib/.build-id/f3
/usr/lib/.build-id/f3/771a25a3bcc04570a77e77293b428738bd1902
/usr/share/doc/dtc
/usr/share/doc/dtc/manual.txt
/usr/share/licenses/dtc
/usr/share/licenses/dtc/GPL

References

Summary

In this tutorial we learn how to install dtc on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).