How To Install libkml on Rocky Linux 8

In this tutorial we learn how to install libkml on Rocky Linux 8. libkml is Reference implementation of OGC KML 2.2

Introduction

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

What is libkml

Reference implementation of OGC KML 2.2. It also includes implementations of Google’s gx Earth, as well as several utility libraries for working with other formats.

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

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

sudo dnf -y install libkml

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

sudo yum -y install libkml

How To Uninstall libkml on Rocky Linux 8

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

sudo dnf remove libkml

libkml Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/36
/usr/lib/.build-id/36/26aef6335c968d85defd6f1b067464edcc4333
/usr/lib/.build-id/6a
/usr/lib/.build-id/6a/17001261f634b0eebdd04d9c439bd5f9b0d6f3
/usr/lib/.build-id/9b
/usr/lib/.build-id/9b/243ae1cb2c13a61a688d6461d061ac779d10c1
/usr/lib/.build-id/c0
/usr/lib/.build-id/c0/cab20ce95df3c1b6a84acf0877fda9454d48f3
/usr/lib/.build-id/ca
/usr/lib/.build-id/ca/1f8286557e7a6196328dcc02c3e8700dfc09d4
/usr/lib/.build-id/ee
/usr/lib/.build-id/ee/5f6aa12ad19025745d56a5606442d16563c3d2
/usr/lib64/libkmlbase.so.1
/usr/lib64/libkmlbase.so.1.3.0
/usr/lib64/libkmlconvenience.so.1
/usr/lib64/libkmlconvenience.so.1.3.0
/usr/lib64/libkmldom.so.1
/usr/lib64/libkmldom.so.1.3.0
/usr/lib64/libkmlengine.so.1
/usr/lib64/libkmlengine.so.1.3.0
/usr/lib64/libkmlregionator.so.1
/usr/lib64/libkmlregionator.so.1.3.0
/usr/lib64/libkmlxsd.so.1
/usr/lib64/libkmlxsd.so.1.3.0
/usr/share/doc/libkml
/usr/share/doc/libkml/AUTHORS
/usr/share/doc/libkml/README.md
/usr/share/licenses/libkml
/usr/share/licenses/libkml/LICENSE

References

Summary

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