How To Install glog on Rocky Linux 8

In this tutorial we learn how to install glog on Rocky Linux 8. glog is A C++ application logging library

Introduction

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

What is glog

Google glog is a library that implements application-level logging. This library provides logging APIs based on C++-style streams and various helper macros.

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

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

sudo dnf -y install glog

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

sudo yum -y install glog

How To Uninstall glog on Rocky Linux 8

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

sudo dnf remove glog

glog Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/07
/usr/lib/.build-id/07/cf368390ac1df4005e36c11ff16dfb31dc96f8
/usr/lib/libglog.so.0
/usr/lib/libglog.so.0.0.0
/usr/share/doc/glog
/usr/share/doc/glog/COPYING
/usr/share/doc/glog/ChangeLog
/usr/share/doc/glog/README
/usr/lib/.build-id
/usr/lib/.build-id/72
/usr/lib/.build-id/72/b3e3fd6e1e74e84133fcecfe7bebfc9eaaa182
/usr/lib64/libglog.so.0
/usr/lib64/libglog.so.0.0.0
/usr/share/doc/glog
/usr/share/doc/glog/COPYING
/usr/share/doc/glog/ChangeLog
/usr/share/doc/glog/README

References

Summary

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