How To Install libcec on Fedora 34

libcec is Library and utilities for HDMI-CEC device control Library and utilities for HDMI-CEC device control

Introduction

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

What is libcec

libCEC allows you in combination with the right hardware to control your device with your TV remote control over your existing HDMI cabling. libCEC is an enabling platform for the CEC bus in HDMI, it allows developers to interact with other HDMI devices without having to worry about the communication overhead, handshaking, and the various ways of send messages for each vendor. libcec 6.0.2 2.fc34 x86_64 232 k libcec-6.0.2-2.fc34.src.rpm fedora Library and utilities for HDMI-CEC device control http GPLv2+ libCEC allows you in combination with the right hardware to control your device with your TV remote control over your existing HDMI cabling. libCEC is an enabling platform for the CEC bus in HDMI, it allows developers to interact with other HDMI devices without having to worry about the communication overhead, handshaking, and the various ways of send messages for each vendor.

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

Install libcec 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 libcec using dnf by running the following command:

sudo dnf -y install libcec

Install libcec 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 libcec using yum by running the following command:

sudo yum -y install libcec

How To Uninstall libcec on Fedora 34

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

sudo dnf remove libcec

libcec Package Contents on Fedora 34

/usr/bin/cec-client
/usr/bin/cecc-client
/usr/lib/.build-id
/usr/lib/.build-id/07
/usr/lib/.build-id/07/35e44fa44a7808b3800fdeefe86ebe6f11fc2f
/usr/lib/.build-id/58
/usr/lib/.build-id/58/0070d7cf2389778ea92e3f704fb8d1e118432a
/usr/lib/.build-id/8d
/usr/lib/.build-id/8d/0caf50b0fc690239be4f1a2eee962f75f2cf6f
/usr/lib64/libcec.so.6
/usr/lib64/libcec.so.6.0.2
/usr/share/doc/libcec
/usr/share/doc/libcec/AUTHORS
/usr/share/licenses/libcec
/usr/share/licenses/libcec/COPYING
/usr/bin/cec-client
/usr/bin/cecc-client
/usr/lib/.build-id
/usr/lib/.build-id/ba
/usr/lib/.build-id/ba/137e96706ded2ea74505e7206e5ea9b92a2af6
/usr/lib/.build-id/d5
/usr/lib/.build-id/d5/bc675d2304017b1889570beafe3ea0a451b780
/usr/lib/.build-id/f3
/usr/lib/.build-id/f3/2c00a2984d187395ebe9e5d9d9da4270e45811
/usr/lib/libcec.so.6
/usr/lib/libcec.so.6.0.2
/usr/share/doc/libcec
/usr/share/doc/libcec/AUTHORS
/usr/share/licenses/libcec
/usr/share/licenses/libcec/COPYING

References

Summary

In this tutorial we learn how to install libcec on Fedora 34 using yum and dnf.