How To Install libcanberra on Rocky Linux 8

In this tutorial we learn how to install libcanberra on Rocky Linux 8. libcanberra is Portable Sound Event Library

Introduction

In this tutorial we learn how to install libcanberra on Rocky Linux 8.

What is libcanberra

A small and lightweight implementation of the XDG Sound Theme Specification (http

We can use yum or dnf to install libcanberra on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libcanberra.

Install libcanberra on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install libcanberra

Install libcanberra on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install libcanberra

How To Uninstall libcanberra on Rocky Linux 8

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

sudo dnf remove libcanberra

libcanberra Package Contents on Rocky Linux 8

/usr/bin/canberra-boot
/usr/lib/.build-id
/usr/lib/.build-id/09
/usr/lib/.build-id/09/aeb009116be7279fd3a19ba49bfea6170c1f1a
/usr/lib/.build-id/64
/usr/lib/.build-id/64/625c5fe55f360f07d09fd7dc4115e09721d940
/usr/lib/.build-id/94
/usr/lib/.build-id/94/4b706125c51b16620edbf1b10329bd0a62eb42
/usr/lib/.build-id/96
/usr/lib/.build-id/96/6875114ebb44f1c3876e18a736120f9147ae78
/usr/lib/.build-id/c8
/usr/lib/.build-id/c8/39d9eaa32c4f47ac84a0966d34521b070d30ef
/usr/lib/.build-id/d8
/usr/lib/.build-id/d8/23772edcc1f0750b614fffa363e777e8eabe9b
/usr/lib/.build-id/eb
/usr/lib/.build-id/eb/a538a9eb8d7e13cb1aeda23c2dc77e1f34686f
/usr/lib/libcanberra-0.30
/usr/lib/libcanberra-0.30/libcanberra-alsa.so
/usr/lib/libcanberra-0.30/libcanberra-gstreamer.so
/usr/lib/libcanberra-0.30/libcanberra-multi.so
/usr/lib/libcanberra-0.30/libcanberra-null.so
/usr/lib/libcanberra-0.30/libcanberra-pulse.so
/usr/lib/libcanberra.so.0
/usr/lib/libcanberra.so.0.2.5
/usr/lib/systemd/system/canberra-system-bootup.service
/usr/lib/systemd/system/canberra-system-shutdown-reboot.service
/usr/lib/systemd/system/canberra-system-shutdown.service
/usr/share/doc/libcanberra
/usr/share/doc/libcanberra/LGPL
/usr/share/doc/libcanberra/README
/usr/share/licenses/libcanberra
/usr/share/licenses/libcanberra/LGPL
/usr/bin/canberra-boot
/usr/lib/.build-id
/usr/lib/.build-id/38
/usr/lib/.build-id/38/1603c8ca0a00ab5303f89faea02baf12c1cd1d
/usr/lib/.build-id/a3
/usr/lib/.build-id/a3/12b908d723f217c6a975553475fbb23b0f7f6a
/usr/lib/.build-id/b6
/usr/lib/.build-id/b6/d0e7ce40944ec53ed2cacf845691e9a4afee14
/usr/lib/.build-id/ea
/usr/lib/.build-id/ea/3f1effeca77c1c775185f7ec4beb8f8f1ba8f2
/usr/lib/.build-id/f6
/usr/lib/.build-id/f6/6bea1d09029f12fcfe2dc6a29194bbe1034a85
/usr/lib/.build-id/f7
/usr/lib/.build-id/f7/29fc112193866f406c38611a12950142c44d33
/usr/lib/.build-id/f9
/usr/lib/.build-id/f9/456b2ac87fbe4dd74834a54162cddde390a5a5
/usr/lib/systemd/system/canberra-system-bootup.service
/usr/lib/systemd/system/canberra-system-shutdown-reboot.service
/usr/lib/systemd/system/canberra-system-shutdown.service
/usr/lib64/libcanberra-0.30
/usr/lib64/libcanberra-0.30/libcanberra-alsa.so
/usr/lib64/libcanberra-0.30/libcanberra-gstreamer.so
/usr/lib64/libcanberra-0.30/libcanberra-multi.so
/usr/lib64/libcanberra-0.30/libcanberra-null.so
/usr/lib64/libcanberra-0.30/libcanberra-pulse.so
/usr/lib64/libcanberra.so.0
/usr/lib64/libcanberra.so.0.2.5
/usr/share/doc/libcanberra
/usr/share/doc/libcanberra/LGPL
/usr/share/doc/libcanberra/README
/usr/share/licenses/libcanberra
/usr/share/licenses/libcanberra/LGPL

References

Summary

In this tutorial we learn how to install libcanberra on Rocky Linux 8 using yum and dnf.