How To Install polkit-pkla-compat on Rocky Linux 8

In this tutorial we learn how to install polkit-pkla-compat on Rocky Linux 8. polkit-pkla-compat is Rules for polkit to add compatibility with pklocalauthority

Introduction

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

What is polkit-pkla-compat

A polkit JavaScript rule and associated helpers that mostly provide compatibility with the .pkla file format supported in polkit <= 0.105 for users of later polkit releases.

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

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

sudo dnf -y install polkit-pkla-compat

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

sudo yum -y install polkit-pkla-compat

How To Uninstall polkit-pkla-compat on Rocky Linux 8

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

sudo dnf remove polkit-pkla-compat

polkit-pkla-compat Package Contents on Rocky Linux 8

/etc/polkit-1/localauthority
/etc/polkit-1/localauthority.conf.d
/etc/polkit-1/localauthority/10-vendor.d
/etc/polkit-1/localauthority/20-org.d
/etc/polkit-1/localauthority/30-site.d
/etc/polkit-1/localauthority/50-local.d
/etc/polkit-1/localauthority/90-mandatory.d
/etc/polkit-1/rules.d/49-polkit-pkla-compat.rules
/usr/bin/pkla-admin-identities
/usr/bin/pkla-check-authorization
/usr/lib/.build-id
/usr/lib/.build-id/bd
/usr/lib/.build-id/bd/1f786386800fab385c92f748a61df6bcf75474
/usr/lib/.build-id/e8
/usr/lib/.build-id/e8/151accb5e183aba389ac6026624c2ba584a4f2
/usr/share/doc/polkit-pkla-compat
/usr/share/doc/polkit-pkla-compat/AUTHORS
/usr/share/doc/polkit-pkla-compat/COPYING
/usr/share/doc/polkit-pkla-compat/NEWS
/usr/share/doc/polkit-pkla-compat/README
/usr/share/man/man8/pkla-admin-identities.8.gz
/usr/share/man/man8/pkla-check-authorization.8.gz
/usr/share/man/man8/pklocalauthority.8.gz
/var/lib/polkit-1
/var/lib/polkit-1/localauthority
/var/lib/polkit-1/localauthority/10-vendor.d
/var/lib/polkit-1/localauthority/20-org.d
/var/lib/polkit-1/localauthority/30-site.d
/var/lib/polkit-1/localauthority/50-local.d
/var/lib/polkit-1/localauthority/90-mandatory.d

References

Summary

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