How To Install polkit.x86_64 on Amazon Linux 2

In this tutorial we learn how to install polkit.x86_64 in Amazon Linux 2. polkit.x86_64 is An authorization framework

Introduction

In this tutorial we learn how to install polkit.x86_64 on Amazon Linux 2.

What is polkit.x86_64

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 to install polkit.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install polkit.x86_64.

Install polkit.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install polkit.x86_64 using yum by running the following command:

sudo yum -y install polkit.x86_64

How To Uninstall polkit.x86_64 on Amazon Linux 2

To uninstall only the polkit.x86_64 package we can use the following command:

sudo yum remove polkit.x86_64

polkit.x86_64 Package Contents on Amazon Linux 2

/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/polkit-1
/usr/lib/polkit-1/polkit-agent-helper-1
/usr/lib/polkit-1/polkitd
/usr/lib/systemd/system/polkit.service
/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
/usr/share/dbus-1/system-services/org.freedesktop.PolicyKit1.service
/usr/share/doc/polkit-0.112
/usr/share/doc/polkit-0.112/COPYING
/usr/share/doc/polkit-0.112/NEWS
/usr/share/doc/polkit-0.112/README
/usr/share/locale/cs/LC_MESSAGES/polkit-1.mo
/usr/share/locale/da/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.x86_64 on Amazon Linux 2 using yum.