How To Install dtc.x86_64 on Amazon Linux 2

In this tutorial we learn how to install dtc.x86_64 in Amazon Linux 2. dtc.x86_64 is Device Tree Compiler

Introduction

In this tutorial we learn how to install dtc.x86_64 on Amazon Linux 2.

What is dtc.x86_64

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

Install dtc.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install dtc.x86_64

How To Uninstall dtc.x86_64 on Amazon Linux 2

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

sudo yum remove dtc.x86_64

dtc.x86_64 Package Contents on Amazon Linux 2

/usr/bin/convert-dtsv0
/usr/bin/dtc
/usr/bin/dtdiff
/usr/bin/fdtdump
/usr/bin/fdtget
/usr/bin/fdtoverlay
/usr/bin/fdtput
/usr/share/doc/dtc-1.4.7
/usr/share/doc/dtc-1.4.7/manual.txt
/usr/share/licenses/dtc-1.4.7
/usr/share/licenses/dtc-1.4.7/GPL

References

Summary

In this tutorial we learn how to install dtc.x86_64 on Amazon Linux 2 using yum.