How To Install polkit on Rocky Linux 8
Introduction
In this tutorial we learn how to install polkit on Rocky Linux 8.
What is polkit
polkit is a toolkit for defining and handling authorizations. It is used for allowing unprivileged processes to speak to privileged processes.
We can use yum or dnf to install polkit on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install polkit.
Install polkit 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 using dnf by running the following command:
sudo dnf -y install polkit
Install polkit 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 using yum by running the following command:
sudo yum -y install polkit
How To Uninstall polkit on Rocky Linux 8
To uninstall only the polkit package we can use the following command:
sudo dnf remove polkit
polkit Package Contents on Rocky Linux 8
/etc/dbus-1/system.d/org.freedesktop.PolicyKit1.conf
/etc/pam.d/polkit-1
/etc/polkit-1
/etc/polkit-1/rules.d
/etc/polkit-1/rules.d/50-default.rules
/usr/bin/pkaction
/usr/bin/pkcheck
/usr/bin/pkexec
/usr/bin/pkttyagent
/usr/lib/.build-id
/usr/lib/.build-id/33
/usr/lib/.build-id/33/3b0b30bac29b5aa7a9bef1d73c35bfa6750f78
/usr/lib/.build-id/6f
/usr/lib/.build-id/6f/934eef2cf6aff62d60e2435193b5ad99377d98
/usr/lib/.build-id/82
/usr/lib/.build-id/82/17bf19a26847cb1181ec226cd7d448a7f54dae
/usr/lib/.build-id/a5
/usr/lib/.build-id/a5/e7e37f48cd0161737b5630531812d5e1bd4d2e
/usr/lib/.build-id/b6
/usr/lib/.build-id/b6/1e70c968ba043d0d3d80a4f383f4f660cdcf34
/usr/lib/.build-id/c5
/usr/lib/.build-id/c5/039eba870287c57fc620f18c8d83f7891bb340
/usr/lib/polkit-1
/usr/lib/polkit-1/polkit-agent-helper-1
/usr/lib/polkit-1/polkitd
/usr/lib/systemd/system/polkit.service
/usr/share/dbus-1/system-services/org.freedesktop.PolicyKit1.service
/usr/share/doc/polkit
/usr/share/doc/polkit/COPYING
/usr/share/doc/polkit/NEWS
/usr/share/doc/polkit/README
/usr/share/locale/cs/LC_MESSAGES/polkit-1.mo
/usr/share/locale/da/LC_MESSAGES/polkit-1.mo
/usr/share/locale/de/LC_MESSAGES/polkit-1.mo
/usr/share/locale/hr/LC_MESSAGES/polkit-1.mo
/usr/share/locale/hu/LC_MESSAGES/polkit-1.mo
/usr/share/locale/id/LC_MESSAGES/polkit-1.mo
/usr/share/locale/pl/LC_MESSAGES/polkit-1.mo
/usr/share/locale/pt_BR/LC_MESSAGES/polkit-1.mo
/usr/share/locale/sk/LC_MESSAGES/polkit-1.mo
/usr/share/locale/sv/LC_MESSAGES/polkit-1.mo
/usr/share/locale/tr/LC_MESSAGES/polkit-1.mo
/usr/share/locale/uk/LC_MESSAGES/polkit-1.mo
/usr/share/locale/zh_CN/LC_MESSAGES/polkit-1.mo
/usr/share/locale/zh_TW/LC_MESSAGES/polkit-1.mo
/usr/share/man/man1/pkaction.1.gz
/usr/share/man/man1/pkcheck.1.gz
/usr/share/man/man1/pkexec.1.gz
/usr/share/man/man1/pkttyagent.1.gz
/usr/share/man/man8/polkit.8.gz
/usr/share/man/man8/polkitd.8.gz
/usr/share/polkit-1
/usr/share/polkit-1/actions
/usr/share/polkit-1/actions/org.freedesktop.policykit.policy
/usr/share/polkit-1/rules.d
References
Summary
In this tutorial we learn how to install polkit on Rocky Linux 8 using yum and dnf.