How To Install dtc on Fedora 34

dtc is Device Tree Compiler

Introduction

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

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 34. In this tutorial we discuss both methods but you only need to choose one of method to install dtc.

Install dtc on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install dtc

Install dtc on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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 34

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

sudo dnf remove dtc

dtc Package Contents on Fedora 34

/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/03
/usr/lib/.build-id/03/6f597134dac86cc12a15ccf395700b65901b0c
/usr/lib/.build-id/13
/usr/lib/.build-id/13/682fdad775ebe23190b8e311745b3ddd3f109f
/usr/lib/.build-id/1f
/usr/lib/.build-id/1f/f85371dc81c0320b88338d07af4cc0f167e173
/usr/lib/.build-id/47
/usr/lib/.build-id/47/7f8cf91a018e8a5a4d9522648a6ff698bb8813
/usr/lib/.build-id/74
/usr/lib/.build-id/74/3b4473c0f982ed52f2c6aa4f3e82de00d37a69
/usr/lib/.build-id/89
/usr/lib/.build-id/89/2f786f58ee6dc3356ceab7ffd26bd1602e4339
/usr/share/doc/dtc
/usr/share/doc/dtc/manual.txt
/usr/share/licenses/dtc
/usr/share/licenses/dtc/GPL
/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/18
/usr/lib/.build-id/18/14f5e3d66bddfe4e356ebf567ed7b48857ef75
/usr/lib/.build-id/30
/usr/lib/.build-id/30/ccf1e47549d4f72b2c0d776b9006ae1fc3937a
/usr/lib/.build-id/51
/usr/lib/.build-id/51/f66e1e1b6ba34e2b58b5e3867f4e96bac33bae
/usr/lib/.build-id/74
/usr/lib/.build-id/74/32f3cbc79ad10a32575c5fb25f50f552997ace
/usr/lib/.build-id/d8
/usr/lib/.build-id/d8/7b0e2b9644fb0a3a8d17c45350e79653044306
/usr/lib/.build-id/f3
/usr/lib/.build-id/f3/2a8f783ae3a8658e3a6c0a7302db7d4ac64dd3
/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 34 using yum and dnf.