How To Install polkit-libs on Rocky Linux 8

In this tutorial we learn how to install polkit-libs on Rocky Linux 8. polkit-libs is Libraries for polkit

Introduction

In this tutorial we learn how to install polkit-libs on Rocky Linux 8.

What is polkit-libs

Libraries files for polkit.

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

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

sudo dnf -y install polkit-libs

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

sudo yum -y install polkit-libs

How To Uninstall polkit-libs on Rocky Linux 8

To uninstall only the polkit-libs package we can use the following command:

sudo dnf remove polkit-libs

polkit-libs Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/05
/usr/lib/.build-id/05/eab8f49fa66ef152c993e6771c5e821668669e
/usr/lib/.build-id/bb
/usr/lib/.build-id/bb/d0037901cdab70ee0b03da1ad440474734c419
/usr/lib/girepository-1.0/Polkit-1.0.typelib
/usr/lib/girepository-1.0/PolkitAgent-1.0.typelib
/usr/lib/libpolkit-agent-1.so.0
/usr/lib/libpolkit-agent-1.so.0.0.0
/usr/lib/libpolkit-gobject-1.so.0
/usr/lib/libpolkit-gobject-1.so.0.0.0
/usr/lib/.build-id
/usr/lib/.build-id/90
/usr/lib/.build-id/90/3094a2522dca8efbd94fdbad4b2b56e993fe9f
/usr/lib/.build-id/92
/usr/lib/.build-id/92/f2b2dcc89c2c9f9c2b0c9deb23718d48e20bbf
/usr/lib64/girepository-1.0/Polkit-1.0.typelib
/usr/lib64/girepository-1.0/PolkitAgent-1.0.typelib
/usr/lib64/libpolkit-agent-1.so.0
/usr/lib64/libpolkit-agent-1.so.0.0.0
/usr/lib64/libpolkit-gobject-1.so.0
/usr/lib64/libpolkit-gobject-1.so.0.0.0

References

Summary

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