How To Install dtc on CentOS 8
Introduction
In this tutorial we learn how to install dtc
on CentOS 8.
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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install dtc.
Install dtc on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 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 CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 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 CentOS 8
To uninstall only the dtc
package we can use the following command:
sudo dnf remove dtc
dtc Package Contents on CentOS 8
/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/06
/usr/lib/.build-id/06/6cc9e7d3f00879362c8a58b6872136eaa09cab
/usr/lib/.build-id/0f
/usr/lib/.build-id/0f/9a3bbd9372d9c7798de77cc7ef1789f346fa63
/usr/lib/.build-id/46
/usr/lib/.build-id/46/444440a8db26d3e07b5fb215666cbfe890c7b6
/usr/lib/.build-id/53
/usr/lib/.build-id/53/0ee64ef9d27be8d611d5520f3e4272aab548b5
/usr/lib/.build-id/71
/usr/lib/.build-id/71/17e2d2acf1b0f2454e1f9df3cb73f5b191940d
/usr/lib/.build-id/de
/usr/lib/.build-id/de/142a2edb1bf8d49dbd8a72d40fa5c5c426f148
/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 CentOS 8 using yum and dnf.