How To Install polkit-pkla-compat on Fedora 36

In this tutorial we learn how to install polkit-pkla-compat in Fedora 36. 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 Fedora 36.

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 Fedora 36. 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 Fedora 36 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 Fedora 36 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 Fedora 36

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 Fedora 36

/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/c9
/usr/lib/.build-id/c9/148f5676ef5c65d56e35726cad1b0855cfe897
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/197b95c2343c3e4a59ba7745967fc921571690
/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 Fedora 36 using yum and [dnf]((/fedora/36/dnf/).